-
Notifications
You must be signed in to change notification settings - Fork 62
/
chii_apps.gen.go
31 lines (26 loc) · 1.24 KB
/
chii_apps.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
// 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 TableNameApp = "chii_apps"
// App mapped from table <chii_apps>
type App struct {
ID uint32 `gorm:"column:app_id;type:mediumint(8);primaryKey;autoIncrement:true"`
Type uint8 `gorm:"column:app_type;type:tinyint(1);not null"`
Creator model.UserID `gorm:"column:app_creator;type:mediumint(8);not null"`
Name string `gorm:"column:app_name;type:varchar(255);not null"`
Description string `gorm:"column:app_desc;type:mediumtext;not null"`
URL string `gorm:"column:app_url;type:varchar(2000);not null"`
Collects int32 `gorm:"column:app_collects;type:mediumint(8);not null"`
Status bool `gorm:"column:app_status;type:tinyint(1);not null"`
CreatedTime int32 `gorm:"column:app_timestamp;type:int(10);not null"`
UpdatedTime int32 `gorm:"column:app_lasttouch;type:int(10);not null"`
Ban bool `gorm:"column:app_ban;type:tinyint(1);not null"`
}
// TableName App's table name
func (*App) TableName() string {
return TableNameApp
}