36 lines
2.6 KiB
Go
36 lines
2.6 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 TableNamePatientMedicineTask = "patient_medicine_task"
|
|
|
|
// PatientMedicineTask 患者用药提醒(任务)表
|
|
type PatientMedicineTask struct {
|
|
ID int32 `gorm:"column:id;primaryKey;autoIncrement:true;comment:主键ID" json:"id"` // 主键ID
|
|
Code string `gorm:"column:code;not null;comment:任务编码" json:"code"` // 任务编码
|
|
Title string `gorm:"column:title;not null;comment:标题" json:"title"` // 标题
|
|
Spec string `gorm:"column:spec;not null;comment:时间表达式" json:"spec"` // 时间表达式
|
|
Status int32 `gorm:"column:status;not null;comment:状态(1:禁用 2:启用)" json:"status"` // 状态(1:禁用 2:启用)
|
|
IsRunning int32 `gorm:"column:is_running;not null;comment:执行中(0:未执行 1:执行中 2:执行完毕)" json:"is_running"` // 执行中(0:未执行 1:执行中 2:执行完毕)
|
|
RunTime time.Time `gorm:"column:run_time;comment:预期执行时间" json:"run_time"` // 预期执行时间
|
|
RunStartTime time.Time `gorm:"column:run_start_time;comment:执行开始时间" json:"run_start_time"` // 执行开始时间
|
|
RunEndTime time.Time `gorm:"column:run_end_time;comment:执行结束时间" json:"run_end_time"` // 执行结束时间
|
|
PatientID int32 `gorm:"column:patient_id;not null;comment:患者ID" json:"patient_id"` // 患者ID
|
|
MedicineRecordID int32 `gorm:"column:medicine_record_id;not null;comment:用药记录ID" json:"medicine_record_id"` // 用药记录ID
|
|
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 PatientMedicineTask's table name
|
|
func (*PatientMedicineTask) TableName() string {
|
|
return TableNamePatientMedicineTask
|
|
}
|