11488093a7
- Updated PartnerAccountQuotaAllocation model to change license relation. - Refactored Pos model to replace 'serial' with 'serial_number' across all references. - Modified BusinessActivitiesService to include license activation details in responses. - Adjusted ComplexPosesService to reflect changes in the Pos model. - Updated PartnerService to include a new method for updating partner profiles. - Created UpdatePartnerProfileDto for partner profile updates. - Added migration to drop 'serial' column and add unique 'serial_number' column in poses table.
35 lines
1.0 KiB
Plaintext
35 lines
1.0 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])
|
|
|
|
@@map("partner_accounts")
|
|
}
|
|
|
|
model Partner {
|
|
id String @id @default(ulid())
|
|
name String
|
|
code String @unique()
|
|
status PartnerStatus @default(ACTIVE)
|
|
logo_url String?
|
|
|
|
created_at DateTime @default(now()) @db.Timestamp(0)
|
|
updated_at DateTime @default(now()) @updatedAt @db.Timestamp(0)
|
|
|
|
consumers Consumer[]
|
|
partner_accounts PartnerAccount[]
|
|
license_charge_transactions LicenseChargeTransaction[]
|
|
account_quota_charge_transactions PartnerAccountQuotaChargeTransaction[]
|
|
license_renew_charge_transactions LicenseRenewChargeTransaction[]
|
|
|
|
@@map("partners")
|
|
}
|