models

package
v0.1.0-beta.1 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2017 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package test_models is an example of basic models setup. NOTE: this project has no any direct relation to Gorm ORM, tag is for example.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Article

type Article struct {
	ID        int
	UserID    int `gorm:"column:author_id"`
	Title     string
	Body      string
	CreatedAt time.Time
}

type Club

type Club struct {
	ID   int
	Name string
}

type HellotaFields

type HellotaFields struct {
	A int
	B string
	C string
	D time.Time
	E bool
	F int
	G string
	H string
	I time.Time
	J bool
	K int
	L string
	M string
	N time.Time
	O bool
	P int
	Q string
	R string
	S time.Time
	T bool
	U int
	V string
	W string
	X time.Time
	Y bool
	Z int
}

type User

type User struct {
	ID        int
	Email     string
	Name      string
	Active    bool
	Checkin   mysql.NullTime
	CreatedAt time.Time
}

Jump to

Keyboard shortcuts

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