entity

package
v0.0.0-...-c4a8052 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2025 License: AGPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TodaStatusTodo = iota + 1
	TodaStatusFinished
	TodaStatusArchived
)
View Source
const (
	TodaPriorityLow = iota + 1
	TodaPriorityMedium
	TodaPriorityHigh
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Toda

type Toda struct {
	common.BaseModel
	Title       string     `json:"title" `
	Description string     `json:"description" `
	OwnerUserId uint       `json:"userId" gorm:"index"`
	Priority    *int       `json:"priority" `
	Deadline    *time.Time `json:"deadline" `
	Status      int        `json:"status" `
	Estimate    *int       `json:"estimate" `
	Elapsed     *int       `json:"elapsed" `
	CompletedAt *time.Time `json:"completedAt" `
}

type TodaFlow

type TodaFlow struct {
	common.BaseModel
	TodaId      uint   `json:"todaId" gorm:"index"`
	UserId      uint   `json:"userId" gorm:"index"`
	Prev        int    `json:"prev" `
	Next        int    `json:"next" `
	Description string `json:"description" `
}

type TodaTag

type TodaTag struct {
	common.BaseModel
	Name        string `json:"name" `
	AccentColor string `json:"accentColor" `
	OwnerUserId uint   `json:"userId" gorm:"index"`
}

type TodaTagRef

type TodaTagRef struct {
	common.BaseModel
	TodaId    uint `json:"todaId" gorm:"index"`
	TodaTagId uint `json:"todaTagId" gorm:"index"`
}

type User

type User struct {
	common.BaseModel
	Username string `json:"username" gorm:"unique"`
	Email    string `json:"email" gorm:"unique"`
	Password string `json:"password" `
	Avatar   string `json:"avatar" `
}

type UserToda

type UserToda struct {
	common.BaseModel
	UserId uint `json:"userId" gorm:"index"`
	TodaId uint `json:"todaId" gorm:"index"`
}

type UserTodaTag

type UserTodaTag struct {
	common.BaseModel
	UserId    uint `json:"userId" gorm:"index"`
	TodaTagId uint `json:"todaTagId" gorm:"index"`
	PinTop    bool `json:"pinTop" `
}

Jump to

Keyboard shortcuts

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