Table a_ar_default_discount
Description:
defines which discounts should be applied by default during a certain event or time period to articles from a certain category
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
this default discount is only applied during this time period a_ar_discount

a_ar_discount_date_valid_from_d
date NOT NULL
this clearly specifies which version of the discount is meant
a_ar_date_valid_to_d
date
this default discount is only applied during this time period; can be null for ongoing default discounts
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_default_discount_fkcr: s_created_by_c => s_user
a_ar_default_discount_fkmd: s_modified_by_c => s_user
ar_default_discount_fk1: a_ar_category_code_c => a_ar_category
ar_default_discount_fk2: a_ar_discount_code_c;a_ar_date_valid_from_d => a_ar_discount