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.
31 lines
768 B
Plaintext
31 lines
768 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
|
|
provider Provider @relation(fields: [provider_id], references: [id])
|
|
|
|
account_id String @unique
|
|
account Account @relation(fields: [account_id], references: [id])
|
|
|
|
@@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[]
|
|
provider_accounts ProviderAccount[]
|
|
|
|
@@map("providers")
|
|
}
|