Columns
| Column | Type | Size | Nulls | Auto | Default | Children | Parents | Comments | |||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| id | uuid | 2147483647 | gen_random_uuid() |
|
|
||||||||||||||||||||||||||||||||||||||||||||||||
| type | "employer_purchases"."enum_employer_purchases_Products_type" | 2147483647 | null |
|
|
||||||||||||||||||||||||||||||||||||||||||||||||
| defaultName | text | 2147483647 | null |
|
|
||||||||||||||||||||||||||||||||||||||||||||||||
| nameTranslationKey | text | 2147483647 | null |
|
|
||||||||||||||||||||||||||||||||||||||||||||||||
| createdAt | timestamptz | 35,6 | now() |
|
|
||||||||||||||||||||||||||||||||||||||||||||||||
| updatedAt | timestamptz | 35,6 | now() |
|
|
||||||||||||||||||||||||||||||||||||||||||||||||
| timePeriod | int4 | 10 | √ | null |
|
|
|||||||||||||||||||||||||||||||||||||||||||||||
| timePeriodUnit | "employer_purchases"."enum_employer_purchases_timePeriodUnit" | 2147483647 | √ | null |
|
|
|||||||||||||||||||||||||||||||||||||||||||||||
| variant | "employer_purchases"."enum_employer_purchases_Products_variant" | 2147483647 | 'VARIANT_A'::employer_purchases."enum_employer_purchases_Products_variant" |
|
|
||||||||||||||||||||||||||||||||||||||||||||||||
| timePeriodValidityType | "employer_purchases"."enum_employer_purchases_timePeriodValidityType" | 2147483647 | 'MAX_WITH_CURRENT_EXPIRY'::employer_purchases."enum_employer_purchases_timePeriodValidityType" |
|
|
||||||||||||||||||||||||||||||||||||||||||||||||
| countryCode | varchar | 100 | 'ID'::character varying |
|
|
Country Code of country that this product is available in. Foreign Key Reference Countries. |
Indexes
| Constraint Name | Type | Sort | Column(s) |
|---|---|---|---|
| Products_pkey | Primary key | Asc | id |
| employer_purchases_Products_type_idx | Performance | Asc | type |
| Products_type_variant_countryCode_key | Must be unique | Asc/Asc/Asc | type + variant + countryCode |
Check Constraints
| Constraint Name | Constraint |
|---|---|
| timePeriod_and_timePeriodUnit_check | (((("timePeriod" IS NOT NULL) AND ("timePeriod" > 0) AND ("timePeriodUnit" IS NOT NULL)) OR (("timePeriod" IS NULL) AND ("timePeriodUnit" IS NULL)))) |

