package models import ( "time" "github.com/google/uuid" "lst.net/pkg" ) type Servers struct { ServerID uuid.UUID `gorm:"type:uuid;default:uuid_generate_v4();primaryKey" json:"id"` ServerName string `gorm:"size:50;not null"` ServerDNS string `gorm:"size:25;not null"` PlantToken string `gorm:"size:10;not null"` IPAddress string `gorm:"size:16;not null"` GreatPlainsPlantCode int `gorm:"size:10;not null"` StreetAddress string `gorm:"size:255;not null"` CityState string `gorm:"size:50;not null"` Zipcode int `gorm:"size:13;not null"` ContactEmail string `gorm:"size:255"` ContactPhone string `gorm:"size:255"` CustomerTiAcc string `gorm:"size:255"` LstServerPort int `gorm:"size:255; not null"` Active bool `gorm:"type:boolean;default:true"` LerverLoc string `gorm:"size:255:not null"` LastUpdated time.Time `gorm:"index"` ShippingHours pkg.JSONB `gorm:"type:jsonb;default:'[{\"early\": \"06:30\", \"late\": \"23:00\"}]'"` TiPostTime pkg.JSONB `gorm:"type:jsonb;default:'[{\"from\": \"24\", \"to\": \"24\"}]'"` OtherSettings pkg.JSONB `gorm:"type:jsonb;default:'[{\"specialInstructions\": \"something for ti\", \"active\": false}]'"` IsUpgrading bool `gorm:"type:boolean;default:true"` AlplaProdApiKey string `gorm:"size:255"` }