Columns
| Column | Type | Size | Nulls | Auto | Default | Children | Parents | Comments | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| id | uuid | 2147483647 | gen_random_uuid() |
|
|
|||||||||
| package_definition_id | uuid | 2147483647 | null |
|
|
|||||||||
| catalog_item_kind | text | 2147483647 | null |
|
|
|||||||||
| catalog_item_id | text | 2147483647 | null |
|
|
|||||||||
| catalog_item_name | text | 2147483647 | √ | null |
|
|
||||||||
| quantity | int4 | 10 | null |
|
|
|||||||||
| created_at | timestamptz | 35,6 | now() |
|
|
|||||||||
| updated_at | timestamptz | 35,6 | now() |
|
|
Indexes
| Constraint Name | Type | Sort | Column(s) |
|---|---|---|---|
| package_items_pkey | Primary key | Asc | id |
| package_items_definition_idx | Performance | Asc | package_definition_id |
| package_items_package_definition_id_catalog_item_kind_catal_key | Must be unique | Asc/Asc/Asc | package_definition_id + catalog_item_kind + catalog_item_id |
Check Constraints
| Constraint Name | Constraint |
|---|---|
| package_items_catalog_item_kind_check | ((catalog_item_kind = ANY (ARRAY['product'::text, 'service'::text]))) |
| package_items_quantity_check | ((quantity > 0)) |



