Skip to content

Commit

Permalink
Fix primary key
Browse files Browse the repository at this point in the history
I'm not sure why didn't I push this
  • Loading branch information
imxeno committed Dec 8, 2024
1 parent 58d7032 commit 03a41c4
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions packages/database/prisma/schema.prisma
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ model Guild {
ticketConfig TicketConfig[]
boardChannelsConfig BoardChannelConfig[]
managedRolesConfig ManagedRoleConfig[]
roleMessageStats RoleMessageStats[]
}

model ManagedRoleConfig {
Expand Down Expand Up @@ -76,9 +75,9 @@ model TicketConfig {
}

model RoleMessageStats {
roleId BigInt @id
id BigInt @id @default(autoincrement())
roleId BigInt
guildId BigInt
guild Guild @relation(fields: [guildId], references: [id])
messageCount Int @default(0)
timestamp DateTime @default(now())
Expand Down

0 comments on commit 03a41c4

Please sign in to comment.