xtablo-source/deprecated/internal/tablos/model.go
Arthur Belleville 5d0c201e86
Some checks failed
backend-ci / Backend tests (pull_request) Failing after 53s
backend-ci / Backend tests (push) Failing after 1s
Some work
2026-05-23 17:26:01 +02:00

48 lines
703 B
Go

package tablos
import (
"errors"
"time"
"github.com/google/uuid"
)
var ErrNotFound = errors.New("tablo not found")
type Status string
const (
StatusTodo Status = "todo"
StatusInProgress Status = "in_progress"
StatusDone Status = "done"
)
type Record struct {
ID uuid.UUID
OwnerID uuid.UUID
Name string
Color string
Status Status
CreatedAt time.Time
UpdatedAt time.Time
DeletedAt *time.Time
}
type CreateInput struct {
OwnerID uuid.UUID
Name string
Color string
Status Status
}
type UpdateInput struct {
ID uuid.UUID
OwnerID uuid.UUID
Name string
Color string
}
type ListInput struct {
OwnerID uuid.UUID
Status *Status
}