models

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 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 Student

type Student struct {
	ID       uint64 `gpa:"pk not-null"`
	Name     string `gpa:"varchar(50)"`
	ClassID  uint64
	BirthDay time.Time
	Address  string `gpa:"varchar(200)"`
	Data     []byte
}

type Teacher

type Teacher struct {
	ID       int    `gpa:"pk autoincr"`
	Name     string `gpa:"varchar(50)"`
	BirthDay time.Time
	Address  string `gpa:"varchar(200)"`
	Addr     op.Addr
}

type User

type User struct {
	ID       uint64 `gpa:"pk not-null"`
	Name     string `gpa:"varchar(202)"`
	Age      int    `gpa:"index(age0)"`
	Gender   bool   `gpa:"index(age0)"`
	OkaUsURL bool   `gpa:"default(true)"`
	Cret     time.Time
	// What     ttt.Abc
	URL string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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