linstrom/storage-new/models/UserInfoField.go
mstar 8d4ba2ecae
Some checks are pending
/ test (push) Waiting to run
More work on defining the new data structure
2025-03-26 17:14:42 +01:00

20 lines
659 B
Go

package models
import (
"time"
"gorm.io/gorm"
)
type UserInfoField struct {
gorm.Model // Can actually just embed this as is here as those are not something directly exposed :3
Name string
Value string
LastUrlCheckDate *time.Time // Used if the value is an url to somewhere. Empty if value is not an url
// If the value is an url, this attribute indicates whether Linstrom was able to verify ownership
// of the provided url via the common method of
// "Does the target url contain a rel='me' link to the owner's account"
Confirmed bool
User User
UserId string // Id of account this info field belongs to
}