models

package
v0.0.0-...-9dfc967 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BookModel

type BookModel struct {
	ID        uint            `gorm:"primary_key"`
	BookKey   uuid.UUID       `gorm:"column:book_key;type:uuid;primary_key;"`
	Name      string          `gorm:"column:name"`
	Mask      string          `gorm:"column:mask"`
	StatusID  uint            `gorm:"column:status_id"`
	Status    BookStatusModel `gorm:"association_autoupdate:false"`
	CreatedAt *time.Time
	DeletedAt *time.Time
}

func (BookModel) String

func (bm BookModel) String() string

func (BookModel) TableName

func (BookModel) TableName() string

type BookStatusModel

type BookStatusModel struct {
	ID         uint   `gorm:"primary_key"`
	Enumerator string `gorm:"column:enumerator"`
}

func (BookStatusModel) String

func (bsm BookStatusModel) String() string

func (BookStatusModel) TableName

func (BookStatusModel) TableName() string

Jump to

Keyboard shortcuts

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