package entity import ( "time" "github.com/google/uuid" ) type DeviceType string type DeviceStatus string const ( Odp DeviceType = "ODP" activeDev DeviceStatus = "active" inactiveDev DeviceStatus = "inactive" maintenanceDev DeviceStatus = "maintenance" ) type Device struct { ID uuid.UUID `json:"id"` DeviceCode string `json:"device_code"` DeviceType DeviceType `json:"device_type"` Longitude float64 `json:"longitude"` Latitude float64 `json:"latitude"` PortAmount int `json:"port_amount"` Status DeviceStatus `json:"status"` CreatedAt time.Time `json:"created_at"` UpdatedAt time.Time `json:"updated_at"` }