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

33 lines
983 B
Go

package model
import "time"
type Company struct {
ID string `json:"id"`
Name string `json:"name"`
Role string `json:"role"`
Address string `json:"address,omitempty"`
Phone string `json:"phone,omitempty"`
Status int `json:"status"`
CreatedAt time.Time `json:"created_at"`
}
type CompanyMember struct {
ID string `json:"id"`
CompanyID string `json:"company_id"`
UserID string `json:"user_id"`
Role string `json:"role"`
IsMaster bool `json:"is_master"`
CreatedAt time.Time `json:"created_at"`
}
type CompanyRelationship struct {
ID string `json:"id"`
PurchaserCompanyID string `json:"purchaser_company_id"`
FactoryCompanyID string `json:"factory_company_id"`
FactoryType string `json:"factory_type"`
Status string `json:"status"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
}