package
Version:
v0.0.0-...-f658c9a
Opens a new window with list of versions in this module.
Published: Jun 7, 2023
License: MIT
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
ConnectToDb - Initializes the ORM and Connection to the postgres DB
GetOrmObject - Getter function for the ORM object with which we can query the DB
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
Source Files
¶
Click to show internal directories.
Click to hide internal directories.