27 lines
1006 B
Go
27 lines
1006 B
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 TableNameUser = "users"
|
|
|
|
// User mapped from table <users>
|
|
type User struct {
|
|
ID int64 `gorm:"column:id;primaryKey;comment:用户ID" json:"id"` // 用户ID
|
|
CreateTime time.Time `gorm:"column:create_time;not null" json:"create_time"`
|
|
LastUpdateTime time.Time `gorm:"column:last_update_time;not null" json:"last_update_time"`
|
|
Name string `gorm:"column:name;not null;comment:用户在系统内的名称" json:"name"` // 用户在系统内的名称
|
|
Account string `gorm:"column:account;not null;comment:用户登录凭证" json:"account"` // 用户登录凭证
|
|
Passwd string `gorm:"column:passwd;not null;comment:用户登录密钥" json:"passwd"` // 用户登录密钥
|
|
}
|
|
|
|
// TableName User's table name
|
|
func (*User) TableName() string {
|
|
return TableNameUser
|
|
}
|