package calendar

import "time"

type CalendarConfig struct {
	ID        uint64     `gorm:"primaryKey;not null"`
	CreatedAt time.Time  `gorm:"precision:3;not null;<-:create"`
	UpdatedAt *time.Time `gorm:"precision:3"`

	Name     string `gorm:"type:VARCHAR(128);not null;uniqueIndex:uk_calendar_config_name"`
	TimeZone string `gorm:"type:VARCHAR(64);not null"`
	FileHash string `gorm:"type:VARCHAR(64);not null;index:idx_calendar_config_file_hash"`
}

func (CalendarConfig) TableName() string {
	return "calendar_configs"
}
