Table openpetra_trunk.public.pc_discount
Lists optional discounts for a conference

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
pc_conference_key_n numeric 10
pc_conference.pc_conference_key_n pc_discount_fk1 R
This is the partner key assigned to each partner. It consists of the fund id followed by a computer generated six digit number.
pc_discount_criteria_code_c varchar 16
pc_discount_criteria.pc_discount_criteria_code_c pc_discount_fk2 R
Unique name of the criteria that a person has to meet to get the discount
pc_cost_type_code_c varchar 32
pc_cost_type.pc_cost_type_code_c pc_discount_fk3 R
Unique name of the cost type
pc_validity_c varchar 6 When is this discount valid (PRE, CONF, POST, ALWAYS)
pc_up_to_age_i int4 10 For discounts up to a certain age (mainly child discount). If age does not matter, set to -1.
pc_percentage_l bool 1  √  null Is the discount value given in percent (or total otherwise)
pc_discount_n numeric 24,10  √  null Amount of discount (in percent or total)
s_date_created_d date 13  √  ('now'::text)::date
s_created_by_c varchar 20  √  null
s_user.s_user_id_c pc_discount_fkcr R
s_date_modified_d date 13  √  null
s_modified_by_c varchar 20  √  null
s_user.s_user_id_c pc_discount_fkmd R
s_modification_id_c varchar 150  √  null

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

Indexes:
Column(s) Type Sort Constraint Name
pc_conference_key_n + pc_discount_criteria_code_c + pc_cost_type_code_c + pc_validity_c + pc_up_to_age_i Primary key Asc/Asc/Asc/Asc/Asc pc_discount_pk
pc_conference_key_n Performance Asc inx_pc_discount_fk1_key1
pc_discount_criteria_code_c Performance Asc inx_pc_discount_fk2_key2
pc_cost_type_code_c Performance Asc inx_pc_discount_fk3_key3
s_created_by_c Performance Asc inx_pc_discount_fkcr_key4
s_modified_by_c Performance Asc inx_pc_discount_fkmd_key5
pc_conference_key_n + pc_discount_criteria_code_c + pc_cost_type_code_c + pc_validity_c + pc_up_to_age_i Must be unique Asc/Asc/Asc/Asc/Asc inx_pc_discount_pk0

Close relationships  within of separation: