models

package
v0.0.0-...-f658c9a Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2023 License: MIT 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 DB

Types

type Users

type Users struct {
	UserID   int    `json:"user_id" orm:"auto"`
	Email    string `json:"email" orm:"size(128)"`
	Password string `json:"password" orm:"size(64)"`
	UserName string `json:"user_name" orm:"size(32)"`
}

Users - Model for the uses table

Jump to

Keyboard shortcuts

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