Table pm_general_application
Description:
The first part of any application which contains data common to either short term or long term applications.
PRIMARY KEY
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_application_key_i
integer default: 0 NOT NULL
Key to uniquely identify application
pm_registration_office_n
bigint default: 0 NOT NULL
Partner key of office by which application was entered. p_unit

UNIQUE KEY
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_gen_app_date_d
date NOT NULL
Date of application.
pt_app_type_name_c
varchar (32) NOT NULL
Describes what the application is for, eg. conference, year program. pt_application_type
pm_old_link_c
varchar (32) NOT NULL
TODO: this field is a combination of registration office and application number. might not be needed???

pm_gen_app_poss_srv_unit_key_n
bigint
This is the possible field or team of service. p_unit
pm_gen_app_delete_flag_l
boolean default: '0'
This field will not appear on the screen but will be updated when someone chooses to delete a record. Rather that an actual deletion, the record will be 'marked' for deletion after an agreed upon interval.
pm_gen_applicant_type_c
varchar (30) NOT NULL
Describes the applicant, eg. volunteer, staff, speaker.
pm_gen_application_status_c
varchar (32)
Indicates the status of the application. pt_applicant_status
pm_closed_l
boolean default: '0'
Indicates if the application is closed.
pm_closed_by_c
varchar (20)
This identifies the user that closed the application s_user
pm_date_closed_d
date
This is the date the application was closed.
pm_gen_application_on_hold_l
boolean default: '0'
Indicates if the application is on hold.
pm_gen_application_hold_reason_c
varchar (100)
Comment on why the application is on hold.
pm_gen_cancelled_app_l
boolean default: '0'
Indicates if the application process has been cancelled.
pm_gen_app_cancel_reason_c
varchar (54)
Comment on why the application is on hold.
pm_gen_app_cancelled_d
date
This is the date the application was cancelled.
pm_gen_app_srv_fld_accept_l
boolean default: '0'
Describes if the applicant has been accepted by the serving field.
pm_gen_app_recvg_fld_accept_d
date
This is the date the receiving field accepted the applicant.
pm_gen_app_send_fld_accept_l
boolean default: '0'
Describes if the applicant has been accepted by the sending field.
pm_gen_app_send_fld_accept_d
date
This is the date the sending field accepted the applicant.
pm_gen_contact1_c
varchar (40)
This field indicates how they were influenced to apply with us. pt_contact
pm_gen_contact2_c
varchar (40)
This field indicates how they were influenced to apply with us. pt_contact
pm_gen_app_update_d
date
Indicates the date the record was last updated.
pm_comment_c
varchar (2000)
Sometimes there are extra comments of preferences that are related to an application. These can be entered here.
pm_gen_app_currency_code_c
varchar (16)
This is the currency that is used for amounts listed in this application a_currency
pm_placement_partner_key_n
bigint
This is the placement person handling this application. p_person
pm_raw_application_data_c
text
stores the plain data received from the browser in JSON format
p_local_partner_key_n
bigint
the person partner key of the applicant in the local database of the registration office. no foreign key since the person partner is in another database
p_imported_local_petra_l
boolean default: '0'
true if the applicant has already been imported into the local database of the registration office.
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_general_application_fk1: p_partner_key_n => p_person
pm_general_application_fk2: pm_registration_office_n => p_unit
pm_general_application_fk3: pm_gen_app_poss_srv_unit_key_n => p_unit
pm_general_application_fk4: pm_gen_application_status_c => pt_applicant_status
pm_general_application_fk5: pt_app_type_name_c => pt_application_type
pm_general_application_fk6: pm_gen_contact1_c => pt_contact
pm_general_application_fk7: pm_gen_contact2_c => pt_contact
pm_general_application_fk8: pm_gen_app_currency_code_c => a_currency
pm_general_application_fk9: pm_placement_partner_key_n => p_person
pm_general_application_fk10: pm_closed_by_c => s_user
pm_general_application_fkcr: s_created_by_c => s_user
pm_general_application_fkmd: s_modified_by_c => s_user


REFERENCED BY
pm_application_status_history, pm_short_term_application, pm_year_program_application,
p_data_label_value_application, pm_application_file