models

package
v0.0.0-...-4a7ee20 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2020 License: GPL-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package models defines database schemas and custom models.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Exception

type Exception struct {
	Message string `json:"message"`
}

Exception structure

type Form

type Form struct {
	gorm.Model

	FormID string `gorm:"type:varchar(100);primaryKey" json:"form_id"`
	UserID uint   `gorm:"foreignKey:UserID" json:"user_id"`
}

Form structure

type Token

type Token struct {
	UserID uint
	Name   string
	Email  string
	*jwt.StandardClaims
}

Token structure

type User

type User struct {
	gorm.Model

	Name     string
	Email    string `gorm:"type:varchar(100);unique_index"`
	Gender   string `json:"Gender"`
	Password string `json:"Password"`
}

User data structure

Jump to

Keyboard shortcuts

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