package entity

const CollectionName = "publish_guard_policies"

type Policy struct {
	ID                           string `bson:"_id"`
	TenantID                     string `bson:"tenant_id"`
	OwnerUID                     string `bson:"owner_uid"`
	AccountID                    string `bson:"account_id"`
	Enabled                      bool   `bson:"enabled"`
	MaxDailyPosts                int    `bson:"max_daily_posts"`
	MinIntervalMinutes           int    `bson:"min_interval_minutes"`
	ConsecutiveFailurePauseLimit int    `bson:"consecutive_failure_pause_limit"`
	Paused                       bool   `bson:"paused"`
	PausedReason                 string `bson:"paused_reason,omitempty"`
	CreateAt                     int64  `bson:"create_at"`
	UpdateAt                     int64  `bson:"update_at"`
}
