package models

import "time"

type AstrologerAvailability struct {
	ID            uint       `gorm:"primaryKey;column:id"`
	AstrologerID  uint       `gorm:"column:astrologer_id"`
	Day           string     `gorm:"column:day"`
	FromTime      string     `gorm:"column:fromTime"`
	ToTime        string     `gorm:"column:toTime"`
	SlotDuration  int        `gorm:"column:slot_duration"`
	Timezone      string     `gorm:"column:timezone"`
	IsBreak       bool       `gorm:"column:is_break"`
	IsActive      bool       `gorm:"column:isActive"`
	IsDelete      bool       `gorm:"column:isDelete"`
	InterviewFrom string     `gorm:"column:interview_from"`
	InterviewTo   string     `gorm:"column:interview_to"`
	CreatedAt     *time.Time `gorm:"column:created_at"`
	UpdatedAt     *time.Time `gorm:"column:updated_at"`
	CreatedBy     uint       `gorm:"column:createdBy"`
	ModifiedBy    uint       `gorm:"column:modifiedBy"`
}

func (AstrologerAvailability) TableName() string {
	return "astrologer_availabilities"
}
