| id | uuid | primary key, not null | Unique identifier for the work order |
| company_id | uuid | not null, foreign key | Reference to the associated company |
| wo_number | bigint | not null | Unique work order number |
| name | text | not null | Name of the work order |
| description | text | | Optional description of the work order |
| component_id | uuid | not null, foreign key | Reference to the associated component |
| part_number_id | uuid | foreign key | Optional reference to the associated part number |
| created_at | timestamp with time zone | not null, default now() | Timestamp of work order creation |
| created_by_user_id | uuid | not null | ID of the user who created the work order |
| status | text | not null, default ‘DRAFT’ | Current status of the work order |
| phase | text | | Optional phase information |
| quantity | bigint | not null | Quantity associated with the work order |
| approvals | jsonb | not null, default '' | JSON object storing approval information |
| assignee_user_id | uuid | foreign key | Optional reference to the assigned user |
| deadline | timestamp with time zone | | Optional deadline for the work order |
| activity_log | jsonb[] | not null | Array of JSON objects logging work order activities |
| last_edited_at | timestamp with time zone | | Timestamp of the last edit to the work order |
| attachments | jsonb[] | not null | Array of JSON objects storing attachment information |