models

package
v0.0.0-...-1ba63b6 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Answer

type Answer struct {
	gorm.Model
	ID         uint   `json:"id"`
	Content    string `json:"content"`
	QuestionID uint   `json:"question_id"`
}

type Catagory

type Catagory struct {
	gorm.Model
	ID   uint   `json:"id"`
	Name string `gorm:"name" json:"name"`
}

type Question

type Question struct {
	gorm.Model
	ID          uint   `json:"id"`
	Title       string `json:"title" binding:"required"`
	Description string `json:"description" binding:"required"`
	CategoryID  uint   `json:"category_id" binding:"required"`
}

type User

type User struct {
	gorm.Model
	Email    string `gorm:"unique"`
	Password string
}

Jump to

Keyboard shortcuts

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