22 lines
682 B
Go
22 lines
682 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
|
|
|
|
const TableNameUser = "user"
|
|
|
|
// User mapped from table <user>
|
|
type User struct {
|
|
ID int64 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"`
|
|
TokenID int32 `gorm:"column:token_id;not null" json:"token_id"`
|
|
Name string `gorm:"column:name;not null" json:"name"`
|
|
Status int32 `gorm:"column:status;not null;default:1" json:"status"`
|
|
UserIndex string `gorm:"column:user_index;not null" json:"user_index"`
|
|
}
|
|
|
|
// TableName User's table name
|
|
func (*User) TableName() string {
|
|
return TableNameUser
|
|
}
|