model

package
v0.4.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithFields added in v0.2.1

func WithFields(fields ...string) func(*gorm.DB) *gorm.DB

func WithMacEq added in v0.2.1

func WithMacEq(mac string) func(*gorm.DB) *gorm.DB

func WithOrder added in v0.2.1

func WithOrder(order string) func(*gorm.DB) *gorm.DB

Types

type Device

type Device struct {
	ID        uint64         `gorm:"primarykey"`
	CreatedAt time.Time      `gorm:"autoCreateTime"`
	UpdatedAt time.Time      `gorm:"autoUpdateTime"`
	DeletedAt gorm.DeletedAt `gorm:"index"`
	Mac       string         `gorm:"not null;uniqueIndex;type:char(17)"`
	Comment   string         `gorm:"type:varchar(255)"`
}

Jump to

Keyboard shortcuts

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