Discover Packages
github.com/writewithwrabit/server
models
package
Version:
v0.0.0-...-70fadbe
Opens a new window with list of versions in this module.
Published: Aug 11, 2020
License: GPL-3.0
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
type Donation struct {
ID string `json:"id"`
UserID string `json:"userId"`
Amount int `json:"amount"`
Paid bool `json:"paid"`
EntryID string `json:"entryId"`
LastEntryID string `json:"lastEntryId"`
CreatedAt string `json:"createdAt"`
UpdatedAt string `json:"updatedAt"`
}
type Editor struct {
ID string `json:"id"`
UserID string `json:"userId"`
ShowToolbar bool `json:"showToolbar"`
ShowPrompt bool `json:"showPrompt"`
ShowCounter bool `json:"showCounter"`
CreatedAt string `json:"createdAt"`
UpdatedAt string `json:"updatedAt"`
}
type Entry struct {
ID string `json:"id"`
UserID string `json:"userId"`
WordCount int `json:"wordCount"`
Content string `json:"content"`
GoalHit bool `json:"goalHit"`
CreatedAt string `json:"createdAt"`
UpdatedAt string `json:"updatedAt"`
}
type ExistingEntry struct {
UserID string `json:"userID"`
WordCount int `json:"wordCount"`
Content string `json:"content"`
GoalHit bool `json:"goalHit"`
}
type NewEditor struct {
UserID string `json:"userId"`
ShowToolbar bool `json:"showToolbar"`
ShowPrompt bool `json:"showPrompt"`
ShowCounter bool `json:"showCounter"`
}
type NewEntry struct {
UserID string `json:"userId"`
WordCount int `json:"wordCount"`
Content string `json:"content"`
}
type NewSubscription struct {
StripeID string `json:"stripeId"`
TokenID string `json:"tokenId"`
SubscriptionID string `json:"subscriptionId"`
Trial bool `json:"trial"`
}
type NewUser struct {
FirstName string `json:"firstName"`
LastName *string `json:"lastName"`
Email string `json:"email"`
}
type Plan struct {
ID string `json:"id"`
Nickname string `json:"nickname"`
Product string `json:"product"`
}
type PreferredWritingTime struct {
Hour int `json:"hour"`
Count int `json:"count"`
}
type SignedUpUser struct {
ID string `json:"id"`
FirebaseID string `json:"firebaseID"`
}
type Stats struct {
WordsWritten int `json:"wordsWritten"`
LongestStreak int `json:"longestStreak"`
LongestEntry int `json:"longestEntry"`
PreferredWritingTimes []*PreferredWritingTime `json:"preferredWritingTimes"`
PreferredDayOfWeek int `json:"preferredDayOfWeek"`
}
type Streak struct {
ID string `json:"id"`
UserID string `json:"userId"`
DayCount int `json:"dayCount"`
LastEntryID string `json:"lastEntryId"`
CreatedAt string `json:"createdAt"`
UpdatedAt string `json:"updatedAt"`
}
type UpdatedUser struct {
ID string `json:"id"`
FirebaseID *string `json:"firebaseID"`
StripeID *string `json:"stripeID"`
FirstName *string `json:"firstName"`
LastName *string `json:"lastName"`
Email *string `json:"email"`
WordGoal *int `json:"wordGoal"`
}
type User struct {
ID string `json:"id"`
FirebaseID *string `json:"firebaseID"`
StripeID *string `json:"stripeID"`
FirstName string `json:"firstName"`
LastName *string `json:"lastName"`
Email string `json:"email"`
WordGoal int `json:"wordGoal"`
CreatedAt string `json:"createdAt"`
UpdatedAt string `json:"updatedAt"`
StripeSubscriptionID *string `json:"stripeSubscriptionID"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.