v_personnel: Many-to-One (N:1)
Many trades requested by one personnel
Referenced through user_id
v_personnel: Many-to-One (N:1)
Many trades accepted by one personnel
Referenced through accepting_user_id
v_personnel: Many-to-One (N:1)
Many trades approved by one personnel
Referenced through approved_by
Column | Type | Description |
id | integer | Primary key |
client_code | varchar(28) | Organization ID |
user_id | integer | User reference |
public_name | varchar(255) | Personnel name |
first_name | varchar(64) | First name |
last_name | varchar(64) | Last name |
request_date | date | Request date |
start_at_local | timestamp | Start time |
end_at_local | timestamp | End time |
duration_hours | numeric(5,2) | Duration |
status_code | varchar(30) | Status code |
recipient_type_code | varchar(10) | Recipient type |
created_at | timestamp | Creation time |
created_by | integer | Creator reference |
approved_by | integer | Approver reference |
is_approval_required | boolean | Approval needed |
accepting_user_id | integer | Acceptor reference |
responded_at | timestamp | Response time |