package domain import "time" type Customer struct { ID string `json:"id"` Name string `json:"name"` CreatedAt time.Time `json:"created_at"` UpdatedAt time.Time `json:"updated_at"` } type Project struct { ID string `json:"id"` CustomerID string `json:"customer_id"` Name string `json:"name"` CreatedAt time.Time `json:"created_at"` UpdatedAt time.Time `json:"updated_at"` } type Location struct { ID string `json:"id"` CustomerID string `json:"customer_id"` Name string `json:"name"` Kind *string `json:"kind,omitempty"` CreatedAt time.Time `json:"created_at"` UpdatedAt time.Time `json:"updated_at"` } type Lot struct { ID string `json:"id"` Code string `json:"code"` Description *string `json:"description,omitempty"` CreatedAt time.Time `json:"created_at"` UpdatedAt time.Time `json:"updated_at"` } type LotModelMapping struct { ID string `json:"id"` Model string `json:"model"` LotID string `json:"lot_id"` LotCode string `json:"lot_code,omitempty"` CreatedAt time.Time `json:"created_at"` UpdatedAt time.Time `json:"updated_at"` } type Machine struct { ID string `json:"id"` ProjectID string `json:"project_id"` LocationID *string `json:"location_id,omitempty"` Name string `json:"name"` Vendor *string `json:"vendor,omitempty"` Model *string `json:"model,omitempty"` VendorSerial string `json:"vendor_serial"` MachineTag *string `json:"machine_tag,omitempty"` CreatedAt time.Time `json:"created_at"` UpdatedAt time.Time `json:"updated_at"` } // Asset is deprecated, use Machine instead type Asset = Machine type Part struct { ID string `json:"id"` LotID *string `json:"lot_id,omitempty"` Vendor *string `json:"vendor,omitempty"` Model *string `json:"model,omitempty"` VendorSerial string `json:"vendor_serial"` FirstSeenAt *time.Time `json:"first_seen_at,omitempty"` CreatedAt time.Time `json:"created_at"` UpdatedAt time.Time `json:"updated_at"` } // Component is deprecated, use Part instead type Component = Part