package entity

const CollectionName = "threads_mention_inbox"

type Mention 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"`
	AuthorUsername  string `bson:"author_username"`
	Text            string `bson:"text"`
	Permalink       string `bson:"permalink"`
	Shortcode       string `bson:"shortcode,omitempty"`
	Timestamp       string `bson:"timestamp,omitempty"`
	MediaType       string `bson:"media_type,omitempty"`
	IsReply         bool   `bson:"is_reply"`
	IsQuotePost     bool   `bson:"is_quote_post"`
	HasReplies      bool   `bson:"has_replies"`
	RootPostID      string `bson:"root_post_id,omitempty"`
	ParentID        string `bson:"parent_id,omitempty"`
	ThreadPostText  string `bson:"thread_post_text,omitempty"`
	ParentReplyText string `bson:"parent_reply_text,omitempty"`
	ReplyReady      bool   `bson:"reply_ready"`
	ReplyReadyMsg   string `bson:"reply_ready_msg,omitempty"`
	SyncedAt        int64  `bson:"synced_at"`
	UpdateAt        int64  `bson:"update_at"`
}

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