-
Notifications
You must be signed in to change notification settings - Fork 62
/
chii_groups.gen.go
34 lines (29 loc) · 1.66 KB
/
chii_groups.gen.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
// Code generated by gorm.io/gen. DO NOT EDIT.
// Code generated by gorm.io/gen. DO NOT EDIT.
// Code generated by gorm.io/gen. DO NOT EDIT.
package dao
import (
"github.com/bangumi/server/internal/model"
)
const TableNameGroup = "chii_groups"
// Group mapped from table <chii_groups>
type Group struct {
ID model.GroupID `gorm:"column:grp_id;type:smallint(6) unsigned;primaryKey;autoIncrement:true"`
Cat uint16 `gorm:"column:grp_cat;type:smallint(6) unsigned;not null"`
Name string `gorm:"column:grp_name;type:char(50);not null"`
Title string `gorm:"column:grp_title;type:char(50);not null"`
Icon string `gorm:"column:grp_icon;type:varchar(255);not null"`
CreatorID model.UserID `gorm:"column:grp_creator;type:mediumint(8) unsigned;not null"`
Topics uint32 `gorm:"column:grp_topics;type:mediumint(8) unsigned;not null"`
Posts uint32 `gorm:"column:grp_posts;type:mediumint(8) unsigned;not null"`
Members uint32 `gorm:"column:grp_members;type:mediumint(8) unsigned;not null;default:1"`
Description string `gorm:"column:grp_desc;type:text;not null"`
LastPostedTime uint32 `gorm:"column:grp_lastpost;type:int(10) unsigned;not null"` // 目前永远是0
CreatedTime uint32 `gorm:"column:grp_builddate;type:int(10) unsigned;not null"`
Accessible bool `gorm:"column:grp_accessible;type:tinyint(1);not null;default:1"` // 可访问性
Nsfw bool `gorm:"column:grp_nsfw;type:tinyint(1) unsigned;not null"`
}
// TableName Group's table name
func (*Group) TableName() string {
return TableNameGroup
}