package models import "time" type Domain struct { ID int64 `gorm:"primaryKey" json:"id"` Name string `gorm:"column:name;uniqueIndex" json:"name"` Active bool `gorm:"column:active" json:"active"` PrimaryBackendID *int64 `gorm:"column:primary_backend_id" json:"primary_backend_id,omitempty"` HTTPToHTTPS bool `gorm:"column:http_to_https" json:"http_to_https"` HSTSEnabled bool `gorm:"column:hsts_enabled" json:"hsts_enabled"` Notes *string `gorm:"column:notes" json:"notes,omitempty"` CreatedAt time.Time `gorm:"column:created_at" json:"created_at"` UpdatedAt time.Time `gorm:"column:updated_at" json:"updated_at"` } func (Domain) TableName() string { return "domains" }