28 lines
1.3 KiB
Go
28 lines
1.3 KiB
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 TableNameSymptom = "symptom"
|
|
|
|
// Symptom 症状表
|
|
type Symptom struct {
|
|
ID int32 `gorm:"column:id;primaryKey;autoIncrement:true;comment:主键" json:"id"` // 主键
|
|
Title string `gorm:"column:title;not null;comment:症状" json:"title"` // 症状
|
|
Description string `gorm:"column:description;not null;comment:描述" json:"description"` // 描述
|
|
CreatedUser string `gorm:"column:created_user;not null;comment:创建人" json:"created_user"` // 创建人
|
|
CreatedAt time.Time `gorm:"column:created_at;not null;default:CURRENT_TIMESTAMP;comment:创建时间" json:"created_at"` // 创建时间
|
|
UpdatedUser string `gorm:"column:updated_user;not null;comment:更新人" json:"updated_user"` // 更新人
|
|
UpdatedAt time.Time `gorm:"column:updated_at;not null;default:CURRENT_TIMESTAMP;comment:更新时间" json:"updated_at"` // 更新时间
|
|
}
|
|
|
|
// TableName Symptom's table name
|
|
func (*Symptom) TableName() string {
|
|
return TableNameSymptom
|
|
}
|