models 595 B

12345678910111213141516171819202122
  1. -- By default this file is used by `persistFileWith` in Model.hs (which is imported by Foundation.hs)
  2. -- Syntax for this file here: https://github.com/yesodweb/persistent/blob/master/docs/Persistent-entity-syntax.md
  3. User
  4. ident Text
  5. password Text Maybe
  6. UniqueUser ident
  7. deriving Typeable
  8. Email
  9. email Text
  10. userId UserId Maybe
  11. verkey Text Maybe
  12. UniqueEmail email
  13. Comment json -- Adding "json" causes ToJSON and FromJSON instances to be derived.
  14. message Text
  15. userId UserId Maybe
  16. deriving Eq
  17. deriving Show
  18. BlogPost
  19. title Text
  20. article Markdown