This commit is contained in:
tsmethurst
2021-03-25 20:08:04 +01:00
parent b3d5587415
commit ea97afd86f
3 changed files with 14 additions and 5 deletions

View File

@ -145,6 +145,9 @@ type Account struct {
SuspensionOrigin int
}
// Field represents a key value field on an account, for things like pronouns, website, etc.
// VerifiedAt is optional, to be used only if Value is a URL to a webpage that contains the
// username of the user.
type Field struct {
Name string
Value string

View File

@ -20,6 +20,7 @@ package model
import "time"
// Follow represents one account following another, and the metadata around that follow.
type Follow struct {
// id of this follow in the database
ID string `pg:"type:uuid,default:gen_random_uuid(),pk,notnull,unique"`