      :team/questions (for [text questions]
                        {:question/text text})})
 
-  (d/transact db-conn [(create-team "abc" "fdiosjfsodij" "* * * * *"
-                                    [["jonas" "jonas@gmail"]]
-                                    ["Who are you?"
-                                     "Where are you?"
-                                     "Where are you going?"])])
-
-  (d/transact db-conn [(create-team "def" "fdsoifjsidojf" "* * * * *"
-                                    [["ivan" "ivan@gmail"]
-                                     ["john" "doe@gmail"]]
-                                    ["What is your age?"])])
-
-  (d/transact db-conn [[:db.fn/retractEntity [:team/domain "def"]]])
-
-  (d/transact db-conn [[:db/add [:team/domain "abc"] :team/schedule "* * F * *"]])
-
-  (d/pull (d/db db-conn) [:team/domain :team/schedule] [:team/domain "abc"])
+  (def every-minute "0 * * * * ?")
+
+  (d/transact db-conn [(create-team "teamweek-org" slack-token every-minute
+                                    [#_["jonas" "jonas@gmail"]
+                                     ["ivan" "ivan@gmail"]]
+                                    ["How are you today?"
+                                     "What are your plans for tomorrow?"])])
+
+  (d/transact db-conn [[:db.fn/retractEntity [:team/domain "teamweek-org"]]])
+
 
 
 

  ;; db stuff

  (def db-uri "datomic:free://localhost:4334/teamweek")

  (d/delete-database db-uri)
  (d/create-database db-uri)

  (def db-conn (d/connect db-uri))

  (d/transact db-conn (read-string (slurp "../webapp/resources/schema.edn")))

  (future (listen-for-team-updates nil db-conn))


  (defn create-team [team-name slack-token schedule-string members questions]
    {:db/id (d/tempid :db.part/user)
     :team/domain team-name
     :team/token slack-token
     :team/schedule schedule-string
     :team/members (for [[name email] members]

            [clojurewerkz.quartzite.jobs :as jobs :refer (defjob)]
            [clojurewerkz.quartzite.triggers :as triggers]
            [clojurewerkz.quartzite.schedule.cron :as cron]
            [clojurewerkz.quartzite.conversion :as conversion]
            [byte-streams])
  (:gen-class))

