67 lines
3.7 KiB
Go
67 lines
3.7 KiB
Go
package models
|
|
|
|
import "time"
|
|
|
|
type OaDailyReport struct {
|
|
ID uint64 `orm:"column(id);pk;auto" json:"id"`
|
|
Tid uint64 `orm:"column(tid)" json:"tid"`
|
|
UserID uint64 `orm:"column(user_id)" json:"user_id"`
|
|
UserName string `orm:"column(user_name);size(50);default()" json:"user_name"`
|
|
OrgID uint64 `orm:"column(org_id);default(0)" json:"org_id"`
|
|
OrgName string `orm:"column(org_name);size(100);default()" json:"org_name"`
|
|
ReportDate string `orm:"column(report_date);type(date)" json:"report_date"`
|
|
TodayDone string `orm:"column(today_done);type(text);null" json:"today_done"`
|
|
TomorrowPlan string `orm:"column(tomorrow_plan);type(text);null" json:"tomorrow_plan"`
|
|
Issues string `orm:"column(issues);type(text);null" json:"issues"`
|
|
Attachments string `orm:"column(attachments);type(text);null" json:"attachments"`
|
|
Status int8 `orm:"column(status);default(1)" json:"status"`
|
|
SubmitTime *time.Time `orm:"column(submit_time);type(datetime);null" json:"submit_time"`
|
|
IsDeleted uint64 `orm:"column(is_deleted);default(0)" json:"is_deleted"`
|
|
CreateTime time.Time `orm:"column(create_time);auto_now_add;type(datetime)" json:"create_time"`
|
|
UpdateTime *time.Time `orm:"column(update_time);auto_now;type(datetime);null" json:"update_time"`
|
|
DeleteTime *time.Time `orm:"column(delete_time);type(datetime);null" json:"delete_time"`
|
|
}
|
|
|
|
func (m *OaDailyReport) TableName() string {
|
|
return "yz_backend_oa_daily_report"
|
|
}
|
|
|
|
type OaDailyReportHistory struct {
|
|
ID uint64 `orm:"column(id);pk;auto" json:"id"`
|
|
Tid uint64 `orm:"column(tid)" json:"tid"`
|
|
ReportID uint64 `orm:"column(report_id)" json:"report_id"`
|
|
UserID uint64 `orm:"column(user_id)" json:"user_id"`
|
|
UserName string `orm:"column(user_name);size(50);default()" json:"user_name"`
|
|
ReportDate string `orm:"column(report_date);type(date)" json:"report_date"`
|
|
Action int8 `orm:"column(action);default(1)" json:"action"`
|
|
TodayDone string `orm:"column(today_done);type(text);null" json:"today_done"`
|
|
TomorrowPlan string `orm:"column(tomorrow_plan);type(text);null" json:"tomorrow_plan"`
|
|
Issues string `orm:"column(issues);type(text);null" json:"issues"`
|
|
Attachments string `orm:"column(attachments);type(text);null" json:"attachments"`
|
|
SubmitTime *time.Time `orm:"column(submit_time);type(datetime);null" json:"submit_time"`
|
|
CreateTime time.Time `orm:"column(create_time);auto_now_add;type(datetime)" json:"create_time"`
|
|
}
|
|
|
|
func (m *OaDailyReportHistory) TableName() string {
|
|
return "yz_backend_oa_daily_report_history"
|
|
}
|
|
|
|
type OaDailyReportComment struct {
|
|
ID uint64 `orm:"column(id);pk;auto" json:"id"`
|
|
Tid uint64 `orm:"column(tid)" json:"tid"`
|
|
ReportID uint64 `orm:"column(report_id)" json:"report_id"`
|
|
UserID uint64 `orm:"column(user_id)" json:"user_id"`
|
|
UserName string `orm:"column(user_name);size(50);default()" json:"user_name"`
|
|
Content string `orm:"column(content);size(1000)" json:"content"`
|
|
ReplyToID uint64 `orm:"column(reply_to_id);default(0)" json:"reply_to_id"`
|
|
ReplyToName string `orm:"column(reply_to_name);size(50);default()" json:"reply_to_name"`
|
|
IsDeleted int8 `orm:"column(is_deleted);default(0)" json:"is_deleted"`
|
|
CreateTime time.Time `orm:"column(create_time);auto_now_add;type(datetime)" json:"create_time"`
|
|
UpdateTime *time.Time `orm:"column(update_time);auto_now;type(datetime);null" json:"update_time"`
|
|
DeleteTime *time.Time `orm:"column(delete_time);type(datetime);null" json:"delete_time"`
|
|
}
|
|
|
|
func (m *OaDailyReportComment) TableName() string {
|
|
return "yz_backend_oa_daily_report_comment"
|
|
}
|