Table d44civi_9xzwf.civicrm_discount 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
id int unsigned 10  √ 
civicrm_participant.discount_id FK_civicrm_participant_discount_id N
primary key
entity_table varchar 64  √  null physical tablename for entity being joined to discount, e.g. civicrm_event
entity_id int unsigned 10 FK to entity table specified in entity_table column.
price_set_id int unsigned 10
civicrm_price_set.id FK_civicrm_discount_price_set_id C
FK to civicrm_price_set
start_date date 10  √  null Date when discount starts.
end_date date 10  √  null Date when discount ends.

Table contained 0 rows at Wed Nov 11 17:14 EST 2015

Indexes:
Column(s) Type Sort Constraint Name
id Primary key Asc PRIMARY
price_set_id Performance Asc FK_civicrm_discount_price_set_id
entity_table + entity_id Performance Asc/Asc index_entity
entity_table + entity_id + price_set_id Performance Asc/Asc/Asc index_entity_option_id

Close relationships  within of separation: