models

package
v0.0.0-...-f3fdc4c Latest Latest
Warning

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

Go to latest
Published: May 9, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Form

type Form struct {
	gorm.Model
	ID        int    `json:"id" gorm:"primaryKey"`
	TeacherID int    `json:"id_teacher"`
	Teacher   User   `json:"teacher"`
	StudentID int    `json:"id_student" gorm:"unique"`
	Student   User   `json:"student"`
	Input     string `json:"input"`
	UrlVoice  string `json:"url_voice" gorm:"unique"`
	UrlImage  string `json:"url_image" gorm:"unique"`
}

type Item

type Item struct {
	gorm.Model
	Name        string `json:"name"`
	Description string `json:"description"`
}

type Subitem

type Subitem struct {
	gorm.Model
	Int1    int    `json:"int1"`
	String1 string `json:"string1"`
	OtherID int    `json:"id_other"`
	Other   Item   `json:"other"`
}

type User

type User struct {
	gorm.Model
	Username string `json:"username" gorm:"unique"`
	Email    string `json:"email" gorm:"unique"`
	Password []byte `json:"-"`
	Name     string `json:"name"`
	Role     string `json:"role"`
	Verified bool   `json:"-"`
}

Jump to

Keyboard shortcuts

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