package models

import "time"

// LoginHistory is the astrologer side's copy of usermodel.LoginHistory, over
// the same login_histories table.
type LoginHistory struct {
	ID uint `gorm:"primaryKey"`

	UserID uint `gorm:"column:userId"`

	IPAddress string `gorm:"column:ip_address"`

	DeviceName string `gorm:"column:device_name"`

	Platform string `gorm:"column:platform"`

	LoginAt *time.Time `gorm:"column:login_at"`
}

func (LoginHistory) TableName() string {
	return "login_histories"
}
