package models

import (
	"time"

	"github.com/google/uuid"
)

type TimeEntry struct {
	ID              uuid.UUID  `db:"id" json:"id"`
	TenantID        uuid.UUID  `db:"tenant_id" json:"tenant_id"`
	CaseID          uuid.UUID  `db:"case_id" json:"case_id"`
	UserID          uuid.UUID  `db:"user_id" json:"user_id"`
	Date            string     `db:"date" json:"date"`
	DurationMinutes int        `db:"duration_minutes" json:"duration_minutes"`
	Description     string     `db:"description" json:"description"`
	Activity        *string    `db:"activity" json:"activity,omitempty"`
	Billable        bool       `db:"billable" json:"billable"`
	Billed          bool       `db:"billed" json:"billed"`
	InvoiceID       *uuid.UUID `db:"invoice_id" json:"invoice_id,omitempty"`
	HourlyRate      *float64   `db:"hourly_rate" json:"hourly_rate,omitempty"`
	CreatedAt       time.Time  `db:"created_at" json:"created_at"`
	UpdatedAt       time.Time  `db:"updated_at" json:"updated_at"`
}
