Table a_ar_discount_per_category |
Description: defines which discount applies to which category to limit the options in the UI |
PRIMARY KEY | ||
a_ar_category_code_c
varchar (100) NOT NULL | refers to a certain category (catering, hospitality, store, fees) | a_ar_category |
a_ar_discount_code_c
varchar (100) NOT NULL | code that identifies the discount | a_ar_discount |
a_ar_date_valid_from_d
date NOT NULL | date is only required for foreign key; this applies to all of that discount code; therefore the primary key of this table does not include the date | a_ar_discount |
s_date_created_d
date default: CURRENT_DATE | The date the record was created. | |
s_created_by_c
varchar (20) | User ID of who created this record. | s_user |
s_date_modified_d
date | The date the record was modified. | |
s_modified_by_c
varchar (20) | User ID of who last modified this record. | s_user |
s_modification_id_t
timestamp default: CURRENT_TIMESTAMP | This identifies the current version of the record. | |
FOREIGN KEY a_ar_discount_per_category_fkcr: s_created_by_c => s_user a_ar_discount_per_category_fkmd: s_modified_by_c => s_user ar_discount_per_category_fk1: a_ar_category_code_c => a_ar_category ar_discount_per_category_fk2: a_ar_discount_code_c;a_ar_date_valid_from_d => a_ar_discount |