models

package
v0.0.0-...-fe50973 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2014 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 Place

type Place struct {
	Id          uint    `form:"-"`
	Name        string  `form:"name" valid:"Required;AlphaNumeric;MinSize(3);MaxSize(50)"`
	Description string  `form:"description" valid:"MaxSize(600)"`
	Website     string  `form:"website"`
	Latitude    float64 `form:"latitude"`
	Longitude   float64 `form:"longitude"`
	Type        uint8   `form:"-"`
}

func (*Place) TableName

func (p *Place) TableName() string

type User

type User struct {
	Id        uint      `form:"-"`
	Username  string    `form:"username" valid:"Required;AlphaNumeric;MinSize(3);MaxSize(20)"`
	Password  string    `form:"password" valid:"Required;MinSize(3);MaxSize(100)"`
	Acl       uint8     `form:"-"`
	Lastlogin time.Time `orm:"auto_now;type(datetime)"`
	Lastip    uint32    `form:"-"`
}

func (*User) TableName

func (p *User) TableName() string

Jump to

Keyboard shortcuts

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