Initial commit: exactly what I got from stack new lebd yesod-mysql, with no changes
This commit is contained in:
commit
27b465180a
43 changed files with 9092 additions and 0 deletions
17
config/models
Normal file
17
config/models
Normal file
|
@ -0,0 +1,17 @@
|
|||
User
|
||||
ident Text sqltype=varchar(255)
|
||||
password Text Maybe sqltype=varchar(255) default=NULL
|
||||
UniqueUser ident
|
||||
deriving Typeable
|
||||
Email
|
||||
email Text sqltype=varchar(255)
|
||||
userId UserId Maybe sqltype=varchar(255) default=NULL
|
||||
verkey Text Maybe sqltype=varchar(255) default=NULL
|
||||
UniqueEmail email
|
||||
Comment json -- Adding "json" causes ToJSON and FromJSON instances to be derived.
|
||||
message Text sqltype=varchar(255)
|
||||
userId UserId Maybe sqltype=varchar(255) default=NULL
|
||||
deriving Eq
|
||||
deriving Show
|
||||
|
||||
-- By default this file is used in Model.hs (which is imported by Foundation.hs)
|
Loading…
Add table
Add a link
Reference in a new issue