models

package
v0.0.0-...-7c91c28 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2016 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccJoinTicket

type AccJoinTicket struct {
	AccId          int
	GaAccessToken  string
	GaViewId       string
	GaQuotaUser    string
	GaRefreshToken string
	ExtId          int
	Url            string
	PublishedAt    time.Time
	GaPageViews    int
}

func (AccJoinTicket) String

func (ajt AccJoinTicket) String() string

type Account

type Account struct {
	gorm.Model

	ExtId          int
	Name           string
	GaAccessToken  string
	GaViewId       string
	GaQuotaUser    string
	GaRefreshToken string
	Active         bool     `sql:"DEFAULT:true"`
	Tickets        []Ticket `gorm:"ForeignKey:AccountExtId"`
}

type Ticket

type Ticket struct {
	gorm.Model

	AccountExtId int `gorm:"not null"`
	ExtId        int `gorm:"not null"`
	PublishedAt  time.Time
	Url          string `gorm:"type:text;not null"`
	Active       bool   `sql:"DEFAULT:true"`
	GaPageViews  int
}

type TicketUpdate

type TicketUpdate struct {
	Id        int
	AccId     int
	PageViews int
}

Jump to

Keyboard shortcuts

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