package models import "time" type RoutingRule struct { ID int64 `gorm:"primaryKey" json:"id"` DomainID int64 `gorm:"column:domain_id" json:"domain_id"` PathPrefix string `gorm:"column:path_prefix" json:"path_prefix"` BackendID int64 `gorm:"column:backend_id" json:"backend_id"` Priority int `gorm:"column:priority" json:"priority"` Active bool `gorm:"column:active" json:"active"` CreatedAt time.Time `gorm:"column:created_at" json:"created_at"` UpdatedAt time.Time `gorm:"column:updated_at" json:"updated_at"` } func (RoutingRule) TableName() string { return "routing_rules" }