package models import ( "time" "gorm.io/gorm" ) type LoginRecord struct { gorm.Model LoginDate time.Time UserIDs string `gorm:"type:text"` Users []Post `json:"users" gorm:"-"` }