-
-
Notifications
You must be signed in to change notification settings - Fork 78
/
content_collections_content.gen.go
24 lines (20 loc) · 1.37 KB
/
content_collections_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
// 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
const TableNameContentCollectionContent = "content_collections_content"
// ContentCollectionContent mapped from table <content_collections_content>
type ContentCollectionContent struct {
ContentType ContentType `gorm:"column:content_type;primaryKey" json:"contentType"`
ContentSource string `gorm:"column:content_source;primaryKey" json:"contentSource"`
ContentID string `gorm:"column:content_id;primaryKey" json:"contentId"`
ContentCollectionType string `gorm:"column:content_collection_type;primaryKey" json:"contentCollectionType"`
ContentCollectionSource string `gorm:"column:content_collection_source;primaryKey" json:"contentCollectionSource"`
ContentCollectionID string `gorm:"column:content_collection_id;primaryKey" json:"contentCollectionId"`
Content Content `json:"content"`
Collection ContentCollection `gorm:"foreignKey:ContentCollectionType,ContentCollectionSource,ContentCollectionID;references:Type,Source,ID" json:"collection"`
}
// TableName ContentCollectionContent's table name
func (*ContentCollectionContent) TableName() string {
return TableNameContentCollectionContent
}