Columns
| Column | Type | Size | Nulls | Auto | Default | Children | Parents | Comments | |||
|---|---|---|---|---|---|---|---|---|---|---|---|
| purchaseOrderProductId | uuid | 2147483647 | null |
|
|
||||||
| pricePerItem | numeric | 0 | null |
|
|
||||||
| discountPercentage | numeric | 0 | √ | null |
|
|
|||||
| currency | "employer_purchases"."enum_employer_purchases_supported_currencies" | 2147483647 | null |
|
|
||||||
| createdAt | timestamptz | 35,6 | now() |
|
|
||||||
| updatedAt | timestamptz | 35,6 | now() |
|
|
Indexes
| Constraint Name | Type | Sort | Column(s) |
|---|---|---|---|
| PurchaseOrderProductPricingDetails_pkey | Primary key | Asc | purchaseOrderProductId |
Check Constraints
| Constraint Name | Constraint |
|---|---|
| PurchaseOrderProductPricingDetails_pricePerItem_check | (("pricePerItem" >= (0)::numeric)) |
| PurchaseOrderProductPricingDetails_discountPercentage_check | (((("discountPercentage" IS NOT NULL) AND ("discountPercentage" > (0)::numeric)) OR ("discountPercentage" IS NULL))) |



