models

package
v0.0.0-...-26a59e4 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2019 License: MIT Imports: 1 Imported by: 2 modules, 4 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Categories

type Categories struct {
	ID        int       `json:"id" xorm:"'id' not null pk autoincr INT(11)"`
	Category  string    `json:"category" xorm:"'category' not null default '' VARCHAR(100)"`
	Timestamp time.Time `json:"timestamp" xorm:"'timestamp' not null default 'CURRENT_TIMESTAMP' TIMESTAMP"`
}

type Favorites

type Favorites struct {
	Id     int `xorm:"not null pk autoincr INTEGER"`
	WordId int `xorm:"not null INTEGER"`
	UserId int `xorm:"not null INTEGER"`
}

type Nices

type Nices struct {
	Id     int `xorm:"not null pk autoincr INTEGER"`
	WordId int `xorm:"not null INTEGER"`
	UserId int `xorm:"not null INTEGER"`
}

type Users

type Users struct {
	Id         int       `xorm:"not null pk autoincr INTEGER"`
	Key        string    `xorm:"not null TEXT"`
	AccessDate time.Time `xorm:"not null DATETIME"`
}

type Word

type Word struct {
	ID              int    `json:"id"`
	Word            string `json:"word"`
	Author          string `json:"author"`
	Category        string `json:"category"`
	Nice            int64  `json:"nice"`
	Favortite       int64  `json:"favortite"`
	NiceStatus      bool   `json:"nice_status"`
	FavortiteStatus bool   `json:"favortite_status"`
}

type Words

type Words struct {
	Id         int       `xorm:"not null pk autoincr INTEGER"`
	Word       string    `xorm:"not null TEXT"`
	Author     string    `xorm:"not null TEXT"`
	CategoryId int       `xorm:"not null INTEGER"`
	Timestamp  time.Time `xorm:"not null default 'now()' DATETIME"`
}

Jump to

Keyboard shortcuts

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