package models import "time" // FrontendPermission is one row of golem15_user_frontend_permissions, the // PHP FrontendPermission model: a permission the user and group permission // editors offer. Rows come from migrations or seeds of the host application; // there is no registry that plugins declare permissions in. Label, Tab and // Comment are shown as stored; a value that is a translation key is // translated. type FrontendPermission struct { ID uint `gorm:"column:id;primaryKey"` Code string `gorm:"column:code"` Label string `gorm:"column:label"` Tab string `gorm:"column:tab"` Comment *string `gorm:"column:comment"` CreatedAt *time.Time `gorm:"column:created_at"` UpdatedAt *time.Time `gorm:"column:updated_at"` } func (FrontendPermission) TableName() string { return "golem15_user_frontend_permissions" } func init() { Register(FrontendPermission{}) }