flarum_users.auto.go 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  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. // FlarumUsers defined
  8. type FlarumUsers struct {
  9. //
  10. ID null.Int `xorm:"int(10) pk notnull autoincr 'id'" json:"id" xml:"id"`
  11. //
  12. Username null.String `xorm:"varchar(100) notnull 'username'" json:"username" xml:"username"`
  13. //
  14. Email null.String `xorm:"varchar(150) notnull 'email'" json:"email" xml:"email"`
  15. //
  16. IsEmailConfirmed null.Int `xorm:"int(10) notnull default(0) 'is_email_confirmed'" json:"is_email_confirmed" xml:"is_email_confirmed"`
  17. //
  18. Password null.String `xorm:"varchar(100) notnull 'password'" json:"password" xml:"password"`
  19. //
  20. Bio null.String `xorm:"text 'bio'" json:"bio" xml:"bio"`
  21. //
  22. AvatarUrl null.String `xorm:"varchar(100) 'avatar_url'" json:"avatar_url" xml:"avatar_url"`
  23. //
  24. Preferences []byte `xorm:"blob 'preferences'" json:"preferences" xml:"preferences"`
  25. //
  26. JoinedAt null.Time `xorm:"datetime 'joined_at'" json:"joined_at" xml:"joined_at"`
  27. //
  28. LastSeenAt null.Time `xorm:"datetime 'last_seen_at'" json:"last_seen_at" xml:"last_seen_at"`
  29. //
  30. MarkedAllAsReadAt null.Time `xorm:"datetime 'marked_all_as_read_at'" json:"marked_all_as_read_at" xml:"marked_all_as_read_at"`
  31. //
  32. ReadNotificationsAt null.Time `xorm:"datetime 'read_notifications_at'" json:"read_notifications_at" xml:"read_notifications_at"`
  33. //
  34. DiscussionCount null.Int `xorm:"int(10) notnull default(0) 'discussion_count'" json:"discussion_count" xml:"discussion_count"`
  35. //
  36. CommentCount null.Int `xorm:"int(10) notnull default(0) 'comment_count'" json:"comment_count" xml:"comment_count"`
  37. //
  38. ReadFlagsAt null.Time `xorm:"datetime 'read_flags_at'" json:"read_flags_at" xml:"read_flags_at"`
  39. //
  40. SuspendedUntil null.Time `xorm:"datetime 'suspended_until'" json:"suspended_until" xml:"suspended_until"`
  41. // Creator
  42. CreateBy null.String `xorm:"varchar(36) comment('Creator') 'create_by'" json:"create_by" xml:"create_by"`
  43. // Creation time
  44. CreateTime null.Time `xorm:"datetime comment('Creation time') 'create_time'" json:"create_time" xml:"create_time"`
  45. // Last updated by
  46. UpdateBy null.String `xorm:"varchar(36) comment('Last updated by') 'update_by'" json:"update_by" xml:"update_by"`
  47. // Last update time
  48. UpdateTime null.Time `xorm:"datetime comment('Last update time') 'update_time'" json:"update_time" xml:"update_time"`
  49. // Delete tag
  50. DelFlag null.Int `xorm:"notnull comment('Delete tag') 'del_flag'" json:"del_flag" xml:"del_flag"`
  51. // Remark
  52. Remark null.String `xorm:"varchar(200) comment('Remark') 'remark'" json:"remark" xml:"remark"`
  53. }
  54. // TableName table name of defined FlarumUsers
  55. func (m *FlarumUsers) TableName() string {
  56. return "flarum_users"
  57. }