flarum_posts.auto.go 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  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. // FlarumPosts defined
  8. type FlarumPosts struct {
  9. //
  10. ID null.Int `xorm:"int(10) pk notnull autoincr 'id'" json:"id" xml:"id"`
  11. //
  12. DiscussionId null.Int `xorm:"int(10) notnull 'discussion_id'" json:"discussion_id" xml:"discussion_id"`
  13. //
  14. Number null.Int `xorm:"int(10) 'number'" json:"number" xml:"number"`
  15. //
  16. UserId null.Int `xorm:"int(10) 'user_id'" json:"user_id" xml:"user_id"`
  17. //
  18. Type null.String `xorm:"varchar(100) 'type'" json:"type" xml:"type"`
  19. //
  20. Content null.String `xorm:"text 'content'" json:"content" xml:"content"`
  21. //
  22. EditedAt null.Time `xorm:"datetime 'edited_at'" json:"edited_at" xml:"edited_at"`
  23. //
  24. EditedUserId null.Int `xorm:"int(10) 'edited_user_id'" json:"edited_user_id" xml:"edited_user_id"`
  25. //
  26. HiddenAt null.Time `xorm:"datetime 'hidden_at'" json:"hidden_at" xml:"hidden_at"`
  27. //
  28. HiddenUserId null.Int `xorm:"int(10) 'hidden_user_id'" json:"hidden_user_id" xml:"hidden_user_id"`
  29. //
  30. IpAddress null.String `xorm:"varchar(45) 'ip_address'" json:"ip_address" xml:"ip_address"`
  31. //
  32. IsPrivate null.Int `xorm:"int(10) notnull default(0) 'is_private'" json:"is_private" xml:"is_private"`
  33. //
  34. IsApproved null.Int `xorm:"int(10) notnull default(1) 'is_approved'" json:"is_approved" xml:"is_approved"`
  35. // Creator
  36. CreateBy null.String `xorm:"varchar(36) comment('Creator') 'create_by'" json:"create_by" xml:"create_by"`
  37. // Creation time
  38. CreateTime null.Time `xorm:"datetime comment('Creation time') 'create_time'" json:"create_time" xml:"create_time"`
  39. // Last updated by
  40. UpdateBy null.String `xorm:"varchar(36) comment('Last updated by') 'update_by'" json:"update_by" xml:"update_by"`
  41. // Last update time
  42. UpdateTime null.Time `xorm:"datetime comment('Last update time') 'update_time'" json:"update_time" xml:"update_time"`
  43. // Delete tag
  44. DelFlag null.Int `xorm:"notnull comment('Delete tag') 'del_flag'" json:"del_flag" xml:"del_flag"`
  45. // Remark
  46. Remark null.String `xorm:"varchar(200) comment('Remark') 'remark'" json:"remark" xml:"remark"`
  47. }
  48. // TableName table name of defined FlarumPosts
  49. func (m *FlarumPosts) TableName() string {
  50. return "flarum_posts"
  51. }