| Table pm_document | 
| 
Description: Document  | 
| PRIMARY KEY | ||
| 
p_site_key_n
 
bigint default: 0 NOT NULL  | This is the key that tell what site created this document | |
| 
pm_document_key_n
 
bigint default: 0 NOT NULL  | Key to identify the document | |
| 
p_partner_key_n
 
bigint default: 0 NOT NULL  | This is the partner key assigned to each partner. It consists of the fund id followed by a computer generated six digit number. | p_person | 
| 
pm_doc_code_c
 
varchar (40) NOT NULL  | This code indicates the type of document for a person. | pm_document_type | 
| 
pm_document_id_c
 
varchar (60)  | Document ID | |
| 
pm_place_of_issue_c
 
varchar (80)  | Place the document was issued. | |
| 
pm_date_of_issue_d
 
date  | The date the document was issued. | |
| 
pm_date_of_start_d
 
date  | Date the document takes effect. | |
| 
pm_date_of_expiration_d
 
date  | Date the document expires | |
| 
pm_doc_comment_c
 
varchar (1000)  | Comments and details | |
| 
pm_assoc_doc_id_c
 
varchar (40)  | ID of associated document | |
| 
pm_contact_partner_key_n
 
bigint default: 0  | This is the partner key assigned to each partner. It consists of the fund id followed by a computer generated six digit number. | p_partner | 
| 
s_date_created_d
 
date default: CURRENT_DATE  | The date the record was created. | |
| 
s_created_by_c
 
varchar (20)  | User ID of who created this record. | s_user | 
| 
s_date_modified_d
 
date  | The date the record was modified. | |
| 
s_modified_by_c
 
varchar (20)  | User ID of who last modified this record. | s_user | 
| 
s_modification_id_t
 
timestamp default: CURRENT_TIMESTAMP  | This identifies the current version of the record. | |
FOREIGN KEY pm_document_fk1: p_partner_key_n => p_person pm_document_fk2: pm_doc_code_c => pm_document_type pm_document_fk3: pm_contact_partner_key_n => p_partner pm_document_fkcr: s_created_by_c => s_user pm_document_fkmd: s_modified_by_c => s_user  | ||
REFERENCED BY pm_document_file  | ||