ducky-dash/models/task.go

22 lines
380 B
Go

package models
import (
"time"
"github.com/google/uuid"
)
type Task struct {
ID int `bun:"id,pk,autoincrement"`
CreatedAt time.Time `bun:"default:'now()'"`
Completed bool
Title string `bun:"title"`
Description string `bun:"description"`
AuthorID uuid.UUID `bun:"author_id"`
// Assignee *Account `bun:"rel:belongs-to"`
Assignee uuid.UUID `bun:"assignee"`
}