2014-08-09 18:33:22 +00:00
|
|
|
module Model where
|
|
|
|
|
2014-12-23 04:01:53 +00:00
|
|
|
import ClassyPrelude.Yesod
|
2014-12-07 02:54:02 +00:00
|
|
|
import Yesod.Markdown (Markdown)
|
2014-08-09 18:33:22 +00:00
|
|
|
import Data.Text (Text)
|
|
|
|
import Database.Persist.Quasi
|
2014-09-14 03:05:06 +00:00
|
|
|
import Database.Persist
|
|
|
|
import Database.Persist.TH
|
2014-08-09 18:33:22 +00:00
|
|
|
import Data.Typeable (Typeable)
|
2014-09-14 03:05:06 +00:00
|
|
|
import Data.Eq (Eq)
|
2014-08-12 12:42:25 +00:00
|
|
|
import Data.Time (UTCTime)
|
2014-08-24 19:42:42 +00:00
|
|
|
import Data.ByteString
|
2014-09-06 06:56:36 +00:00
|
|
|
import Data.Bool
|
2014-12-22 16:30:00 +00:00
|
|
|
import Data.Int
|
2014-09-14 03:05:06 +00:00
|
|
|
import Text.Show (Show)
|
2014-12-23 04:01:53 +00:00
|
|
|
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")
|