package models import ( "encoding/json" "time" "github.com/google/uuid" ) type CaseEvent 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"` EventType *string `db:"event_type" json:"event_type,omitempty"` Title string `db:"title" json:"title"` Description *string `db:"description" json:"description,omitempty"` EventDate *time.Time `db:"event_date" json:"event_date,omitempty"` CreatedBy *uuid.UUID `db:"created_by" json:"created_by,omitempty"` Metadata json.RawMessage `db:"metadata" json:"metadata"` CreatedAt time.Time `db:"created_at" json:"created_at"` UpdatedAt time.Time `db:"updated_at" json:"updated_at"` }