Skip to content
Merged
Show file tree
Hide file tree
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
3 changes: 3 additions & 0 deletions apps/backend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,5 +39,8 @@
"prisma": "6.19.0",
"typescript": "^5.9.3",
"zod": "^4.1.13"
},
"prisma": {
"seed": "tsx ./prisma/seed.ts"
}
}
3 changes: 2 additions & 1 deletion apps/backend/prisma/schema.prisma
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ model Wallet {
transactions Transaction[]
swapSettings SwapSettings?

@@unique([name, userId]) //Композитний унікальний індекс - в межах одного користувача (userId)
@@unique([name, userId]) // Composite unique index within one user (userId)
}

model User {
Expand Down Expand Up @@ -81,3 +81,4 @@ model SwapSettings {
stableCoins String[] @default(["usdt", "usdc"])
wallet Wallet @relation(fields: [walletId], references: [id], onDelete: Cascade)
}

Loading
Loading