package entity

const CollectionName = "own_post_formula_reviews"

type Review struct {
	ID              string   `bson:"_id"`
	TenantID        string   `bson:"tenant_id"`
	OwnerUID        string   `bson:"owner_uid"`
	AccountID       string   `bson:"account_id"`
	MediaID         string   `bson:"media_id"`
	PersonaID       string   `bson:"persona_id,omitempty"`
	PostText        string   `bson:"post_text,omitempty"`
	Summary         string   `bson:"summary"`
	Wins            []string `bson:"wins,omitempty"`
	Improvements    []string `bson:"improvements,omitempty"`
	Formula         string   `bson:"formula"`
	PostTemplate    string   `bson:"post_template"`
	HookPattern     string   `bson:"hook_pattern"`
	Structure       string   `bson:"structure"`
	ReplicationTips []string `bson:"replication_tips,omitempty"`
	Avoid           []string `bson:"avoid,omitempty"`
	CreateAt        int64    `bson:"create_at"`
	UpdateAt        int64    `bson:"update_at"`
}

func ReviewDocID(accountID, mediaID string) string {
	return accountID + ":" + mediaID
}
