refactor: remove legacy modules from API and UI
This commit is contained in:
@@ -2,42 +2,9 @@ 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"`
|
||||
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"`
|
||||
}
|
||||
@@ -45,8 +12,6 @@ type LotModelMapping struct {
|
||||
type Machine struct {
|
||||
ID string `json:"id"`
|
||||
ProjectID string `json:"project_id"`
|
||||
CustomerID *string `json:"customer_id,omitempty"`
|
||||
LocationID *string `json:"location_id,omitempty"`
|
||||
Name string `json:"name"`
|
||||
Vendor *string `json:"vendor,omitempty"`
|
||||
Model *string `json:"model,omitempty"`
|
||||
@@ -61,7 +26,6 @@ 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"`
|
||||
|
||||
Reference in New Issue
Block a user