model

package
v0.0.0-...-4dd99de Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const TableNameCabinet = "cabinets"

Variables

This section is empty.

Functions

This section is empty.

Types

type Cabinet

type Cabinet struct {
	ID        int64      `gorm:"column:id;type:bigint;not null" json:"id"`
	UUID      *string    `gorm:"column:uuid;type:uuid;not null;index:idx_cabinets_uuid,priority:1;default:gen_random_uuid()" json:"uuid"`
	Name      string     `gorm:"column:name;type:text;not null" json:"name"`
	CreatedAt time.Time  `gorm:"column:created_at;type:timestamp with time zone;not null" json:"created_at"`
	UpdatedAt *time.Time `gorm:"column:updated_at;type:timestamp with time zone" json:"updated_at"`
}

Cabinet mapped from table <cabinets>

func (*Cabinet) TableName

func (*Cabinet) TableName() string

TableName Cabinet's table name

Jump to

Keyboard shortcuts

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