| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465 |
- // Code generated by dol build. DO NOT EDIT.
- // source: auto.go
- package model
- import (
- "github.com/2637309949/dolphin/packages/null"
- )
- // FlarumDiscussions defined
- type FlarumDiscussions struct {
- //
- ID null.Int `xorm:"int(10) pk notnull autoincr 'id'" json:"id" xml:"id"`
- //
- Title null.String `xorm:"varchar(200) notnull 'title'" json:"title" xml:"title"`
- //
- CommentCount null.Int `xorm:"int(10) notnull default(0) 'comment_count'" json:"comment_count" xml:"comment_count"`
- //
- ParticipantCount null.Int `xorm:"int(10) notnull default(0) 'participant_count'" json:"participant_count" xml:"participant_count"`
- //
- PostNumberIndex null.Int `xorm:"int(10) notnull default(0) 'post_number_index'" json:"post_number_index" xml:"post_number_index"`
- //
- UserId null.Int `xorm:"int(10) 'user_id'" json:"user_id" xml:"user_id"`
- //
- FirstPostId null.Int `xorm:"int(10) 'first_post_id'" json:"first_post_id" xml:"first_post_id"`
- //
- LastPostedAt null.Time `xorm:"datetime 'last_posted_at'" json:"last_posted_at" xml:"last_posted_at"`
- //
- LastPostedUserId null.Int `xorm:"int(10) 'last_posted_user_id'" json:"last_posted_user_id" xml:"last_posted_user_id"`
- //
- LastPostId null.Int `xorm:"int(10) 'last_post_id'" json:"last_post_id" xml:"last_post_id"`
- //
- LastPostNumber null.Int `xorm:"int(10) 'last_post_number'" json:"last_post_number" xml:"last_post_number"`
- //
- HiddenAt null.Time `xorm:"datetime 'hidden_at'" json:"hidden_at" xml:"hidden_at"`
- //
- HiddenUserId null.Int `xorm:"int(10) 'hidden_user_id'" json:"hidden_user_id" xml:"hidden_user_id"`
- //
- Slug null.String `xorm:"varchar(255) notnull 'slug'" json:"slug" xml:"slug"`
- //
- IsPrivate null.Int `xorm:"int(10) notnull default(0) 'is_private'" json:"is_private" xml:"is_private"`
- //
- IsApproved null.Int `xorm:"int(10) notnull default(1) 'is_approved'" json:"is_approved" xml:"is_approved"`
- //
- IsLocked null.Int `xorm:"int(10) notnull default(0) 'is_locked'" json:"is_locked" xml:"is_locked"`
- //
- IsSticky null.Int `xorm:"int(10) notnull default(0) 'is_sticky'" json:"is_sticky" xml:"is_sticky"`
- // Creator
- CreateBy null.String `xorm:"varchar(36) comment('Creator') 'create_by'" json:"create_by" xml:"create_by"`
- // Creation time
- CreateTime null.Time `xorm:"datetime comment('Creation time') 'create_time'" json:"create_time" xml:"create_time"`
- // Last updated by
- UpdateBy null.String `xorm:"varchar(36) comment('Last updated by') 'update_by'" json:"update_by" xml:"update_by"`
- // Last update time
- UpdateTime null.Time `xorm:"datetime comment('Last update time') 'update_time'" json:"update_time" xml:"update_time"`
- // Delete tag
- DelFlag null.Int `xorm:"notnull comment('Delete tag') 'del_flag'" json:"del_flag" xml:"del_flag"`
- // Remark
- Remark null.String `xorm:"varchar(200) comment('Remark') 'remark'" json:"remark" xml:"remark"`
- }
- // TableName table name of defined FlarumDiscussions
- func (m *FlarumDiscussions) TableName() string {
- return "flarum_discussions"
- }
|