ad470d2166
- Implemented CreateStockKeepingUnitDto for creating stock keeping units. - Added StockKeepingUnitsService for handling business logic related to stock keeping units. - Created StockKeepingUnitsController to manage HTTP requests for stock keeping units. - Developed UpdateStockKeepingUnitDto for updating existing stock keeping units. - Introduced StockKeepingUnitsServiceFindAllResponseDto for response structure. - Established stock keeping units module for encapsulation of related components. feat: enhance sales invoice fiscal management with new endpoints - Created SalesInvoicesFilterDto for filtering sales invoices. - Implemented PosSalesInvoiceFiscalController for managing fiscal operations on sales invoices. - Developed PosSalesInvoiceFiscalService to handle fiscal logic and interactions. - Added methods for sending, retrying, and checking the status of fiscal invoices. - Integrated error handling and response mapping for fiscal operations.
37 lines
1.2 KiB
Plaintext
37 lines
1.2 KiB
Plaintext
model PartnerAccount {
|
|
id String @id @default(ulid())
|
|
role PartnerRole
|
|
|
|
created_at DateTime @default(now()) @db.Timestamp(0)
|
|
updated_at DateTime @default(now()) @updatedAt @db.Timestamp(0)
|
|
|
|
partner_id String
|
|
partner Partner @relation(fields: [partner_id], references: [id])
|
|
|
|
account_id String @unique
|
|
account Account @relation(fields: [account_id], references: [id], onDelete: Cascade)
|
|
|
|
@@map("partner_accounts")
|
|
}
|
|
|
|
model Partner {
|
|
id String @id @default(ulid())
|
|
name String
|
|
code String @unique()
|
|
status PartnerStatus @default(ACTIVE)
|
|
fiscal_switch_type PartnerFiscalSwitchType
|
|
logo_url String?
|
|
|
|
created_at DateTime @default(now()) @db.Timestamp(0)
|
|
updated_at DateTime @default(now()) @updatedAt @db.Timestamp(0)
|
|
|
|
accounts PartnerAccount[]
|
|
consumers_individual ConsumerIndividual[]
|
|
consumers_legal ConsumerLegal[]
|
|
license_charge_transactions LicenseChargeTransaction[]
|
|
account_quota_charge_transactions PartnerAccountQuotaChargeTransaction[]
|
|
license_renew_charge_transactions LicenseRenewChargeTransaction[]
|
|
|
|
@@map("partners")
|
|
}
|