model

package
v0.0.0-...-d83f0ff Latest Latest
Warning

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

Go to latest
Published: Feb 27, 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 Project

type Project struct {
	gorm.Model
	ID        uint      `json:"id" gorm:"primaryKey"`
	Name      string    `json:"name" gorm:"not null; column:name; size:255"`
	CreatedAt time.Time `json:"createdAt" gorm:"not null"`
}

type Task

type Task struct {
	gorm.Model
	Name         string `json:"name" gorm:"not null"`
	Status       string `json:"status" gorm:"not null"`
	ProjectID    uint   `json:"projectID" gorm:"not null"`
	AssignedToID uint   `json:"assignedTo" gorm:"not null"`
}

type TaskPayload

type TaskPayload struct {
	Name       string `json:"name"`
	ProjectID  uint   `json:"projectID"`
	AssignedTo uint   `json:"assignedTo"`
}

Jump to

Keyboard shortcuts

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