loyalty_program_products


Columns

Column Type Size Nulls Auto Default Children Parents Comments
id uuid 2147483647 gen_random_uuid()
program_key text 2147483647 'colorscience'::text
name text 2147483647 null
sku text 2147483647 null
upc text 2147483647 √ null
is_active bool 1 true
metadata jsonb 2147483647 '{}'::jsonb
created_at timestamptz 35,6 now()
updated_at timestamptz 35,6 now()

Indexes

Constraint Name Type Sort Column(s)
loyalty_program_products_pkey Primary key Asc id
loyalty_program_products_program_active_idx Performance Asc/Asc program_key + is_active
loyalty_program_products_program_key_sku_key Must be unique Asc/Asc program_key + sku
loyalty_program_products_upc_idx Performance Asc/Asc program_key + upc

Check Constraints

Constraint Name Constraint
loyalty_program_products_upc_check (((upc IS NULL) OR (upc ~ '^[0-9]+$'::text)))
loyalty_program_products_sku_check ((sku <> ''::text))

Relationships