- package model
- import (
- "time"
- )
- type RbacRoles struct {
- Name string `gorm:"primaryKey;column:name" json:"name"`
- Describe string `gorm:"column:describe" json:"describe"`
- CreatedAt time.Time `gorm:"column:created_at" json:"created_at"`
- UpdatedAt time.Time `gorm:"column:updated_at" json:"updated_at"`
- }
- func (m *RbacRoles) TableName() string {
- return "rbac_roles"
- }
|