summaryrefslogtreecommitdiff
path: root/Model.hs
diff options
context:
space:
mode:
authorFélix Sipma <gueux@gueux.org>2013-11-09 16:36:17 +0100
committerFélix Sipma <gueux@gueux.org>2013-11-09 16:36:17 +0100
commitd9337093d43ea93405d38050448fb94be87da151 (patch)
tree4fb028cceeb4d5a3ab3f4e44ee2daa572477d8e2 /Model.hs
yesod initial commit
Diffstat (limited to 'Model.hs')
-rw-r--r--Model.hs14
1 files changed, 14 insertions, 0 deletions
diff --git a/Model.hs b/Model.hs
new file mode 100644
index 0000000..19e0640
--- /dev/null
+++ b/Model.hs
@@ -0,0 +1,14 @@
+module Model where
+
+import Prelude
+import Yesod
+import Data.Text (Text)
+import Database.Persist.Quasi
+import Data.Typeable (Typeable)
+
+-- You can define all of your database entities in the entities file.
+-- You can find more information on persistent and how to declare entities
+-- at:
+-- http://www.yesodweb.com/book/persistent/
+share [mkPersist sqlOnlySettings, mkMigrate "migrateAll"]
+ $(persistFileWith lowerCaseSettings "config/models")