| Table p_state | 
| 
Description: A particular state within a process which can apply to a Partner. Each state will probably need to have an Idle state to indicate when no state applies.  | 
| PRIMARY KEY | ||
| 
p_process_code_c
 
varchar (60) NOT NULL  | Process that this state belongs to | p_process | 
| 
p_state_code_c
 
varchar (60) NOT NULL  | Code for the state | |
| 
p_state_descr_c
 
varchar (400)  | Description of the state | |
| 
p_active_l
 
boolean  | Is this a currently active state? | |
| 
p_system_state_l
 
boolean  | Is this a system defined state (as opposed to a user defined one)? | |
| 
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 p_state_fk1: p_process_code_c => p_process p_state_fkcr: s_created_by_c => s_user p_state_fkmd: s_modified_by_c => s_user  | ||
REFERENCED BY p_partner_state  | ||