package models

import "time"

type AstrologerOfferSetting struct {
	ID                  uint       `gorm:"primaryKey;column:id"`
	UserID              uint       `gorm:"column:user_id"`
	AstrologerID        uint       `gorm:"column:astrologer_id"`
	PO5Enabled          bool       `gorm:"column:po5_enabled"`
	PO5Amount           float64    `gorm:"column:po5_amount"`
	FreeChatEnabled     bool       `gorm:"column:free_chat_enabled"`
	FreeChatMinutes     int        `gorm:"column:free_chat_minutes"`
	FreeCallEnabled     bool       `gorm:"column:free_call_enabled"`
	FreeCallMinutes     int        `gorm:"column:free_call_minutes"`
	CampaignEnabled     bool       `gorm:"column:campaign_enabled"`
	CampaignTitle       string     `gorm:"column:campaign_title"`
	CampaignDescription string     `gorm:"column:campaign_description"`
	StartDate           *time.Time `gorm:"column:start_date"`
	EndDate             *time.Time `gorm:"column:end_date"`
	Priority            int        `gorm:"column:priority"`
	IsActive            bool       `gorm:"column:is_active"`
	IsDelete            bool       `gorm:"column:is_delete"`
	CreatedBy           *uint      `gorm:"column:created_by"`
	ModifiedBy          *uint      `gorm:"column:modified_by"`
	CreatedAt           *time.Time `gorm:"column:created_at"`
	UpdatedAt           *time.Time `gorm:"column:updated_at"`
}

func (AstrologerOfferSetting) TableName() string {
	return "astrologer_offer_settings"
}
