refactor: remove legacy modules from API and UI

This commit is contained in:
2026-02-15 22:20:50 +03:00
parent 5518c3b405
commit 93c99b4506
45 changed files with 464 additions and 5610 deletions

View File

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