35 lines
757 B
Go
35 lines
757 B
Go
package models
|
|
|
|
type Item struct {
|
|
ID int `json:"id"`
|
|
Name string `json:"name"`
|
|
Category string `json:"category"`
|
|
Description string `json:"description"`
|
|
TotalQuantity int `json:"total_quantity"`
|
|
}
|
|
|
|
type Location struct {
|
|
ID int `json:"id"`
|
|
Name string `json:"name"`
|
|
}
|
|
|
|
type Project struct {
|
|
ID int `json:"id"`
|
|
Name string `json:"name"`
|
|
Description string `json:"description"`
|
|
}
|
|
|
|
type Stock struct {
|
|
ID int `json:"id"`
|
|
ItemID int `json:"item_id"`
|
|
LocationID int `json:"location_id"`
|
|
Quantity int `json:"quantity"`
|
|
}
|
|
|
|
type ProjectItem struct {
|
|
ID int `json:"id"`
|
|
ItemID int `json:"item_id"`
|
|
ProjectID int `json:"project_id"`
|
|
Quantity int `json:"quantity"`
|
|
}
|