a350ec7990
- Implemented AccountsService for managing consumer accounts including create, update, delete, and find operations. - Created DTOs for account creation and updates. - Developed BusinessActivitiesController and BusinessActivitiesService for handling business activities related to consumers. - Added complexes management with ComplexesController and ComplexesService. - Introduced POS management with ComplexPosesController and ComplexPosesService. - Created necessary DTOs for business activities and POS. - Established Licenses management with LicensesController and LicensesService. - Integrated consumer management with PartnerConsumersController and PartnerConsumersService. - Added Prisma module imports and service connections across modules.
45 lines
1.1 KiB
Plaintext
45 lines
1.1 KiB
Plaintext
model Account {
|
|
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?
|
|
|
|
// tokens Token[]
|
|
// refresh_tokens RefreshToken[]
|
|
|
|
@@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")
|
|
// }
|