models

package
v0.0.0-...-8d58dae Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const ModelTableName = field.TableName("Model")

Variables

View Source
var (
	ModelIdField    = field.NewTableField(ModelTableName, `"Id"`)
	ModelTitleField = field.NewTableField(ModelTableName, `"Title"`)
)

Functions

This section is empty.

Types

type Model

type Model struct {
	ID    uuid.UUID `gorm:"column:Id;type:uuid;primaryKey"  json:"id"`
	Title string    `gorm:"column:Title;type:text;not null" json:"title"`
}

func (Model) TableName

func (Model) TableName() string

Jump to

Keyboard shortcuts

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