33 lines
983 B
Go
Raw Permalink Normal View History

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