package models import "time" type ProductionOrder struct { ID uint `gorm:"primaryKey" json:"id"` ProductID uint `json:"product_id"` Product Product `gorm:"foreignKey:ProductID" json:"product"` ProductionID string `gorm:"not null;unique" json:"production_id"` // kode batch TargetQuantity float64 `json:"target_quantity"` Status string `json:"status"` // contoh: "planned", "in_progress", "done" StartDate time.Time `json:"start_date"` EndDate time.Time `json:"end_date"` Note string `json:"note"` CreatedAt time.Time UpdatedAt time.Time }