package storage import "time" type RegistrationLink struct { Token string `json:"token"` UserID string `json:"userId"` CreatedAt time.Time `json:"createdAt"` } func NewRegistrationLink(userID string) *RegistrationLink { return &RegistrationLink{ UserID: userID, Token: NewID(), CreatedAt: time.Now(), } }