34 lines
2.0 KiB
Go
34 lines
2.0 KiB
Go
// 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"
|
||
)
|
||
|
||
const TableNameAiBotUser = "ai_bot_user"
|
||
|
||
// AiBotUser mapped from table <ai_bot_user>
|
||
type AiBotUser struct {
|
||
UserID int32 `gorm:"column:user_id;primaryKey" json:"user_id"`
|
||
StaffID string `gorm:"column:staff_id;not null;comment:标记用户用的唯一id,钉钉:钉钉侧提供的user_id" json:"staff_id"` // 标记用户用的唯一id,钉钉:钉钉侧提供的user_id
|
||
Name string `gorm:"column:name;not null;comment:用户名称" json:"name"` // 用户名称
|
||
Title string `gorm:"column:title;not null;comment:职位" json:"title"` // 职位
|
||
Extension string `gorm:"column:extension;not null;default:1;comment:信息面板" json:"extension"` // 信息面板
|
||
RoleList string `gorm:"column:role_list;not null;comment:角色列表。" json:"role_list"` // 角色列表。
|
||
DeptIDList string `gorm:"column:dept_id_list;not null;comment:所在部门id列表" json:"dept_id_list"` // 所在部门id列表
|
||
IsBoss int32 `gorm:"column:is_boss;not null;comment:是否是老板" json:"is_boss"` // 是否是老板
|
||
IsSenior int32 `gorm:"column:is_senior;not null;comment:是否是高管" json:"is_senior"` // 是否是高管
|
||
HiredDate time.Time `gorm:"column:hired_date;not null;default:CURRENT_TIMESTAMP;comment:入职时间" json:"hired_date"` // 入职时间
|
||
Status int32 `gorm:"column:status;not null" json:"status"`
|
||
DeleteAt *time.Time `gorm:"column:delete_at" json:"delete_at"`
|
||
CreateAt time.Time `gorm:"column:create_at;default:CURRENT_TIMESTAMP" json:"create_at"`
|
||
}
|
||
|
||
// TableName AiBotUser's table name
|
||
func (*AiBotUser) TableName() string {
|
||
return TableNameAiBotUser
|
||
}
|