Table openpetra_trunk.public.a_ar_discount_per_category
defines which discount applies to which category to limit the options in the UI

Generated by
SchemaSpy
Legend: SourceForge.net
Primary key columns
Columns with indexes
Implied relationships
Excluded column relationships
< n > number of related tables
 
Column Type Size Nulls Auto Default Children Parents Comments
a_ar_category_code_c varchar 100
a_ar_category.a_ar_category_code_c ar_discount_per_category_fk1 R
refers to a certain category (catering, hospitality, store, fees)
a_ar_discount_code_c varchar 100
a_ar_discount.a_ar_discount_code_c ar_discount_per_category_fk2 R
code that identifies the discount
a_ar_date_valid_from_d date 13
a_ar_discount.a_ar_date_valid_from_d ar_discount_per_category_fk2 R
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
s_date_created_d date 13  √  ('now'::text)::date
s_created_by_c varchar 20  √  null
s_user.s_user_id_c a_ar_discount_per_category_fkcr R
s_date_modified_d date 13  √  null
s_modified_by_c varchar 20  √  null
s_user.s_user_id_c a_ar_discount_per_category_fkmd R
s_modification_id_c varchar 150  √  null

Table contained 0 rows at Do Nov 10 18:00 MEZ 2011

Indexes:
Column(s) Type Sort Constraint Name
a_ar_category_code_c + a_ar_discount_code_c Primary key Asc/Asc ar_discount_per_category_pk
a_ar_category_code_c + a_ar_discount_code_c Must be unique Asc/Asc inx_ar_discount_per_category_pk0
a_ar_category_code_c Performance Asc inx_iscount_per_category_fk1_key3
a_ar_discount_code_c + a_ar_date_valid_from_d Performance Asc/Asc inx_iscount_per_category_fk2_key4
s_created_by_c Performance Asc inx_scount_per_category_fkcr_key1
s_modified_by_c Performance Asc inx_scount_per_category_fkmd_key2

Close relationships  within of separation: