mirror of
https://github.com/acedanger/finance.git
synced 2025-12-05 22:50:12 -08:00
first commit
This commit is contained in:
21
api/prisma/schema.prisma
Normal file
21
api/prisma/schema.prisma
Normal file
@@ -0,0 +1,21 @@
|
||||
// prisma/schema.prisma
|
||||
|
||||
generator client {
|
||||
provider = "prisma-client-js"
|
||||
}
|
||||
|
||||
datasource db {
|
||||
provider = "postgresql"
|
||||
url = env("DATABASE_URL")
|
||||
}
|
||||
|
||||
model BankAccount {
|
||||
id Int @id @default(autoincrement())
|
||||
name String // e.g., "Checking Account", "Savings XYZ"
|
||||
bankName String // e.g., "Chase", "Wells Fargo"
|
||||
accountNumber String @unique // Consider encryption in a real app
|
||||
createdAt DateTime @default(now())
|
||||
updatedAt DateTime @updatedAt
|
||||
|
||||
@@map("bank_accounts") // Optional: specify table name in snake_case
|
||||
}
|
||||
Reference in New Issue
Block a user