任务三
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
// Code generated by gorm.io/gen. DO NOT EDIT.
|
||||
// Code generated by gorm.io/gen. DO NOT EDIT.
|
||||
// Code generated by gorm.io/gen. DO NOT EDIT.
|
||||
|
||||
package model
|
||||
|
||||
import (
|
||||
"time"
|
||||
|
||||
"gorm.io/gorm"
|
||||
)
|
||||
|
||||
const TableNameSysBaseMenuBtn = "sys_base_menu_btns"
|
||||
|
||||
// SysBaseMenuBtn mapped from table <sys_base_menu_btns>
|
||||
type SysBaseMenuBtn struct {
|
||||
ID int64 `gorm:"column:id;type:bigint(20) unsigned;primaryKey;autoIncrement:true" json:"id"`
|
||||
CreatedAt *time.Time `gorm:"column:created_at;type:datetime(3)" json:"created_at"`
|
||||
UpdatedAt *time.Time `gorm:"column:updated_at;type:datetime(3)" json:"updated_at"`
|
||||
DeletedAt gorm.DeletedAt `gorm:"column:deleted_at;type:datetime(3);index:idx_sys_base_menu_btns_deleted_at,priority:1" json:"deleted_at"`
|
||||
Name *string `gorm:"column:name;type:varchar(191);comment:按钮关键key" json:"name"` // 按钮关键key
|
||||
Desc *string `gorm:"column:desc;type:varchar(191)" json:"desc"`
|
||||
SysBaseMenuID *int64 `gorm:"column:sys_base_menu_id;type:bigint(20) unsigned;comment:菜单ID" json:"sys_base_menu_id"` // 菜单ID
|
||||
}
|
||||
|
||||
// TableName SysBaseMenuBtn's table name
|
||||
func (*SysBaseMenuBtn) TableName() string {
|
||||
return TableNameSysBaseMenuBtn
|
||||
}
|
||||
Reference in New Issue
Block a user