Columns
| Column | Type | Size | Nulls | Auto | Default | Children | Parents | Comments | |||
|---|---|---|---|---|---|---|---|---|---|---|---|
| id | uuid | 2147483647 | gen_random_uuid() |
|
|
||||||
| creditPurchaseOrderId | uuid | 2147483647 | null |
|
|
||||||
| fileName | text | 2147483647 | null |
|
|
contains only a file name. when this file is open, it will contain the invoice of credit purchase order |
|||||
| status | "employer_purchases"."enum_employer_purchases_CreditPurchaseOrderInvoices_status" | 2147483647 | null |
|
|
||||||
| failureMessage | text | 2147483647 | √ | null |
|
|
|||||
| createdAt | timestamptz | 35,6 | now() |
|
|
||||||
| updatedAt | timestamptz | 35,6 | now() |
|
|
Indexes
| Constraint Name | Type | Sort | Column(s) |
|---|---|---|---|
| CreditPurchaseOrderInvoices_pkey | Primary key | Asc | id |
| CreditPurchaseOrderInvoices_creditPurchaseOrderId_status_idx | Must be unique | Asc/Asc | creditPurchaseOrderId + status |
Check Constraints
| Constraint Name | Constraint |
|---|---|
| CreditPurchaseOrderInvoices_failureMessage_nullable_check | ((((status = 'FAILED'::employer_purchases."enum_employer_purchases_CreditPurchaseOrderInvoices_status") AND ("failureMessage" IS NOT NULL)) OR ((status = ANY (ARRAY['IN_PROGRESS'::employer_purchases."enum_employer_purchases_CreditPurchaseOrderInvoices_status", 'SUCCESS'::employer_purchases."enum_employer_purchases_CreditPurchaseOrderInvoices_status"])) AND ("failureMessage" IS NULL)) OR (status = 'NOT_AVAILABLE'::employer_purchases."enum_employer_purchases_CreditPurchaseOrderInvoices_status"))) |



