rts-sim-testing-service/db/model/user.gen.go

26 lines
893 B
Go
Raw Permalink Normal View History

// 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 = "user"
// User mapped from table <user>
type User struct {
ID int32 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"`
Name string `gorm:"column:name;not null;comment:名字" json:"name"` // 名字
Mobile string `gorm:"column:mobile;not null;comment:手机号" json:"mobile"` // 手机号
Password string `gorm:"column:password;not null;comment:密码" json:"password"` // 密码
RegisterTime time.Time `gorm:"column:register_time;not null;comment:注册时间" json:"register_time"` // 注册时间
}
// TableName User's table name
func (*User) TableName() string {
return TableNameUser
}