fbe7230865
- Created migration to drop `type` column from `stock_keeping_units` table. - Added `Guild` model to Prisma schema. - Implemented `BusinessActivitiesQueryService` for querying business activities. - Developed `GoodsSharedService` for handling goods creation and updates. - Introduced DTOs for creating and updating stock keeping units. - Created controller and service for managing stock keeping units. - Implemented response DTOs for stock keeping units service. - Established module for stock keeping units management.
27 lines
918 B
Plaintext
27 lines
918 B
Plaintext
model ProviderAccount {
|
|
id String @id @default(ulid())
|
|
role ProviderRole
|
|
created_at DateTime @default(now()) @db.Timestamp(0)
|
|
updated_at DateTime @updatedAt @db.Timestamp(0)
|
|
provider_id String
|
|
account_id String @unique
|
|
account Account @relation(fields: [account_id], references: [id], onDelete: Cascade)
|
|
provider Provider @relation(fields: [provider_id], references: [id])
|
|
|
|
@@index([provider_id], map: "provider_accounts_provider_id_fkey")
|
|
@@map("provider_accounts")
|
|
}
|
|
|
|
model Provider {
|
|
id String @id @default(ulid())
|
|
code String @unique
|
|
status PartnerStatus @default(ACTIVE)
|
|
name String
|
|
created_at DateTime @default(now()) @db.Timestamp(0)
|
|
updated_at DateTime @updatedAt @db.Timestamp(0)
|
|
pos_list Pos[]
|
|
accounts ProviderAccount[]
|
|
|
|
@@map("providers")
|
|
}
|