30 lines
1.5 KiB
Go
30 lines
1.5 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 TableNameAiAdviceAdmin = "ai_advice_admin"
|
|
|
|
// AiAdvicerAdmin mapped from table <ai_advicer_admin>
|
|
type AiAdviceAdmin struct {
|
|
AdminID int32 `gorm:"column:admin_id;primaryKey;autoIncrement:true" json:"admin_id"`
|
|
Type int32 `gorm:"column:type;not null;default:1;comment:类型" json:"type"` // 类型
|
|
Name string `gorm:"column:name;not null;comment:姓名" json:"name"` // 姓名
|
|
Account string `gorm:"column:account;not null;comment:账号" json:"account"` // 账号
|
|
Pwd string `gorm:"column:pwd;not null;comment:密码" json:"pwd"` // 密码
|
|
Status int32 `gorm:"column:status;not null;default:1;comment:状态 1正常 0禁用" json:"status"` // 状态 1正常 0禁用
|
|
LastLoginAt time.Time `gorm:"column:last_login_at;comment:最后登录时间" json:"last_login_at"` // 最后登录时间
|
|
CreateAt time.Time `gorm:"column:create_at;default:CURRENT_TIMESTAMP;comment:创建时间" json:"create_at"` // 创建时间
|
|
UpdateAt time.Time `gorm:"column:update_at;default:CURRENT_TIMESTAMP;comment:更新时间" json:"update_at"` // 更新时间
|
|
}
|
|
|
|
// TableName AiAdvicerAdmin's table name
|
|
func (*AiAdviceAdmin) TableName() string {
|
|
return TableNameAiAdviceAdmin
|
|
}
|