Table openpetra_trunk.public.s_change_event
Records all database events (ie. insert, update, delete). Gets purged after each export

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
s_table_name_c varchar 64 Name of the database table where the event occurred
s_rowid_c varchar 40 Rowid of the record that the event applied to
s_change_type_c varchar 2 Type of event (I, U or D - Insert, Update, Delete)
s_natural_key_c varchar 2000 Concatenation of the natural key values for the affected record (the primary key is not enough where a surrogate key is used as this is not meaningful across sites)
s_date_d date 13 Date on which the event took place
s_time_i int4 10 Time at which event took place
s_date_created_d date 13  √  ('now'::text)::date
s_created_by_c varchar 20  √  null
s_user.s_user_id_c s_change_event_fkcr R
s_date_modified_d date 13  √  null
s_modified_by_c varchar 20  √  null
s_user.s_user_id_c s_change_event_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
s_table_name_c + s_rowid_c Primary key Asc/Asc s_change_event_pk
s_created_by_c Performance Asc inx_s_change_event_fkcr_key1
s_modified_by_c Performance Asc inx_s_change_event_fkmd_key2
s_table_name_c + s_rowid_c Must be unique Asc/Asc inx_s_change_event_pk0

Close relationships  within of separation: