models

package
v0.0.0-...-ae7a097 Latest Latest
Warning

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

Go to latest
Published: May 29, 2017 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConnectToDb

func ConnectToDb()

ConnectToDb - Initializes the ORM and Connection to the postgres DB

func GetOrmObject

func GetOrmObject() orm.Ormer

GetOrmObject - Getter function for the ORM object with which we can query the database

Types

type Users

type Users struct {
	UserId   int    `orm:"auto"`
	Email    string `orm:"size(128)"`
	Password string `orm:"size(64)"`
	UserName string `orm:"size(32)"`
	Bio      string `orm:"size(256);null"`
	Image    string `orm:"size(256);null"`
}

Users - Model for the uses table

Jump to

Keyboard shortcuts

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