eidolon/Model.hs

16 lines
492 B
Haskell
Raw Normal View History

2014-08-09 18:33:22 +00:00
module Model where
import Yesod
import Data.Text (Text)
import Database.Persist.Quasi
import Data.Typeable (Typeable)
2014-08-12 12:42:25 +00:00
import Data.Time (UTCTime)
import System.FilePath (FilePath)
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/
share [mkPersist sqlOnlySettings, mkMigrate "migrateAll"]
$(persistFileWith lowerCaseSettings "config/models")