package models

import "time"

type AstrologerSocialLink struct {
	ID uint `gorm:"primaryKey;column:id"`

	AstrologerID uint `gorm:"column:astrologer_id"`

	Facebook string `gorm:"column:facebook"`

	Instagram string `gorm:"column:instagram"`

	Youtube string `gorm:"column:youtube"`

	Telegram string `gorm:"column:telegram"`

	Linkedin string `gorm:"column:linkedin"`

	Website string `gorm:"column:website"`

	IsActive bool `gorm:"column:isActive;default:true"`

	IsDelete bool `gorm:"column:isDelete;default:false"`

	CreatedAt *time.Time `gorm:"column:created_at"`

	UpdatedAt *time.Time `gorm:"column:updated_at"`

	CreatedBy uint `gorm:"column:createdBy"`

	ModifiedBy uint `gorm:"column:modifiedBy"`

	// Relation
	Astrologer Astrologer `gorm:"foreignKey:AstrologerID;references:ID"`
}

func (AstrologerSocialLink) TableName() string {
	return "astrologer_social_links"
}
