ESC

Config: sandbox

Catalog Schema
catalog sandwich sandwich title [chefs] → category origin notes chef chef title bio sandwich:chefs->chef serving serving title sandwich → bread condiments side notes serving:sandwich->sandwich

Entity Schemas

chef
[:map
 [:title [:string {:default "Chef Name"}]]
 [:bio {:optional true} [:string {:default ""}]]]
sandwich
[:map
 [:title [:string {:default "", :form/placeholder "Sandwich Name"}]]
 [:chefs
  {:optional true}
  [:vector
   [:map
    [:id :int]
    [:etype [:= :chef]]
    [:title :string]
    [:catkey {:optional true} :keyword]]]]
 [:category
  {:optional true}
  [:string
   {:default "",
    :form/options
    ["Hot" "Cold" "Pressed" "Open-faced" "Wrap" "Grilled"]}]]
 [:origin {:optional true} [:string {:default ""}]]
 [:notes {:optional true} [:string {:default ""}]]]
serving
[:map
 [:title [:string {:default "", :form/placeholder "Serving Name"}]]
 [:sandwich
  {:optional true}
  [:map
   [:id :int]
   [:etype [:= :sandwich]]
   [:title :string]
   [:catkey {:optional true} :keyword]]]
 [:bread
  {:optional true}
  [:string
   {:default "",
    :form/options
    ["White"
     "Wheat"
     "Rye"
     "Sourdough"
     "Ciabatta"
     "Brioche"
     "Cuban bread"
     "Pumpernickel"
     "Focaccia"
     "Baguette"
     "Pita"
     "Tortilla"]}]]
 [:condiments {:optional true} [:string {:default ""}]]
 [:side {:optional true} [:string {:default ""}]]
 [:notes {:optional true} [:string {:default ""}]]]