thread-master/internal/model/content_matrix/domain/entity/matrix.go

27 lines
869 B
Go

package entity
const CollectionName = "content_matrices"
type Row struct {
SortOrder int `bson:"sort_order"`
SearchTag string `bson:"search_tag"`
Angle string `bson:"angle"`
Hook string `bson:"hook"`
Text string `bson:"text"`
ReferenceNotes string `bson:"reference_notes"`
SourcePermalinks []string `bson:"source_permalinks"`
Rationale string `bson:"rationale"`
}
type ContentMatrix struct {
ID string `bson:"_id"`
TenantID string `bson:"tenant_id"`
OwnerUID string `bson:"owner_uid"`
BrandID string `bson:"brand_id"`
LegacyPersonaID string `bson:"persona_id,omitempty"`
Rows []Row `bson:"rows"`
GeneratedAt int64 `bson:"generated_at"`
CreateAt int64 `bson:"create_at"`
UpdateAt int64 `bson:"update_at"`
}