donetick/internal/label/model/model.go
Mo Tarbin 71030913cd Add Support to consume/redeem points
Support Creating task/chore via api
Add initial Description for tasks
2025-01-14 10:43:05 -05:00

13 lines
376 B
Go

package model
type Label struct {
ID int `json:"id" gorm:"primary_key"`
Name string `json:"name" gorm:"column:name"`
Color string `json:"color" gorm:"column:color"`
CircleID *int `json:"-" gorm:"column:circle_id"`
CreatedBy int `json:"created_by" gorm:"column:created_by"`
}
type LabelReq struct {
LabelID int `json:"id" binding:"required"`
}