-
-
Notifications
You must be signed in to change notification settings - Fork 78
/
content.gen.go
42 lines (36 loc) · 2.09 KB
/
content.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
35
36
37
38
39
40
41
42
// 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 model
import (
"time"
"github.com/bitmagnet-io/bitmagnet/internal/database/fts"
)
const TableNameContent = "content"
// Content mapped from table <content>
type Content struct {
Type ContentType `gorm:"column:type;primaryKey;<-:create" json:"type"`
Source string `gorm:"column:source;primaryKey;<-:create" json:"source"`
ID string `gorm:"column:id;primaryKey;<-:create" json:"id"`
Title string `gorm:"column:title;not null" json:"title"`
ReleaseDate Date `gorm:"column:release_date" json:"releaseDate"`
ReleaseYear Year `gorm:"column:release_year" json:"releaseYear"`
Adult NullBool `gorm:"column:adult" json:"adult"`
OriginalLanguage NullLanguage `gorm:"column:original_language" json:"originalLanguage"`
OriginalTitle NullString `gorm:"column:original_title" json:"originalTitle"`
Overview NullString `gorm:"column:overview" json:"overview"`
Runtime NullUint16 `gorm:"column:runtime" json:"runtime"`
Popularity NullFloat32 `gorm:"column:popularity" json:"popularity"`
VoteAverage NullFloat32 `gorm:"column:vote_average" json:"voteAverage"`
VoteCount NullUint `gorm:"column:vote_count" json:"voteCount"`
CreatedAt time.Time `gorm:"column:created_at;not null;<-:create" json:"createdAt"`
UpdatedAt time.Time `gorm:"column:updated_at;not null" json:"updatedAt"`
Tsv fts.Tsvector `gorm:"column:tsv" json:"tsv"`
Collections []ContentCollection `gorm:"many2many:content_collections_content" json:"collections"`
Attributes []ContentAttribute `json:"attributes"`
MetadataSource MetadataSource `gorm:"foreignKey:Source" json:"metadata_source"`
}
// TableName Content's table name
func (*Content) TableName() string {
return TableNameContent
}