models

package
v0.0.0-...-70fadbe Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 11, 2020 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Donation

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

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

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

type ExistingEntry struct {
	UserID    string `json:"userID"`
	WordCount int    `json:"wordCount"`
	Content   string `json:"content"`
	GoalHit   bool   `json:"goalHit"`
}

type NewEditor

type NewEditor struct {
	UserID      string `json:"userId"`
	ShowToolbar bool   `json:"showToolbar"`
	ShowPrompt  bool   `json:"showPrompt"`
	ShowCounter bool   `json:"showCounter"`
}

type NewEntry

type NewEntry struct {
	UserID    string `json:"userId"`
	WordCount int    `json:"wordCount"`
	Content   string `json:"content"`
}

type NewSubscription

type NewSubscription struct {
	StripeID       string `json:"stripeId"`
	TokenID        string `json:"tokenId"`
	SubscriptionID string `json:"subscriptionId"`
	Trial          bool   `json:"trial"`
}

type NewUser

type NewUser struct {
	FirstName string  `json:"firstName"`
	LastName  *string `json:"lastName"`
	Email     string  `json:"email"`
}

type Plan

type Plan struct {
	ID       string `json:"id"`
	Nickname string `json:"nickname"`
	Product  string `json:"product"`
}

type PreferredWritingTime

type PreferredWritingTime struct {
	Hour  int `json:"hour"`
	Count int `json:"count"`
}

type SignedUpUser

type SignedUpUser struct {
	ID         string `json:"id"`
	FirebaseID string `json:"firebaseID"`
}

type Stats

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

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 StripeSubscription

type StripeSubscription struct {
	ID               string                    `json:"id"`
	CurrentPeriodEnd int64                     `json:"currentPeriodEnd"`
	TrialEnd         int64                     `json:"trialEnd"`
	CancelAt         int64                     `json:"cancelAt"`
	Status           stripe.SubscriptionStatus `json:"status"`
	Plan             *stripe.Plan              `json:"plan"`
}

type UpdatedUser

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

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"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL