diff options
Diffstat (limited to 'src/server/Model/Database.hs')
-rw-r--r-- | src/server/Model/Database.hs | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/src/server/Model/Database.hs b/src/server/Model/Database.hs index d4a7d50..0bbc353 100644 --- a/src/server/Model/Database.hs +++ b/src/server/Model/Database.hs @@ -22,14 +22,15 @@ import Database.Persist.Sqlite import Database.Persist.TH import Model.Frequency +import Model.JobKind share [mkPersist sqlSettings, mkMigrate "migrateAll"] [persistLowerCase| User creation UTCTime email Text name Text - UniqEmail email - UniqName name + UniqUserEmail email + UniqUserName name deriving Show Payment userId UserId @@ -44,7 +45,12 @@ SignIn creation UTCTime email Text isUsed Bool - UniqToken token + UniqSignInToken token + deriving Show +Job + kind JobKind + lastExecution UTCTime Maybe + UniqJobName kind deriving Show |] |