models

package
v0.0.0-...-ee28949 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Task

type Task struct {
	gorm.Model
	UserId      uint
	User        User
	Title       string `gorm:"not null"`
	Description string
	DueDate     time.Time
	Completed   bool `gorm:"default:false"`
}

type User

type User struct {
	gorm.Model
	Username string `gorm:"unique;not null"`
	Name     string `gorm:"not null"`
	Email    string `gorm:"unique;not null"`
	Password string `gorm:"not null"`
}

Jump to

Keyboard shortcuts

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