msg_to.go 1.1 KB

12345678910111213141516171819202122
  1. package datamodel
  2. import "time"
  3. type MsgTo struct {
  4. OcId int64 `json:"-" xorm:"'oc_id' bigint pk comment('组织ID:公司或机构或单位ID')"`
  5. MsgId int64 `json:"msgId" xorm:"'msg_id' bigint pk comment('主键ID') "`
  6. MsgToId int64 `json:"msgToId" xorm:"'msg_to_id' bigint pk comment('主键ID') "`
  7. Status int64 `json:"status" xorm:"'status' bigint pk comment('主键ID') "`
  8. CreatedBy int64 `json:"createdBy" xorm:"'created_by'"`
  9. CreatedAt time.Time `json:"createdAt" xorm:"'created_at'"`
  10. UpdatedBy int64 `json:"updatedBy" xorm:"'updated_by'"`
  11. UpdatedAt time.Time `json:"updatedAt" xorm:"'updated_at'"`
  12. DeletedFlag int64 `json:"deletedFlag" xorm:"'deleted_flag'"`
  13. DeletedBy int64 `json:"deletedBy" xorm:"'deleted_by'"`
  14. DeletedAt time.Time `json:"deletedAt" xorm:"'deleted_at'"`
  15. }
  16. func (t *MsgTo) TableName() string {
  17. return "msg_to"
  18. }