models

package
v0.0.0-...-05665eb Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2022 License: MulanPSL-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DeletedAt

type DeletedAt = gorm.DeletedAt

type QueryParameters

type QueryParameters struct {
	ID        uint   ` form:"id"`
	Limit     int    ` form:"limit"`
	Page      int    ` form:"page"`
	Order     string ` form:"order"`
	Direction string ` form:"direction"`
}

type ToDoItem

type ToDoItem struct {
	CreatedAt time.Time `json:"created_at"`
	UpdatedAt time.Time `json:"updated_at"`
	DeletedAt DeletedAt `gorm:"index" json:"-"  `
	Content   string    `gorm:"not null" json:"content"  form:"content"`

	Completed bool `gorm:"not null;index" json:"completed" form:"completed" `

	ID uint `gorm:"primarykey" json:"id" form:"id"`

	Author string `gorm:"not null;index" json:"author" form:"author"`
}

Jump to

Keyboard shortcuts

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