summaryrefslogtreecommitdiff
path: root/Model.hs
diff options
context:
space:
mode:
authorClint Adams <clint@softwarefreedom.org>2012-10-22 15:19:04 -0400
committerClint Adams <clint@softwarefreedom.org>2012-10-22 15:19:04 -0400
commit025eb70c992914fbdf018c189d358ae250d2eeb1 (patch)
tree7367d3726594183bbb908d1a797cacd410c301cc /Model.hs
This needs to be cleaned and sanitized before publication.
Diffstat (limited to 'Model.hs')
-rw-r--r--Model.hs11
1 files changed, 11 insertions, 0 deletions
diff --git a/Model.hs b/Model.hs
new file mode 100644
index 0000000..2738892
--- /dev/null
+++ b/Model.hs
@@ -0,0 +1,11 @@
+module Model where
+
+import Prelude
+import Yesod
+import Data.Text (Text)
+import Database.Persist.Quasi
+import Data.Time.Calendar (Day)
+import Data.Time.Clock (UTCTime)
+
+share [mkPersist sqlSettings, mkMigrate "migrateAll"]
+ $(persistFileWith lowerCaseSettings "config/models")