package models

import "time"

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

	UserID uint `gorm:"column:userId"`

	AstrologerID uint `gorm:"column:astrologerId"`

	IsActive bool `gorm:"column:isActive"`

	IsDelete bool `gorm:"column:isDelete"`

	CreatedBy uint `gorm:"column:createdBy"`

	ModifiedBy uint `gorm:"column:modifiedBy"`

	CreatedAt time.Time

	UpdatedAt time.Time

	User User `gorm:"foreignKey:UserID;references:ID"`

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

func (UserFollowing) TableName() string {
	return "astrologer_followers"
}
