]> Git — Sourcephile - comptalang.git/blob - web/Model.hs
Adapte hcompta-jcc.
[comptalang.git] / web / Model.hs
1 {-# LANGUAGE GADTs #-}
2 {-# LANGUAGE TemplateHaskell #-}
3 module Model where
4
5 import ClassyPrelude.Yesod
6 import Database.Persist.Quasi
7
8 -- You can define all of your database entities in the entities file.
9 -- You can find more information on persistent and how to declare entities
10 -- at:
11 -- http://www.yesodweb.com/book/persistent/
12 share [mkPersist sqlSettings, mkMigrate "migrateAll"]
13 $(persistFileWith lowerCaseSettings "config/models")