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.
54 lines
1.4 KiB
Plaintext
54 lines
1.4 KiB
Plaintext
model AdminAccount {
|
|
id String @id @default(ulid())
|
|
|
|
created_at DateTime @default(now()) @db.Timestamp(0)
|
|
updated_at DateTime @updatedAt() @db.Timestamp(0)
|
|
|
|
admin_id String
|
|
admin Admin @relation(fields: [admin_id], references: [id])
|
|
|
|
account_id String @unique
|
|
account Account @relation(fields: [account_id], references: [id], onDelete: Cascade)
|
|
|
|
@@map("admin_accounts")
|
|
}
|
|
|
|
model Admin {
|
|
id String @id @default(ulid())
|
|
mobile_number String @unique()
|
|
national_code String? @unique()
|
|
first_name String
|
|
last_name String
|
|
|
|
created_at DateTime @default(now()) @db.Timestamp(0)
|
|
updated_at DateTime @updatedAt() @db.Timestamp(0)
|
|
|
|
accounts AdminAccount[]
|
|
|
|
@@map("admins")
|
|
}
|
|
|
|
// model LegalProfile {
|
|
// user_id String @id
|
|
// company_name String
|
|
// register_no String @unique()
|
|
// representative_name String?
|
|
// representative_national_id String?
|
|
|
|
// // user User @relation(fields: [user_id], references: [id])
|
|
|
|
// @@map("legal_profiles")
|
|
// }
|
|
|
|
// model IndividualProfile {
|
|
// user_id String @id
|
|
// national_code String @unique()
|
|
// first_name String
|
|
// last_name String
|
|
// birth_date DateTime?
|
|
// mobile_number String
|
|
// // user User @relation(fields: [user_id], references: [id])
|
|
|
|
// @@map("individual_profiles")
|
|
// }
|