// 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 TableNamePatientMedicineScheme = "patient_medicine_scheme" // PatientMedicineScheme 患者用药方案表 type PatientMedicineScheme struct { ID int32 `gorm:"column:id;primaryKey;autoIncrement:true;comment:主键" json:"id"` // 主键 PatientID int32 `gorm:"column:patient_id;not null;comment:患者ID" json:"patient_id"` // 患者ID StartDate time.Time `gorm:"column:start_date;comment:用药开始日期" json:"start_date"` // 用药开始日期 EndDate time.Time `gorm:"column:end_date;comment:用药结束日期" json:"end_date"` // 用药结束日期 Detail string `gorm:"column:detail;not null;comment:药品信息(JSON格式)" json:"detail"` // 药品信息(JSON格式) Reminder string `gorm:"column:reminder;not null;comment:用药提醒(JSON格式)" json:"reminder"` // 用药提醒(JSON格式) 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 PatientMedicineScheme's table name func (*PatientMedicineScheme) TableName() string { return TableNamePatientMedicineScheme }