-
Notifications
You must be signed in to change notification settings - Fork 133
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into setup_steps_updated
- Loading branch information
Showing
193 changed files
with
4,130 additions
and
3,494 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,8 @@ | ||
.env | ||
icon_cache | ||
logs | ||
dist | ||
dist | ||
node_modules | ||
coverage | ||
.yarn | ||
.tests |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,93 +1,109 @@ | ||
generator client { | ||
provider = "prisma-client-js" | ||
previewFeatures = ["fullTextSearch"] | ||
output = "../node_modules/@prisma/robochimp" | ||
provider = "prisma-client-js" | ||
previewFeatures = ["fullTextSearch"] | ||
output = "../node_modules/@prisma/robochimp" | ||
} | ||
|
||
datasource db { | ||
provider = "postgresql" | ||
url = env("ROBOCHIMP_DATABASE_URL") | ||
provider = "postgresql" | ||
url = env("ROBOCHIMP_DATABASE_URL") | ||
} | ||
|
||
model TriviaQuestion { | ||
id Int @id @unique @default(autoincrement()) | ||
question String @db.VarChar() | ||
answers String[] @db.VarChar() | ||
id Int @id @unique @default(autoincrement()) | ||
question String @db.VarChar() | ||
answers String[] @db.VarChar() | ||
@@map("trivia_question") | ||
@@map("trivia_question") | ||
} | ||
|
||
enum BlacklistedEntityType { | ||
guild | ||
user | ||
guild | ||
user | ||
} | ||
|
||
model BlacklistedEntity { | ||
id BigInt @id @unique | ||
type BlacklistedEntityType | ||
reason String? | ||
date DateTime @default(now()) @db.Timestamp(6) | ||
id BigInt @id @unique | ||
type BlacklistedEntityType | ||
reason String? | ||
date DateTime @default(now()) @db.Timestamp(6) | ||
@@map("blacklisted_entity") | ||
@@map("blacklisted_entity") | ||
} | ||
|
||
model User { | ||
id BigInt @id @unique | ||
bits Int[] | ||
github_id Int? | ||
patreon_id String? | ||
migrated_user_id BigInt? | ||
id BigInt @id @unique | ||
bits Int[] | ||
github_id Int? | ||
patreon_id String? | ||
leagues_completed_tasks_ids Int[] | ||
leagues_points_balance_osb Int @default(0) | ||
leagues_points_balance_bso Int @default(0) | ||
leagues_points_total Int @default(0) | ||
migrated_user_id BigInt? | ||
react_emoji_id String? | ||
leagues_completed_tasks_ids Int[] | ||
leagues_points_balance_osb Int @default(0) | ||
leagues_points_balance_bso Int @default(0) | ||
leagues_points_total Int @default(0) | ||
osb_total_level Int? | ||
bso_total_level Int? | ||
osb_total_xp BigInt? | ||
bso_total_xp BigInt? | ||
osb_cl_percent Float? | ||
bso_cl_percent Float? | ||
osb_mastery Float? | ||
bso_mastery Float? | ||
react_emoji_id String? | ||
tag Tag[] | ||
osb_total_level Int? | ||
bso_total_level Int? | ||
osb_total_xp BigInt? | ||
bso_total_xp BigInt? | ||
osb_cl_percent Float? | ||
bso_cl_percent Float? | ||
osb_mastery Float? | ||
bso_mastery Float? | ||
store_bitfield Int[] | ||
store_bitfield Int[] | ||
testing_points Float @default(0) | ||
testing_points_balance Float @default(0) | ||
testing_points Float @default(0) | ||
testing_points_balance Float @default(0) | ||
@@map("user") | ||
perk_tier Int @default(0) | ||
premium_balance_tier Int? | ||
premium_balance_expiry_date BigInt? | ||
user_group_id String? @db.Uuid | ||
userGroup UserGroup? @relation(fields: [user_group_id], references: [id]) | ||
tag Tag[] | ||
@@map("user") | ||
} | ||
|
||
model PingableRole { | ||
role_id String @id | ||
name String @unique @db.VarChar(32) | ||
role_id String @id | ||
name String @unique @db.VarChar(32) | ||
@@map("pingable_role") | ||
@@map("pingable_role") | ||
} | ||
|
||
model Tag { | ||
id Int @id @unique @default(autoincrement()) | ||
name String @unique @db.VarChar(32) | ||
content String @db.VarChar(2000) | ||
id Int @id @unique @default(autoincrement()) | ||
name String @unique @db.VarChar(32) | ||
content String @db.VarChar(2000) | ||
user_id BigInt | ||
creator User @relation(fields: [user_id], references: [id]) | ||
user_id BigInt | ||
creator User @relation(fields: [user_id], references: [id]) | ||
@@map("tag") | ||
@@map("tag") | ||
} | ||
|
||
model StoreCode { | ||
product_id Int | ||
code String @id @unique | ||
product_id Int | ||
code String @id @unique | ||
redeemed_at DateTime? | ||
redeemed_by_user_id String? @db.VarChar(19) | ||
@@map("store_code") | ||
} | ||
|
||
model UserGroup { | ||
id String @id @default(uuid()) @db.Uuid | ||
redeemed_at DateTime? | ||
redeemed_by_user_id String? @db.VarChar(19) | ||
users User[] | ||
@@map("store_code") | ||
@@map("user_group") | ||
} |
Oops, something went wrong.