before flake update
This commit is contained in:
parent
53d405d386
commit
7ec9a8f10e
15 changed files with 336 additions and 38 deletions
|
@ -1,18 +1,25 @@
|
|||
-- By default this file is used by `persistFileWith` in Model.hs (which is imported by Foundation.hs)
|
||||
-- Syntax for this file here: https://github.com/yesodweb/persistent/blob/master/docs/Persistent-entity-syntax.md
|
||||
|
||||
User
|
||||
ident Text
|
||||
password Text Maybe
|
||||
UniqueUser ident
|
||||
deriving Typeable
|
||||
Email
|
||||
email Text
|
||||
userId UserId Maybe
|
||||
verkey Text Maybe
|
||||
UniqueEmail email
|
||||
Comment json -- Adding "json" causes ToJSON and FromJSON instances to be derived.
|
||||
message Text
|
||||
userId UserId Maybe
|
||||
deriving Eq
|
||||
deriving Show
|
||||
Round
|
||||
stationId Text
|
||||
tutorPoints Int
|
||||
erstiePoints Int
|
||||
number Int
|
||||
UniqueRoundStation number stationId
|
||||
|
||||
--User
|
||||
-- ident Text
|
||||
-- password Text Maybe
|
||||
-- UniqueUser ident
|
||||
-- deriving Typeable
|
||||
--Email
|
||||
-- email Text
|
||||
-- userId UserId Maybe
|
||||
-- verkey Text Maybe
|
||||
-- UniqueEmail email
|
||||
--Comment json -- Adding "json" causes ToJSON and FromJSON instances to be derived.
|
||||
-- message Text
|
||||
-- userId UserId Maybe
|
||||
-- deriving Eq
|
||||
-- deriving Show
|
||||
|
|
|
@ -9,6 +9,13 @@
|
|||
|
||||
/ HomeR GET
|
||||
|
||||
-- stationName
|
||||
/station/#Text StationR GET
|
||||
|
||||
-- stationName/roundNumber
|
||||
/station/#Text/#Int StationRoundR GET POST
|
||||
|
||||
|
||||
-- /comments CommentR POST
|
||||
|
||||
-- /profile ProfileR GET
|
||||
|
|
|
@ -37,4 +37,7 @@ database:
|
|||
poolsize: "_env:YESOD_SQLITE_POOLSIZE:10"
|
||||
|
||||
copyright: Insert copyright statement here
|
||||
#analytics: UA-YOURCODE
|
||||
|
||||
stations:
|
||||
- station-id: "test"
|
||||
station-name: "Test"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue