Table openpetra_trunk.public.p_family
Contains details about a family in Partnership with us. May have P_Person records linked to it.

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
p_partner_key_n numeric 10 0
p_person.p_family_key_n p_person_fk2 R
p_partner.p_partner_key_n p_family_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.
p_family_members_l bool 1  √  false Flag is set if there are family members with their own records in the p_person table. IMPORTANT: Don't rely on this flag anymore but determine this state on-the-fly! Reason: The value of this field isn't maintained reliably any more and the field will be removed in a future version of the DB!
p_title_c varchar 64  √  null How the family is to be addressed
p_first_name_c varchar 96  √  null
p_family_name_c varchar 120  √  null
p_different_surnames_l bool 1  √  false Flag is set if there are different surnames entered for husband and wife
p_field_key_n numeric 10  √  NULL::numeric
p_unit.p_partner_key_n p_family_fk2 R
This is the partner key of the field in which the partner (should be a Worker or ExWorker is serving.
p_marital_status_c varchar 4  √  'U'::character varying
pt_marital_status.pt_code_c p_family_fk3 R
p_marital_status_since_d date 13  √  null
p_marital_status_comment_c varchar 512  √  null
s_date_created_d date 13  √  ('now'::text)::date
s_created_by_c varchar 20  √  null
s_user.s_user_id_c p_family_fkcr R
s_date_modified_d date 13  √  null
s_modified_by_c varchar 20  √  null
s_user.s_user_id_c p_family_fkmd R
s_modification_id_c varchar 150  √  null

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

Indexes:
Column(s) Type Sort Constraint Name
p_partner_key_n Primary key Asc p_family_pk
p_family_name_c Performance Asc fam_family_name_k0
p_first_name_c Performance Asc fam_first_name_k1
p_field_key_n Performance Asc inx_p_family_fk2_key1
p_marital_status_c Performance Asc inx_p_family_fk3_key2
s_created_by_c Performance Asc inx_p_family_fkcr_key3
s_modified_by_c Performance Asc inx_p_family_fkmd_key4
p_partner_key_n Must be unique Asc inx_p_family_pk0

Close relationships  within of separation: