rbac_roles.go 385 B

12345678910111213141516
  1. package model
  2. import (
  3. "time"
  4. )
  5. type RbacRoles struct {
  6. Name string `gorm:"primaryKey;column:name" json:"name"`
  7. Describe string `gorm:"column:describe" json:"describe"`
  8. CreatedAt time.Time `gorm:"column:created_at" json:"created_at"`
  9. UpdatedAt time.Time `gorm:"column:updated_at" json:"updated_at"`
  10. }
  11. func (m *RbacRoles) TableName() string {
  12. return "rbac_roles"
  13. }