diff options
Diffstat (limited to 'internal/model/account.go')
-rw-r--r-- | internal/model/account.go | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/internal/model/account.go b/internal/model/account.go index 55ee62773..360d0de28 100644 --- a/internal/model/account.go +++ b/internal/model/account.go @@ -66,6 +66,24 @@ type Account struct { SuspensionOrigin int } +type Avatar struct { + AvatarFileName string + AvatarContentType string + AvatarFileSize int + AvatarUpdatedAt *time.Time `pg:"type:timestamp"` + AvatarRemoteURL *url.URL `pg:"type:text"` + AvatarStorageSchemaVersion int +} + +type Header struct { + HeaderFileName string + HeaderContentType string + HeaderFileSize int + HeaderUpdatedAt *time.Time `pg:"type:timestamp"` + HeaderRemoteURL *url.URL `pg:"type:text"` + HeaderStorageSchemaVersion int +} + func StubAccount() *Account { remoteURL, _ := url.Parse("https://example.org/@someuser") |