// 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 TableNameSysBaseMenu = "sys_base_menus"

// SysBaseMenu mapped from table <sys_base_menus>
type SysBaseMenu 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_menus_deleted_at,priority:1" json:"deleted_at"`
	MenuLevel      int64          `gorm:"column:menu_level;type:bigint(20) unsigned" json:"menu_level"`
	ParentID       int64          `gorm:"column:parent_id;type:bigint(20) unsigned;comment:父菜单ID" json:"parent_id"`       // 父菜单ID
	Path           string         `gorm:"column:path;type:varchar(191);comment:路由path" json:"path"`                       // 路由path
	Name           string         `gorm:"column:name;type:varchar(191);comment:路由name" json:"name"`                       // 路由name
	Hidden         bool           `gorm:"column:hidden;type:tinyint(1);comment:是否在列表隐藏" json:"hidden"`                    // 是否在列表隐藏
	Component      string         `gorm:"column:component;type:varchar(191);comment:对应前端文件路径" json:"component"`           // 对应前端文件路径
	Sort           int64          `gorm:"column:sort;type:bigint(20);comment:排序标记" json:"sort"`                           // 排序标记
	ActiveName     string         `gorm:"column:active_name;type:varchar(191);comment:高亮菜单" json:"active_name"`           // 高亮菜单
	KeepAlive      bool           `gorm:"column:keep_alive;type:tinyint(1);comment:是否缓存" json:"keep_alive"`               // 是否缓存
	DefaultMenu    bool           `gorm:"column:default_menu;type:tinyint(1);comment:是否是基础路由（开发中）" json:"default_menu"`   // 是否是基础路由（开发中）
	Title          string         `gorm:"column:title;type:varchar(191);comment:菜单名" json:"title"`                        // 菜单名
	Icon           string         `gorm:"column:icon;type:varchar(191);comment:菜单图标" json:"icon"`                         // 菜单图标
	CloseTab       bool           `gorm:"column:close_tab;type:tinyint(1);comment:自动关闭tab" json:"close_tab"`              // 自动关闭tab
	TransitionType string         `gorm:"column:transition_type;type:varchar(191);comment:路由切换动画" json:"transition_type"` // 路由切换动画
}

// TableName SysBaseMenu's table name
func (*SysBaseMenu) TableName() string {
	return TableNameSysBaseMenu
}
