// 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"
)

const TableNameContentAttribute = "content_attributes"

// ContentAttribute mapped from table <content_attributes>
type ContentAttribute struct {
	ContentType    ContentType    `gorm:"column:content_type;primaryKey;<-:create" json:"contentType"`
	ContentSource  string         `gorm:"column:content_source;primaryKey;<-:create" json:"contentSource"`
	ContentID      string         `gorm:"column:content_id;primaryKey;<-:create" json:"contentId"`
	Source         string         `gorm:"column:source;primaryKey" json:"source"`
	Key            string         `gorm:"column:key;primaryKey;<-:create" json:"key"`
	Value          string         `gorm:"column:value;not null" json:"value"`
	CreatedAt      time.Time      `gorm:"column:created_at;not null;<-:create" json:"createdAt"`
	UpdatedAt      time.Time      `gorm:"column:updated_at;not null" json:"updatedAt"`
	MetadataSource MetadataSource `gorm:"foreignKey:Source" json:"metadata_source"`
}

// TableName ContentAttribute's table name
func (*ContentAttribute) TableName() string {
	return TableNameContentAttribute
}
