29 lines
867 B
Go
29 lines
867 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"
|
|
|
|
"gorm.io/gorm"
|
|
)
|
|
|
|
const TableNameUser = "users"
|
|
|
|
// User mapped from table <users>
|
|
type User struct {
|
|
ID int64 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"`
|
|
Sn string `gorm:"column:sn;not null;comment:业务唯一编号" json:"sn"` // 业务唯一编号
|
|
Name string `gorm:"column:name;not null" json:"name"`
|
|
CreatedAt time.Time `gorm:"column:created_at;not null" json:"created_at"`
|
|
UpdatedAt time.Time `gorm:"column:updated_at;not null" json:"updated_at"`
|
|
DeletedAt gorm.DeletedAt `gorm:"column:deleted_at" json:"deleted_at"`
|
|
}
|
|
|
|
// TableName User's table name
|
|
func (*User) TableName() string {
|
|
return TableNameUser
|
|
}
|