models

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2022 License: GPL-3.0 Imports: 1 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Base

type Base struct {
	ID        uint64    `gorm:"column:id;primary_key"  json:"id"`
	CreatedAt time.Time `gorm:"column:created_at;type:datetime;not null" json:"createdAt" jsonapi:"attr,updatedAt,iso8601"`
	UpdatedAt time.Time `gorm:"column:updated_at;type:datetime;not null" json:"updatedAt" jsonapi:"attr,updatedAt,iso8601"`

	LinkPermanent string `gorm:"-" json:"linkPermanent"`
}

type Handler

type Handler struct {
	ID         uint `gorm:"primaryKey;column:id;type:int(11);not null" json:"-"`
	Components string

	CreatedAt time.Time `gorm:"column:createdAt;type:datetime;not null" json:"createdAt"`
	UpdatedAt time.Time `gorm:"column:updatedAt;type:datetime;not null" json:"updatedAt"`
}

func (*Handler) TableName

func (r *Handler) TableName() string

TableName - Set db table name for Route table

type Route

type Route struct {
	ID   uint `gorm:"primaryKey;column:id;type:int(11);not null" json:"-"`
	Path string
	Type string

	Handler *Handler

	CreatedAt time.Time `gorm:"column:createdAt;type:datetime;not null" json:"createdAt"`
	UpdatedAt time.Time `gorm:"column:updatedAt;type:datetime;not null" json:"updatedAt"`
}

func (*Route) TableName

func (r *Route) TableName() string

TableName - Set db table name for Route table

Jump to

Keyboard shortcuts

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