From ac9c6b62513e0e56262c21ca108a4aa78d61a557 Mon Sep 17 00:00:00 2001 From: tsmethurst Date: Sun, 7 Mar 2021 13:05:33 +0100 Subject: tiny bit of moving around --- internal/model/account.go | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'internal/model/account.go') 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") -- cgit v1.2.3