(ns todo.db)

(def categories ["Personal" "Work" "Shopping" "Health" "Other"])

(def priorities [{:key :low :label "Low" :color "#4CAF50"}
                 {:key :medium :label "Medium" :color "#FF9800"}
                 {:key :high :label "High" :color "#F44336"}])

(def default-db
  {:todos {}           ;; map of id -> todo
   :filter :all        ;; :all | :active | :completed
   :next-temp-id -1    ;; for optimistic inserts before SQLite returns id
   :editing-todo nil   ;; nil or todo map being edited
   :show-form? false}) ;; whether add/edit form is visible
