models

package
v0.0.0-...-953a791 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Gist

type Gist struct {
	FileID string `json:"fileId" db:"file_id"`
	UserID string `json:"userId" db:"user_id"`

	GistTitle  string         `json:"gistTitle" db:"gist_title"`
	ForkedFrom sql.NullString `json:"forkedFrom" db:"forked_from"`
	ShortUrl   string         `json:"shortUrl" db:"short_url"`

	ViewCount int  `json:"viewCount" db:"view_count"`
	IsPublic  bool `json:"isEnabled" db:"is_enabled"`
	IsDeleted bool `json:"isDeleted" db:"is_deleted"`

	CreatedAt time.Time `json:"createdAt" db:"created_at"`
	UpdatedAt time.Time `json:"updatedAt" db:"updated_at"`
}

type User

type User struct {
	ID           string `json:"id" db:"id"`
	Name         string `json:"name" db:"name"`
	Email        string `json:"email" db:"email" `
	AuthProvider string `json:"authProvider" db:"auth_provider"`
	IsAdmin      bool   `json:"isAdmin" db:"is_admin"`
	IsPremium    bool   `json:"isPremium" db:"is_premium"`
	IsDeleted    bool   `json:"isDeleted" db:"is_deleted"`

	CreatedAt string `json:"createdAt" db:"created_at"`
	UpdatedAt string `json:"updatedAt" db:"updated_at"`
}

Jump to

Keyboard shortcuts

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