eidolon/Model.hs

14 lines
457 B
Haskell
Raw Normal View History

2014-08-09 18:33:22 +00:00
module Model where
import ClassyPrelude.Yesod
import Yesod.Markdown (Markdown)
2014-08-09 18:33:22 +00:00
import Database.Persist.Quasi
import qualified System.FilePath as FP
2014-08-09 18:33:22 +00:00
-- 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/
2014-12-22 16:30:00 +00:00
share [mkPersist sqlSettings, mkMigrate "migrateAll"]
2014-08-09 18:33:22 +00:00
$(persistFileWith lowerCaseSettings "config/models")