Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 11 additions & 9 deletions prisma/schema.prisma
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,16 @@ datasource db {
}

model Account {
id String @id @default(uuid())
username String @unique
password String
goals Goal[]
labels Label[]
projects Project[]
transactions Transaction[]
wallets Wallet[]
roles UserRole[]
id String @id @default(uuid())
username String @unique
password String
goals Goal[]
labels Label[]
projects Project[]
transactions Transaction[]
projectTransactions ProjectTransaction[]
wallets Wallet[]
roles UserRole[]
}

model Role {
Expand Down Expand Up @@ -134,4 +135,5 @@ model ProjectTransaction {
projectId String
accountId String
project Project @relation(fields: [projectId], references: [id], onDelete: Cascade)
account Account @relation(fields: [accountId], references: [id], onDelete: Cascade)
}