diff --git a/prisma/schema.prisma b/prisma/schema.prisma index 7dcb5ab..02b07fe 100644 --- a/prisma/schema.prisma +++ b/prisma/schema.prisma @@ -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 { @@ -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) }