From a6c861fec338c94158b637b6598a9204697a1cdd Mon Sep 17 00:00:00 2001 From: Yann Esposito Date: Fri, 21 Dec 2012 16:06:35 +0100 Subject: [PATCH] models compatible with pgsql --- config/models | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git a/config/models b/config/models index 65d8f0c..cffdb9e 100644 --- a/config/models +++ b/config/models @@ -21,28 +21,24 @@ Entry yeah Int default=0 neah Int default=0 nbView Int default=0 - created UTCTime default=CURRENT_TIME - --- nbView must be equal to nbVotes for entry + created UTCTime default=now() Vote creator UserId entry EntryId value Int deriving Show -VoteComment - creator UserId - comment CommentId - value Int - deriving Show Comment entry EntryId creator UserId Maybe replyTo CommentId Maybe - created UTCTime default=CURRENT_TIME + created UTCTime default=now() content Textarea yeah Int default=0 neah Int default=0 nbView Int default=0 deriving Show - - -- By default this file is used in Model.hs (which is imported by Foundation.hs) +VoteComment + creator UserId + comment CommentId + value Int + deriving Show