diff options
author | 2021-03-07 13:05:33 +0100 | |
---|---|---|
committer | 2021-03-07 13:05:33 +0100 | |
commit | ac9c6b62513e0e56262c21ca108a4aa78d61a557 (patch) | |
tree | a4084b72f259ada9c52e8ab2b31928712ba1a1ef /internal/model/account.go | |
parent | create db schemas for accounts (diff) | |
download | gotosocial-ac9c6b62513e0e56262c21ca108a4aa78d61a557.tar.xz |
tiny bit of moving around
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") |