
id : int(11)
|

rejection_number : varchar(32)
|

rejection_source : enum('Incoming Material','Supplier','In-Process Production','Final Inspection','Dispatch & Packing','Customer Returns','Other Quality Loss')
|

rejection_stage : varchar(100)
|

rejection_date : date
|

department_id : int(11)
|

product_id : int(11)
|

machine_id : int(11)
|

defect_type_id : int(11)
|

supplier_id : int(11)
|

customer_id : int(11)
|

material_id : int(11)
|

process_id : int(11)
|

work_order : varchar(100)
|

invoice_number : varchar(100)
|

severity : enum('Minor','Major','Critical')
|

detection_stage : varchar(100)
|

shift : enum('Shift 1','Shift 2','Shift 3','General')
|

unit_of_measure : varchar(20)
|

total_received_qty : decimal(12,2)
|

inspected_qty : decimal(12,2)
|

accepted_qty : decimal(12,2)
|

production_qty : int(11)
|

rejected_qty : int(11)
|

rework_qty : decimal(12,2)
|

scrap_qty : decimal(12,2)
|

sorting_qty : decimal(12,2)
|

pending_qty : decimal(12,2)
|

rejection_rate : decimal(6,2)
|

acceptance_rate : decimal(6,2)
|

disposition : enum('Scrap','Rework','RTV (Return to Vendor)','Use As Is','Sorting')
|

disposition_notes : text
|

disposition_approved_by : int(11)
|

disposition_approved_at : datetime
|

scrap_cost : decimal(12,2)
|

root_cause_summary : text
|

containment_action : text
|

corrective_action : text
|

preventive_action : text
|

is_capa_required : tinyint(1)
|

capa_id : int(11)
|

ncr_id : int(11)
|

responsible_department_id : int(11)
|

responsible_employee : varchar(100)
|

target_date : date
|

status : enum('Open','Under_Investigation','Rework_In_Progress','Disposition_Approved','CAPA_Linked','Closed')
|

material_unit_cost : decimal(12,2)
|

manufacturing_unit_cost : decimal(12,2)
|

material_loss_cost : decimal(12,2)
|

mfg_loss_cost : decimal(12,2)
|

rework_cost : decimal(12,2)
|

sorting_cost : decimal(12,2)
|

inspection_cost : decimal(12,2)
|

freight_penalty_cost : decimal(12,2)
|

gross_rejection_cost : decimal(12,2)
|

scrap_recovery : decimal(12,2)
|

supplier_recovery : decimal(12,2)
|

customer_recovery : decimal(12,2)
|

other_recoveries : decimal(12,2)
|

total_recoveries : decimal(12,2)
|

net_rejection_loss : decimal(12,2)
|

costing_method : varchar(50)
|

operator_name : varchar(100)
|

batch_number : varchar(100)
|

created_by : int(11)
|

created_at : datetime
|

updated_at : datetime
|