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