A fork of https://github.com/teal-fm/piper
1package models
2
3import "time"
4
5// an end user of piper
6type User struct {
7 ID int64
8 Username *string
9 Email *string
10
11 // spotify information
12 SpotifyID *string
13 AccessToken *string
14 RefreshToken *string
15 TokenExpiry *time.Time
16
17 // lfm information
18 LastFMUsername *string
19
20 // Apple Music
21 AppleMusicUserToken *string
22
23 // atp info
24 ATProtoDID *string
25 //This is meant to only be used by the automated music stamping service. If the user ever does an
26 //atproto action from the web ui use the atproto session id for the logged-in session
27 MostRecentAtProtoSessionID *string
28 //ATProtoAccessToken *string
29 //ATProtoRefreshToken *string
30 //ATProtoTokenExpiry *time.Time
31
32 CreatedAt time.Time
33 UpdatedAt time.Time
34}