domain

package
v0.0.0-...-e31252a Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2023 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 Todo

type Todo struct {
	gorm.Model
	Activity string `json:"activity" `
	IdUser   uint   `json:"id_user"`
	User     User   `json:"user" gorm:"foreignkey:IdUser;association_foreignkey:ID"`
}

type TodoRequest

type TodoRequest struct {
	Activity string `json:"activity" `
}

type User

type User struct {
	gorm.Model
	Username string `json:"username"`
	Password string `json:"password"`
	Role     string `json:"role"`
	Name     string `json:"name"`
	Todos    []Todo `json:"todos" gorm:"foreignkey:IdUser"`
}

type UserRegister

type UserRegister struct {
	Username string `json:"username"`
	Password string `json:"password"`
	Role     string `json:"role"`
	Name     string `json:"name"`
}

Jump to

Keyboard shortcuts

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