| id |
int(11)
|
|
|
|
| complaint_number |
varchar(50)
|
utf8mb4_unicode_ci
|
|
|
| source |
enum('Customer', 'Internal', 'Supplier', 'Auditor')
|
utf8mb4_unicode_ci
|
|
|
| customer_id |
int(11)
|
|
|
Browse foreign values
|
| department_id |
int(11)
|
|
|
|
| product_id |
int(11)
|
|
|
Browse foreign values
|
| defect_type_id |
int(11)
|
|
|
Browse foreign values
|
| severity |
enum('Minor', 'Major', 'Critical')
|
utf8mb4_unicode_ci
|
|
|
| batch_lot_number |
varchar(100)
|
utf8mb4_unicode_ci
|
|
|
| invoice_number |
varchar(100)
|
utf8mb4_unicode_ci
|
|
|
| dispatch_date |
date
|
|
|
|
| complaint_date |
date
|
|
|
|
| quantity_supplied |
int(11)
|
|
|
|
| quantity_defective |
int(11)
|
|
|
|
| affected_quantity |
int(11)
|
|
|
|
| problem_description |
text
|
utf8mb4_unicode_ci
|
|
|
| immediate_containment |
text
|
utf8mb4_unicode_ci
|
|
|
| containment_status |
enum('Pending', 'Contained', 'Not_Required')
|
utf8mb4_unicode_ci
|
|
|
| status |
enum('Registered', 'Assigned', 'Under_Investigation', 'CAPA_Pending', 'Verification', 'Closed', 'Reopened')
|
utf8mb4_unicode_ci
|
|
|
| assigned_to_user_id |
int(11)
|
|
|
|
| responsible_department_id |
int(11)
|
|
|
|
| responsible_person |
varchar(100)
|
utf8mb4_unicode_ci
|
|
|
| target_closure_date |
date
|
|
|
|
| actual_closure_date |
date
|
|
|
|
| financial_impact |
decimal(12,2)
|
|
|
|
| closure_remarks |
text
|
utf8mb4_unicode_ci
|
|
|
| logged_by_user_id |
int(11)
|
|
|
|
| created_at |
timestamp
|
|
|
|
| updated_at |
timestamp
|
|
|
|