package models

import "time"

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

	UserID uint `gorm:"column:user_id" json:"user_id"`

	AstrologerID uint `gorm:"column:astrologer_id" json:"astrologer_id"`

	SkillID uint `gorm:"column:skill_id" json:"skill_id"`

	Experience int `gorm:"column:experience" json:"experience"`

	IsPrimary bool `gorm:"column:is_primary" json:"is_primary"`

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

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

	Skill SkillMaster `gorm:"foreignKey:SkillID;references:ID"`
}

func (AstrologerSkill) TableName() string {

	return "astrologer_skills"

}
