package models

import "time"

type AstrologerRestTime struct {
	ID           uint       `gorm:"primaryKey;column:id"`
	UserID       uint       `gorm:"column:user_id"`
	AstrologerID uint       `gorm:"column:astrologer_id"`
	Title        string     `gorm:"column:title"`
	RestType     string     `gorm:"column:rest_type"`
	FromTime     string     `gorm:"column:from_time"`
	ToTime       string     `gorm:"column:to_time"`
	RepeatType   string     `gorm:"column:repeat_type"`
	RepeatDays   string     `gorm:"column:repeat_days"`
	Timezone     string     `gorm:"column:timezone"`
	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 (AstrologerRestTime) TableName() string {
	return "astrologer_rest_time"
}
