package models

import (
	"time"

	"github.com/google/uuid"
)

type Appointment 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,omitempty"`
	Title           string     `db:"title" json:"title"`
	Description     *string    `db:"description" json:"description,omitempty"`
	StartAt         time.Time  `db:"start_at" json:"start_at"`
	EndAt           *time.Time `db:"end_at" json:"end_at,omitempty"`
	Location        *string    `db:"location" json:"location,omitempty"`
	AppointmentType *string    `db:"appointment_type" json:"appointment_type,omitempty"`
	CalDAVUID       *string    `db:"caldav_uid" json:"caldav_uid,omitempty"`
	CalDAVEtag      *string    `db:"caldav_etag" json:"caldav_etag,omitempty"`
	CreatedAt       time.Time  `db:"created_at" json:"created_at"`
	UpdatedAt       time.Time  `db:"updated_at" json:"updated_at"`
}
