Table pm_document_file
Description:
Link file with a personal document
PRIMARY KEY
p_file_info_key_n
bigint NOT NULL
p_file_info

p_site_key_n
bigint default: 0 NOT NULL
This is the key that tell what site created this document pm_document
pm_document_key_n
bigint default: 0 NOT NULL
Key to identify the document pm_document
p_partner_key_n
bigint NOT NULL
Partner key that the file is linked with (needed for performance reasons to find all records linked with a partner) 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_file_fk1: p_file_info_key_n => p_file_info
pm_document_file_fk2: p_partner_key_n => p_partner
pm_document_file_fk3: p_site_key_n;pm_document_key_n => pm_document
pm_document_file_fkcr: s_created_by_c => s_user
pm_document_file_fkmd: s_modified_by_c => s_user