Table openpetra_trunk.public.p_partner_contact
Details of contacts with partners

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_contact_id_i int4 10 0
p_partner_contact_attribute.p_contact_id_i p_partner_contact_attribute_fk2 R
p_partner_contact_file.p_contact_id_i p_partner_contact_file_fk3 R
p_partner_reminder.p_contact_id_i p_partner_reminder_fk2 R
s_group_partner_contact.p_contact_id_i s_group_partner_contact_fk2 R
identifying key for p_partner_contact
p_partner_key_n numeric 10 0
p_partner.p_partner_key_n p_partner_contact_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.
s_contact_date_d date 13 Date of contact
s_contact_time_i int4 10 0 Time of contact
p_contact_code_c varchar 16
p_method_of_contact.p_method_of_contact_code_c p_partner_contact_fk3 R
Contact code
p_contactor_c varchar 20  √  null User who made the contact
p_contact_message_id_c varchar 200  √  null The Message ID (only applies if the type of contact is an email); this helps to identify the email and to interface with the EMail application
p_contact_comment_c varchar 30000  √  null Contact Comment (also used to hold contents of emails)
s_module_id_c varchar 20  √  null
s_module.s_module_id_c p_partner_contact_fk4 R
Identifies a module. A module is any part of aprogram which is related to each menu entry or to the sub-system. Eg, partner administration, AP, AR etc.
s_user_id_c varchar 20  √  null
s_user.s_user_id_c p_partner_contact_fk7 R
If set, this contact is restricted to one user.
p_mailing_code_c varchar 50  √  null
p_mailing.p_mailing_code_c p_partner_contact_fk2 R
The mailing code associated with the contact
p_restricted_l bool 1  √  false Indicates whether or not the contact has restricted access. If it does then the access will be controlled by s_group_partner_contact
p_contact_location_c varchar 8000  √  null Location of contact
s_date_created_d date 13  √  ('now'::text)::date
s_created_by_c varchar 20  √  null
s_user.s_user_id_c p_partner_contact_fkcr R
s_date_modified_d date 13  √  null
s_modified_by_c varchar 20  √  null
s_user.s_user_id_c p_partner_contact_fkmd R
s_modification_id_c varchar 150  √  null

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

Indexes:
Column(s) Type Sort Constraint Name
p_contact_id_i Primary key Asc p_partner_contact_pk
p_partner_key_n Performance Asc inx_p_partner_contact_fk1_key1
p_mailing_code_c Performance Asc inx_p_partner_contact_fk2_key2
p_contact_code_c Performance Asc inx_p_partner_contact_fk3_key3
s_module_id_c Performance Asc inx_p_partner_contact_fk4_key4
s_user_id_c Performance Asc inx_p_partner_contact_fk7_key5
s_created_by_c Performance Asc inx_p_partner_contact_fkcr_key6
s_modified_by_c Performance Asc inx_p_partner_contact_fkmd_key7
p_contact_id_i Must be unique Asc inx_p_partner_contact_pk0
p_partner_key_n + s_contact_date_d + s_contact_time_i Must be unique Asc/Asc/Asc inx_p_partner_contact_uk0
p_partner_key_n + s_contact_date_d + s_contact_time_i Must be unique Asc/Asc/Asc p_partner_contact_uk

Close relationships  within of separation: