28 lines
880 B
Go
28 lines
880 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 TableNamePerson = "person"
|
|
|
|
// Person mapped from table <person>
|
|
type Person struct {
|
|
ID int32 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"`
|
|
PersonType int32 `gorm:"column:person_type" json:"person_type"`
|
|
PersonPicURL string `gorm:"column:person_pic_url" json:"person_pic_url"`
|
|
PersonName string `gorm:"column:person_name" json:"person_name"`
|
|
IsDeleted bool `gorm:"column:is_deleted" json:"is_deleted"`
|
|
CreateTime time.Time `gorm:"column:create_time" json:"create_time"`
|
|
UpdateTime time.Time `gorm:"column:update_time" json:"update_time"`
|
|
}
|
|
|
|
// TableName Person's table name
|
|
func (*Person) TableName() string {
|
|
return TableNamePerson
|
|
}
|