tag

package
v0.0.0-...-600b74a Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Migrate

func Migrate()

Migrate tables

Types

type Name

type Name struct {
	ID uint `json:"id" gorm:"primary_key"`

	Name string `json:"name"`

	CreatedAt int64 `json:"-"`
	UpdatedAt int64 `json:"-"`
}

Name model

func (Name) TableName

func (Name) TableName() string

TableName for tag names

type Value

type Value struct {
	ID uint `json:"id,omitempty" gorm:"primary_key"`

	NameID uint
	Name   Name
	Value  string `json:"value"`

	CreatedAt int64 `json:"-"`
	UpdatedAt int64 `json:"-"`
}

Value model

func (Value) TableName

func (Value) TableName() string

TableName for tag values

Jump to

Keyboard shortcuts

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