summaryrefslogtreecommitdiff
path: root/internal/model/account.go
diff options
context:
space:
mode:
authorLibravatar tsmethurst <tobi.smethurst@klarrio.com>2021-03-07 13:05:33 +0100
committerLibravatar tsmethurst <tobi.smethurst@klarrio.com>2021-03-07 13:05:33 +0100
commitac9c6b62513e0e56262c21ca108a4aa78d61a557 (patch)
treea4084b72f259ada9c52e8ab2b31928712ba1a1ef /internal/model/account.go
parentcreate db schemas for accounts (diff)
downloadgotosocial-ac9c6b62513e0e56262c21ca108a4aa78d61a557.tar.xz
tiny bit of moving around
Diffstat (limited to 'internal/model/account.go')
-rw-r--r--internal/model/account.go18
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")