feat: 后端初始化2

This commit is contained in:
2026-07-28 15:43:27 +08:00
parent dfe0d6bd95
commit 53305757f8
26 changed files with 734 additions and 36 deletions
+19 -1
View File
@@ -3,7 +3,8 @@ generator client {
}
datasource db {
provider = "postgresql"
provider = "mysql"
url = env("DATABASE_URL")
}
model User {
@@ -37,6 +38,23 @@ model Product {
orderItems OrderItem[]
}
model SupplierInfo {
id Int @id @default(autoincrement())
supplierIdentification String @unique
supplierId String @unique
supplierName String
clientId String
clientSecret String
createTime DateTime @default(now())
updateTime DateTime @updatedAt
creator String?
updator String?
version Int @default(0)
deleted Int @default(0)
@@map("supplier_info")
}
model CartItem {
id String @id @default(cuid())
userId String