feat: add stock keeping units management
- 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.
This commit is contained in:
@@ -1,56 +1,13 @@
|
||||
model Account {
|
||||
id String @id @default(ulid())
|
||||
username String @unique()
|
||||
password String
|
||||
status AccountStatus
|
||||
type AccountType
|
||||
|
||||
id String @id @default(ulid())
|
||||
username String @unique
|
||||
password String
|
||||
status AccountStatus
|
||||
type AccountType
|
||||
admin_account AdminAccount?
|
||||
provider_account ProviderAccount?
|
||||
partner_account PartnerAccount?
|
||||
consumer_account ConsumerAccount?
|
||||
|
||||
// admin_account_id String? @unique
|
||||
// admin_account AdminAccount? @relation(fields: [admin_account_id], references: [id], onDelete: Cascade)
|
||||
|
||||
// provider_account_id String? @unique
|
||||
// provider_account ProviderAccount? @relation(fields: [provider_account_id], references: [id], onDelete: Cascade)
|
||||
|
||||
// partner_account_id String? @unique
|
||||
// partner_account PartnerAccount? @relation(fields: [partner_account_id], references: [id], onDelete: Cascade)
|
||||
|
||||
// consumer_account_id String? @unique
|
||||
// consumer_account ConsumerAccount? @relation(fields: [consumer_account_id], references: [id], onDelete: Cascade)
|
||||
|
||||
// tokens Token[]
|
||||
// refresh_tokens RefreshToken[]
|
||||
partner_account PartnerAccount?
|
||||
provider_account ProviderAccount?
|
||||
|
||||
@@map("accounts")
|
||||
}
|
||||
|
||||
// model Token {
|
||||
// id String @id @d @uniqueefault(ulid())
|
||||
// token String @unique
|
||||
// type TokenType
|
||||
// created_at DateTime @default(now())
|
||||
// expires_at DateTime
|
||||
|
||||
// account_id String
|
||||
// account Account @relation(fields: [account_id], references: [id])
|
||||
|
||||
// @@unique([type, account_id])
|
||||
// @@map("tokens")
|
||||
// }
|
||||
|
||||
// model VerificationCode {
|
||||
// id String @id @default(ulid())
|
||||
// code String
|
||||
// is_used Boolean @default(false)
|
||||
// created_at DateTime @default(now())
|
||||
// expires_at DateTime
|
||||
|
||||
// account_id String
|
||||
// account Account @relation(fields: [account_id], references: [id])
|
||||
|
||||
// @@map("verification_codes")
|
||||
// }
|
||||
|
||||
Reference in New Issue
Block a user