From 0ddeafe78cb93d6f394fa9b2b027d811c4fc1439 Mon Sep 17 00:00:00 2001 From: Rajoharitiana Ainasoa Raharison Date: Sat, 28 Feb 2026 13:44:01 +0300 Subject: [PATCH 1/2] Apply suggested fix to prisma/schema.prisma from Copilot Autofix Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com> --- prisma/schema.prisma | 1 + 1 file changed, 1 insertion(+) diff --git a/prisma/schema.prisma b/prisma/schema.prisma index 7dcb5ab..0ca4727 100644 --- a/prisma/schema.prisma +++ b/prisma/schema.prisma @@ -134,4 +134,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) } From 8f1a056583efc3fbccf105c89fcd5b13219b0bf2 Mon Sep 17 00:00:00 2001 From: Rajoharitiana Ainasoa Raharison Date: Sat, 28 Feb 2026 13:44:01 +0300 Subject: [PATCH 2/2] Apply suggested fix to prisma/schema.prisma from Copilot Autofix Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com> --- prisma/schema.prisma | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/prisma/schema.prisma b/prisma/schema.prisma index 0ca4727..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 {