This commit is contained in:
+27
-7
@@ -26,11 +26,11 @@ model TariffReference {
|
||||
maxVolumeCbm Decimal? @map("max_volume_cbm") @db.Decimal(12, 3)
|
||||
minDistanceKm Int? @map("min_distance_km")
|
||||
maxDistanceKm Int? @map("max_distance_km")
|
||||
amountUsd Decimal @map("amount_usd") @db.Decimal(12, 2)
|
||||
minPriceUsd Decimal? @map("min_price_usd") @db.Decimal(12, 2)
|
||||
sourceAmount Decimal @map("amount_usd") @db.Decimal(12, 2)
|
||||
minSourcePrice Decimal? @map("min_price_usd") @db.Decimal(12, 2)
|
||||
etaDays Int? @map("eta_days")
|
||||
priority Int @default(100)
|
||||
currency String @default("USD") @db.VarChar(10)
|
||||
sourceCurrency String @default("USD") @map("currency") @db.VarChar(10)
|
||||
dmnExpression String? @map("dmn_expression")
|
||||
notes String?
|
||||
createdByUserId String? @map("created_by_user_id") @db.VarChar(255)
|
||||
@@ -76,8 +76,18 @@ model Quotation {
|
||||
selectedTariff TariffReference? @relation("QuotationSelectedTariff", fields: [selectedTariffId], references: [id], onDelete: SetNull)
|
||||
tariffMatchSummary String? @map("tariff_match_summary")
|
||||
tariffSnapshot String? @map("tariff_snapshot")
|
||||
totalAmount Decimal @default(0) @map("total_amount") @db.Decimal(12, 2)
|
||||
currency String @default("USD") @db.VarChar(10)
|
||||
sourceAmount Decimal? @map("source_amount") @db.Decimal(12, 2)
|
||||
sourceCurrency String? @map("source_currency") @db.VarChar(10)
|
||||
clientAmount Decimal @default(0) @map("total_amount") @db.Decimal(12, 2)
|
||||
clientCurrency String @default("USD") @map("currency") @db.VarChar(10)
|
||||
exchangeRate Decimal? @map("exchange_rate") @db.Decimal(24, 10)
|
||||
exchangeRateSnapshotUuid String? @map("exchange_rate_snapshot_uuid") @db.VarChar(100)
|
||||
exchangeRateProvider String? @map("exchange_rate_provider") @db.VarChar(255)
|
||||
exchangeRateEffectiveDate DateTime? @map("exchange_rate_effective_date") @db.Date
|
||||
exchangeRateQuotedAt DateTime? @map("exchange_rate_quoted_at")
|
||||
exchangeRateLockedAt DateTime? @map("exchange_rate_locked_at")
|
||||
pricingCountryCode String? @map("pricing_country_code") @db.VarChar(2)
|
||||
pricingKycProfileUuid String? @map("pricing_kyc_profile_uuid") @db.VarChar(100)
|
||||
etaDays Int? @map("eta_days")
|
||||
notes String?
|
||||
createdAt DateTime @default(now()) @map("created_at")
|
||||
@@ -116,8 +126,18 @@ model Order {
|
||||
createdByUserId String? @map("created_by_user_id") @db.VarChar(255)
|
||||
name String @db.VarChar(255)
|
||||
status String @default("draft") @db.VarChar(30)
|
||||
totalAmount Decimal @default(0) @map("total_amount") @db.Decimal(12, 2)
|
||||
currency String @default("USD") @db.VarChar(10)
|
||||
sourceAmount Decimal? @map("source_amount") @db.Decimal(12, 2)
|
||||
sourceCurrency String? @map("source_currency") @db.VarChar(10)
|
||||
clientAmount Decimal @default(0) @map("total_amount") @db.Decimal(12, 2)
|
||||
clientCurrency String @default("USD") @map("currency") @db.VarChar(10)
|
||||
exchangeRate Decimal? @map("exchange_rate") @db.Decimal(24, 10)
|
||||
exchangeRateSnapshotUuid String? @map("exchange_rate_snapshot_uuid") @db.VarChar(100)
|
||||
exchangeRateProvider String? @map("exchange_rate_provider") @db.VarChar(255)
|
||||
exchangeRateEffectiveDate DateTime? @map("exchange_rate_effective_date") @db.Date
|
||||
exchangeRateQuotedAt DateTime? @map("exchange_rate_quoted_at")
|
||||
exchangeRateLockedAt DateTime? @map("exchange_rate_locked_at")
|
||||
pricingCountryCode String? @map("pricing_country_code") @db.VarChar(2)
|
||||
pricingKycProfileUuid String? @map("pricing_kyc_profile_uuid") @db.VarChar(100)
|
||||
sourceLocationUuid String? @map("source_location_uuid") @db.VarChar(100)
|
||||
sourceLocationName String? @map("source_location_name") @db.VarChar(255)
|
||||
sourceCountryCode String? @map("source_country_code") @db.VarChar(10)
|
||||
|
||||
Reference in New Issue
Block a user