models

package
v0.0.0-...-1015d97 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 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 {
	CreatedAt   time.Time             `form:"created_at" json:"created_at,omitempty" gorm:"autoCreateTime"`
	UpdatedAt   time.Time             `form:"updated_at" json:"updated_at" gorm:"autoUpdateTime"`
	Title       string                `form:"title" json:"title" gorm:"size:64;index"`
	Description string                `form:"description" json:"description" gorm:"type:text"`
	Status      string                `form:"status" json:"status" gorm:"size:64;index"`
	ID          uint                  `form:"id" json:"id" gorm:"size:32;primaryKey"`
	DeletedAt   soft_delete.DeletedAt `form:"deleted_at" json:"deleted_at,omitempty" gorm:"index"`
}

type TaskBody

type TaskBody struct {
	Title       string `form:"title" json:"title" gorm:"size:64;index"`
	Description string `form:"description" json:"description" gorm:"type:text"`
	Status      int    `form:"status" json:"status" gorm:"size:64;index"`
}

Jump to

Keyboard shortcuts

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