20 lines
595 B
Go
20 lines
595 B
Go
package models
|
|
|
|
import (
|
|
"encoding/json"
|
|
"time"
|
|
)
|
|
|
|
type Component struct {
|
|
ID int64 `json:"id"`
|
|
ComponentTypeID int64 `json:"componentTypeId"`
|
|
Name string `json:"name"`
|
|
Description string `json:"description"`
|
|
Unit string `json:"unit"`
|
|
TotalQuantity int32 `json:"totalQuantity"`
|
|
MinQuantity int32 `json:"minQuantity"`
|
|
Metadata json.RawMessage `json:"metadata"`
|
|
CreatedAt time.Time `json:"createdAt"`
|
|
UpdatedAt time.Time `json:"updatedAt"`
|
|
}
|