17 lines
612 B
Go
17 lines
612 B
Go
|
|
package model
|
||
|
|
|
||
|
|
import "time"
|
||
|
|
|
||
|
|
type CompanyRelationship struct {
|
||
|
|
ID string `json:"id" db:"id"`
|
||
|
|
PurchaserCompanyID string `json:"purchaser_company_id" db:"purchaser_company_id"`
|
||
|
|
FactoryCompanyID string `json:"factory_company_id" db:"factory_company_id"`
|
||
|
|
FactoryType string `json:"factory_type" db:"factory_type"`
|
||
|
|
Status string `json:"status" db:"status"`
|
||
|
|
CreatedAt time.Time `json:"created_at" db:"created_at"`
|
||
|
|
UpdatedAt time.Time `json:"updated_at" db:"updated_at"`
|
||
|
|
|
||
|
|
// Aggregated
|
||
|
|
FactoryName string `json:"factory_name,omitempty"`
|
||
|
|
}
|