package models

import (
	"time"
)

// Task represents a todo item
type Task struct {
	ID        int64     `json:"id"`
	Title     string    `json:"title"`
	Completed bool      `json:"completed"`
	CreatedAt time.Time `json:"created_at"`
	UpdatedAt time.Time `json:"updated_at,omitempty"`
}

// TaskAnalysis represents the AI analysis of a task
type TaskAnalysis struct {
	TaskID       int64     `json:"task_id"`
	Priority     int       `json:"priority"`
	Category     string    `json:"category"`
	TimeEstimate int       `json:"time_estimate"`
	RelatedTasks string    `json:"related_tasks"`
	Summary      string    `json:"summary"`
	AnalyzedAt   time.Time `json:"analyzed_at"`
}
