promotion_linked_items


Columns

Column Type Size Nulls Auto Default Children Parents Comments
id uuid 2147483647 gen_random_uuid()
promotion_definition_id uuid 2147483647 null
promotion_definitions.id promotion_linked_items_promotion_definition_id_fkey C
catalog_item_kind text 2147483647 null
catalog_item_id text 2147483647 null
schema_migrations.id Implied Constraint R
catalog_item_name text 2147483647 √ null
created_at timestamptz 35,6 now()

Indexes

Constraint Name Type Sort Column(s)
promotion_linked_items_pkey Primary key Asc id
promotion_linked_items_definition_idx Performance Asc promotion_definition_id
promotion_linked_items_lookup_idx Performance Asc/Asc catalog_item_kind + catalog_item_id
promotion_linked_items_promotion_definition_id_catalog_item_key Must be unique Asc/Asc/Asc promotion_definition_id + catalog_item_kind + catalog_item_id

Check Constraints

Constraint Name Constraint
promotion_linked_items_catalog_item_kind_check ((catalog_item_kind = ANY (ARRAY['product'::text, 'service'::text])))

Relationships