model

package
v0.4.5-beta Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FailedJob

type FailedJob struct {
	gorm.Model
	Payload   string `gorm:"type:varchar(255)"`
	Queue     string `gorm:"type:varchar(255)"`
	Exception string `gorm:"type:varchar(255)"`
}

func (FailedJob) Drop

func (FailedJob) Drop(db *gorm.DB)

Execute model drop Deprecated: this method has been replaced by global .sql migration system

func (FailedJob) Migrate

func (FailedJob) Migrate(db *gorm.DB)

Execute model migration Deprecated: this method has been replaced by global .sql migration system

type User

type User struct {
	gorm.Model
	Name     string `gorm:"type:varchar(255)"`
	Surname  string `gorm:"type:varchar(255)"`
	Username string `gorm:"type:varchar(255)"`
	Password string `gorm:"type:varchar(255)"`
}

func (User) Drop

func (User) Drop(db *gorm.DB)

Execute model drop Deprecated: this method has been replaced by global .sql migration system

func (User) Migrate

func (User) Migrate(db *gorm.DB)

Execute model migration Deprecated: this method has been replaced by global .sql migration system

func (User) Seed

func (User) Seed(db *gorm.DB)

Execute model seeding

Jump to

Keyboard shortcuts

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