models

package
v0.0.0-...-6e18e7f Latest Latest
Warning

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

Go to latest
Published: Jan 6, 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 MyJson

type MyJson struct {
	Data string
}

func (*MyJson) Scan

func (ls *MyJson) Scan(value interface{}) error

Scan interface

func (*MyJson) Value

func (ls *MyJson) Value() (driver.Value, error)

Value interface

type Test

type Test struct {
	Adata int
	Bdata string
}

func (*Test) Scan

func (ls *Test) Scan(value interface{}) error

Scan interface

func (*Test) Value

func (ls *Test) Value() (driver.Value, error)

Value interface

type Todo

type Todo struct {
	ID        uint `gorm:"primary_key"`
	TextA     string
	Done      bool
	TestAgain string
}

type User

type User struct {
	gorm.Model
	Email    string `gorm:"type:varchar(100);unique_index"`
	Password string `gorm:"not null"`
	Name     string
	Role     string `gorm:"size:255"`
	KpLog    string `gorm:"size:2048"`
	Tests    []byte
	Stickers *MyJson
	Mytodo   *Test
}

Users

Jump to

Keyboard shortcuts

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