37 lines
2.0 KiB
Go
37 lines
2.0 KiB
Go
|
|
package model
|
||
|
|
|
||
|
|
import "time"
|
||
|
|
|
||
|
|
type WashingPlanCompletion struct {
|
||
|
|
ID string `json:"id" db:"id"`
|
||
|
|
WashingPlanID string `json:"washing_plan_id" db:"washing_plan_id"`
|
||
|
|
CompanyID string `json:"company_id" db:"company_id"`
|
||
|
|
ActualShrinkageRate float64 `json:"actual_shrinkage_rate" db:"actual_shrinkage_rate"`
|
||
|
|
ActualWashedMeters float64 `json:"actual_washed_meters" db:"actual_washed_meters"`
|
||
|
|
ActualWashingCost *float64 `json:"actual_washing_cost,omitempty" db:"actual_washing_cost"`
|
||
|
|
UnitCost *float64 `json:"unit_cost,omitempty" db:"unit_cost"`
|
||
|
|
Rolls int `json:"rolls" db:"rolls"`
|
||
|
|
WashingDate time.Time `json:"washing_date" db:"washing_date"`
|
||
|
|
Notes *string `json:"notes,omitempty" db:"notes"`
|
||
|
|
CompletedBy *string `json:"completed_by,omitempty" db:"completed_by"`
|
||
|
|
CompletedAt time.Time `json:"completed_at" db:"completed_at"`
|
||
|
|
FinishedProductID *string `json:"finished_product_id,omitempty" db:"finished_product_id"`
|
||
|
|
AutoImported bool `json:"auto_imported" db:"auto_imported"`
|
||
|
|
WarehouseID *string `json:"warehouse_id,omitempty" db:"warehouse_id"`
|
||
|
|
WarehouseLocation *string `json:"warehouse_location,omitempty" db:"warehouse_location"`
|
||
|
|
CreatedAt time.Time `json:"created_at" db:"created_at"`
|
||
|
|
}
|
||
|
|
|
||
|
|
type WashingProcessStep struct {
|
||
|
|
ID string `json:"id" db:"id"`
|
||
|
|
WashingPlanID string `json:"washing_plan_id" db:"washing_plan_id"`
|
||
|
|
CompanyID string `json:"company_id" db:"company_id"`
|
||
|
|
StepType string `json:"step_type" db:"step_type"`
|
||
|
|
Status string `json:"status" db:"status"`
|
||
|
|
Notes *string `json:"notes,omitempty" db:"notes"`
|
||
|
|
OperatorID *string `json:"operator_id,omitempty" db:"operator_id"`
|
||
|
|
Timestamp *time.Time `json:"timestamp,omitempty" db:"timestamp"`
|
||
|
|
CreatedAt time.Time `json:"created_at" db:"created_at"`
|
||
|
|
UpdatedAt time.Time `json:"updated_at" db:"updated_at"`
|
||
|
|
}
|