flarum_notifications.auto.go 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. // Code generated by dol build. DO NOT EDIT.
  2. // source: auto.go
  3. package model
  4. import (
  5. "github.com/2637309949/dolphin/packages/null"
  6. )
  7. // FlarumNotifications defined
  8. type FlarumNotifications struct {
  9. //
  10. ID null.Int `xorm:"int(10) pk notnull autoincr 'id'" json:"id" xml:"id"`
  11. //
  12. UserId null.Int `xorm:"int(10) notnull 'user_id'" json:"user_id" xml:"user_id"`
  13. //
  14. FromUserId null.Int `xorm:"int(10) 'from_user_id'" json:"from_user_id" xml:"from_user_id"`
  15. //
  16. Type null.String `xorm:"varchar(100) notnull 'type'" json:"type" xml:"type"`
  17. //
  18. SubjectId null.Int `xorm:"int(10) 'subject_id'" json:"subject_id" xml:"subject_id"`
  19. //
  20. Data []byte `xorm:"blob 'data'" json:"data" xml:"data"`
  21. //
  22. ReadAt null.Time `xorm:"datetime 'read_at'" json:"read_at" xml:"read_at"`
  23. // Creator
  24. CreateBy null.String `xorm:"varchar(36) comment('Creator') 'create_by'" json:"create_by" xml:"create_by"`
  25. // Creation time
  26. CreateTime null.Time `xorm:"datetime comment('Creation time') 'create_time'" json:"create_time" xml:"create_time"`
  27. // Last updated by
  28. UpdateBy null.String `xorm:"varchar(36) comment('Last updated by') 'update_by'" json:"update_by" xml:"update_by"`
  29. // Last update time
  30. UpdateTime null.Time `xorm:"datetime comment('Last update time') 'update_time'" json:"update_time" xml:"update_time"`
  31. // Delete tag
  32. DelFlag null.Int `xorm:"notnull comment('Delete tag') 'del_flag'" json:"del_flag" xml:"del_flag"`
  33. // Remark
  34. Remark null.String `xorm:"varchar(200) comment('Remark') 'remark'" json:"remark" xml:"remark"`
  35. }
  36. // TableName table name of defined FlarumNotifications
  37. func (m *FlarumNotifications) TableName() string {
  38. return "flarum_notifications"
  39. }