Chever John 9c39c8cbd7
init: iloom WMS monorepo with K8s deployment manifests
Go workspace (go.work) with 5 microservices + shared library:
- gateway (8080), auth-service (8081), purchaser-service (8082)
- textile-service (8083), washing-service (8084)
- shared: proto definitions, common packages

Infrastructure: docker-compose for local dev, K8s manifests for
K3s cluster deployment (mysql/redis/etcd + traefik ingress).

Frontend (iloom-flatten) added as git submodule.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-06-14 11:33:31 +08:00

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"`
}