model

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const TableNameDetail = "detail"
View Source
const TableNamePlugin = "plugin"
View Source
const TableNameUser = "user"

Variables

This section is empty.

Functions

This section is empty.

Types

type Detail

type Detail struct {
	ID               int32            `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"`
	PluginID         string           `gorm:"column:plugin_id;not null;default:0" json:"plugin_id"`
	PluginName       string           `gorm:"column:plugin_name;not null" json:"plugin_name"`
	Version          string           `gorm:"column:version;not null" json:"version"`
	Homepage         string           `gorm:"column:homepage;not null" json:"homepage"`
	ShortDescription string           `gorm:"column:shortDescription;not null" json:"shortDescription"`
	Description      string           `gorm:"column:description;not null" json:"description"`
	Caveats          string           `gorm:"column:caveats;not null" json:"caveats"`
	Platforms        sqlx.StringSlice `gorm:"column:platforms;not null" json:"platforms"`
	CreatedAt        time.Time        `gorm:"column:created_at" json:"created_at"`
	UpdatedAt        time.Time        `gorm:"column:updated_at" json:"updated_at"`
}

Detail mapped from table <detail>

func (*Detail) TableName

func (*Detail) TableName() string

TableName Detail's table name

type Plugin

type Plugin struct {
	ID            int32     `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"`
	PluginID      string    `gorm:"column:plugin_id;not null;default:0" json:"plugin_id"`
	PluginName    string    `gorm:"column:plugin_name;not null" json:"plugin_name"`
	LatestVersion string    `gorm:"column:latest_version;not null" json:"latest_version"`
	CreatedAt     time.Time `gorm:"column:created_at" json:"created_at"`
	UpdatedAt     time.Time `gorm:"column:updated_at" json:"updated_at"`
}

Plugin mapped from table <plugin>

func (*Plugin) TableName

func (*Plugin) TableName() string

TableName Plugin's table name

type User

type User struct {
	ID        int32     `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"`
	Username  string    `gorm:"column:username;not null" json:"username"`
	Password  string    `gorm:"column:password;not null" json:"password"`
	CreatedAt time.Time `gorm:"column:created_at" json:"created_at"`
	UpdatedAt time.Time `gorm:"column:updated_at" json:"updated_at"`
}

User mapped from table <user>

func (*User) TableName

func (*User) TableName() string

TableName User's table name

Jump to

Keyboard shortcuts

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