-
-
Notifications
You must be signed in to change notification settings - Fork 0
Data Models
mfreeman451 edited this page Feb 23, 2022
·
18 revisions
type ChatMessage struct {
Message string
PhotoURL string
SendDate Time.time
Type string
UID string
User string
}
type Notification struct {
Name string
Desc string
ImageURL string
URL string
}
type Tags struct {
Name []string
}
type Networks struct {
Name string
URL string
Tier int
Logo string
Other string
}
type Wheels struct {
W1 string
W2 string
W3 string
W4 string
}
type Sentiment struct {
Magnitude float64 `firestore:"magnitude"`
Score float64 `firestore:"score"`
}
type Chase struct {
ID string ""
Name string `firestore:"Name"`
Desc string `firestore:"Desc"`
Live bool `firestore:"Live"`
Networks []Networks `firestore:"Networks"`
Wheels Wheels `firestore:"Wheels"`
Votes int `firestore:"Votes"`
CreatedAt time.Time `firestore:"CreatedAt"`
EndedAt time.Time `firestore:"EndedAt"`
ImageURL string `firestore:"ImageURL"`
Reddit string `firestore:"Reddit"`
Sentiment Sentiment
Tags Tags
}
type PushTokens struct {
Token string `json:"token"`
CreatedAt time.Time `json:"created_at"`
TokenType string `json:"type"`
}
type User struct {
UID string `firestore:"uid"`
LastUpdated time.Time `firestore:"lastupdated"`
PhotoURL string `firestore:"photourl"`
UserName string `firestore:"username"`
Tokens []PushTokens `firestore:"tokens"`
}