veza/veza-backend-api/internal/models/feature_flag.go
2026-03-05 23:03:43 +01:00

18 lines
489 B
Go

package models
import (
"time"
)
// FeatureFlag represents a feature flag (v0.803 ADM1-05)
type FeatureFlag struct {
Name string `gorm:"primaryKey;size:100" json:"name"`
Enabled bool `gorm:"not null;default:false" json:"enabled"`
Description string `gorm:"type:text" json:"description,omitempty"`
UpdatedAt time.Time `gorm:"not null" json:"updated_at"`
}
// TableName returns the table name
func (FeatureFlag) TableName() string {
return "feature_flags"
}