@@ -44,6 +44,7 @@ model Guilds {
4444 GuildChannelLinks GuildChannelLinks []
4545 ModerationScout ModerationScout ?
4646 GuildUserModeration GuildUserModeration []
47+ LevelSettings LevelSettings ?
4748}
4849
4950model GuildCommandManger {
@@ -898,6 +899,83 @@ model GuildYoutubeNotifications {
898899 Guilds Guilds @relation (fields : [GuildId ] , references : [GuildId ] )
899900}
900901
902+ model LevelSettings {
903+ id String @id @default (auto () ) @map (" _id " ) @db.ObjectId
904+ LevelUpChannelId String
905+ LevelUoMessageTemplateId String
906+ LeaderboardMessageTemplateId String
907+ LeaderboardDisplayAmount Int
908+
909+ RequiredXPForFirstLevel Int
910+ Format String
911+
912+ MessageXP Boolean
913+ MessageXPRange String
914+ MesssageXPCooldown String
915+ MessageXPType String // Per Message(Every Message get'S XP), Cooldown only(Message not sent in the Cooldown get's XP)
916+
917+ VoiceXP Boolean
918+ VoiceXPRange String
919+ VoiceXPCooldown Int
920+
921+ ExcludedChannelIds String []
922+ ExcludeUserIds String []
923+ ExcludeRoleIds String []
924+
925+ LevelRoles LevelRoles []
926+ XPDrops XPDrops []
927+ XPStreaks XPStreaks []
928+
929+ Levels Levels []
930+ GuildId String @unique
931+ Guilds Guilds @relation (fields : [GuildId ] , references : [GuildId ] )
932+ }
933+
934+ model XPDrops {
935+ id String @id @default (auto () ) @map (" _id " ) @db.ObjectId
936+ GuildId String
937+ XPRange String
938+ ClaimType Int
939+ TimeToRespawn String // <from>:<to>
940+ ChannelIds String []
941+ LevelSettings LevelSettings @relation (fields : [GuildId ] , references : [GuildId ] )
942+ }
943+
944+ model XPStreaks {
945+ id String @id @default (auto () ) @map (" _id " ) @db.ObjectId
946+ Days Int
947+ Nickname String
948+ BonusLevels Int
949+ BonusXP Int
950+ ChannelId String
951+ MessageTemplateId String
952+ Multiplier Int
953+ RoleRewardIds String []
954+ GuildId String
955+ LevelSettings LevelSettings @relation (fields : [GuildId ] , references : [GuildId ] )
956+ }
957+
958+ model LevelRoles {
959+ id String @id @default (auto () ) @map (" _id " ) @db.ObjectId
960+ Level Int
961+ Multiplier Int
962+ Type String // Add Role By LevelUp, Remove Role by LevelUp,
963+ RoleId String
964+ GuildId String
965+ LevelSettings LevelSettings @relation (fields : [GuildId ] , references : [GuildId ] )
966+ }
967+
968+ model Levels {
969+ id String @id @default (auto () ) @map (" _id " ) @db.ObjectId
970+ XP Int
971+ RequiredXp Int
972+ Level Int
973+ UserId String
974+ GuildId String
975+ Users Users @relation (fields : [UserId ] , references : [UserId ] )
976+ LevelSettings LevelSettings @relation (fields : [GuildId ] , references : [GuildId ] )
977+ }
978+
901979// Users
902980model Users {
903981 id String @id @default (auto () ) @map (" _id " ) @db.ObjectId
@@ -912,6 +990,7 @@ model Users {
912990 // CURRENTLY NO USE!
913991 CustomerBots Int @default (1 )
914992 BackupCount Int @default (10000 )
993+ Levels Levels []
915994}
916995
917996model Apis {
0 commit comments