model

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Books

type Books struct {
	utils.BaseModel
	Title           string
	ISBN            string `gorm:"type:varchar(12);"`
	Year            string `gorm:"type:varchar(4);"`
	Price           int
	NoPages         int
	BookDescription string
}

func NewBooks

func NewBooks() Books

func (*Books) BeforeCreate

func (model *Books) BeforeCreate(tx *gorm.DB) (err error)

Jump to

Keyboard shortcuts

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