flarum_discussions.auto.go 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  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. // FlarumDiscussions defined
  8. type FlarumDiscussions struct {
  9. //
  10. ID null.Int `xorm:"int(10) pk notnull autoincr 'id'" json:"id" xml:"id"`
  11. //
  12. Title null.String `xorm:"varchar(200) notnull 'title'" json:"title" xml:"title"`
  13. //
  14. CommentCount null.Int `xorm:"int(10) notnull default(0) 'comment_count'" json:"comment_count" xml:"comment_count"`
  15. //
  16. ParticipantCount null.Int `xorm:"int(10) notnull default(0) 'participant_count'" json:"participant_count" xml:"participant_count"`
  17. //
  18. PostNumberIndex null.Int `xorm:"int(10) notnull default(0) 'post_number_index'" json:"post_number_index" xml:"post_number_index"`
  19. //
  20. UserId null.Int `xorm:"int(10) 'user_id'" json:"user_id" xml:"user_id"`
  21. //
  22. FirstPostId null.Int `xorm:"int(10) 'first_post_id'" json:"first_post_id" xml:"first_post_id"`
  23. //
  24. LastPostedAt null.Time `xorm:"datetime 'last_posted_at'" json:"last_posted_at" xml:"last_posted_at"`
  25. //
  26. LastPostedUserId null.Int `xorm:"int(10) 'last_posted_user_id'" json:"last_posted_user_id" xml:"last_posted_user_id"`
  27. //
  28. LastPostId null.Int `xorm:"int(10) 'last_post_id'" json:"last_post_id" xml:"last_post_id"`
  29. //
  30. LastPostNumber null.Int `xorm:"int(10) 'last_post_number'" json:"last_post_number" xml:"last_post_number"`
  31. //
  32. HiddenAt null.Time `xorm:"datetime 'hidden_at'" json:"hidden_at" xml:"hidden_at"`
  33. //
  34. HiddenUserId null.Int `xorm:"int(10) 'hidden_user_id'" json:"hidden_user_id" xml:"hidden_user_id"`
  35. //
  36. Slug null.String `xorm:"varchar(255) notnull 'slug'" json:"slug" xml:"slug"`
  37. //
  38. IsPrivate null.Int `xorm:"int(10) notnull default(0) 'is_private'" json:"is_private" xml:"is_private"`
  39. //
  40. IsApproved null.Int `xorm:"int(10) notnull default(1) 'is_approved'" json:"is_approved" xml:"is_approved"`
  41. //
  42. IsLocked null.Int `xorm:"int(10) notnull default(0) 'is_locked'" json:"is_locked" xml:"is_locked"`
  43. //
  44. IsSticky null.Int `xorm:"int(10) notnull default(0) 'is_sticky'" json:"is_sticky" xml:"is_sticky"`
  45. // Creator
  46. CreateBy null.String `xorm:"varchar(36) comment('Creator') 'create_by'" json:"create_by" xml:"create_by"`
  47. // Creation time
  48. CreateTime null.Time `xorm:"datetime comment('Creation time') 'create_time'" json:"create_time" xml:"create_time"`
  49. // Last updated by
  50. UpdateBy null.String `xorm:"varchar(36) comment('Last updated by') 'update_by'" json:"update_by" xml:"update_by"`
  51. // Last update time
  52. UpdateTime null.Time `xorm:"datetime comment('Last update time') 'update_time'" json:"update_time" xml:"update_time"`
  53. // Delete tag
  54. DelFlag null.Int `xorm:"notnull comment('Delete tag') 'del_flag'" json:"del_flag" xml:"del_flag"`
  55. // Remark
  56. Remark null.String `xorm:"varchar(200) comment('Remark') 'remark'" json:"remark" xml:"remark"`
  57. }
  58. // TableName table name of defined FlarumDiscussions
  59. func (m *FlarumDiscussions) TableName() string {
  60. return "flarum_discussions"
  61. }