Created
May 19, 2018 18:00
-
-
Save joan38/a0bf858206b6316d2216e7a8ba09627b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.time.Instant | |
import java.net.URI | |
case class User(id: Id[User], updatedOn: Instant, image: URI, nickname: String, verified: Boolean, deleted: Boolean) | |
case class Post(id: Id[Post], updatedOn: Instant, author: Id[User], text: String, image: URI, deleted: Boolean) | |
case class Like(userId: Id[User], postId: Id[Post], updatedOn: Instant, unliked: Boolean) | |
case class Comment(id: Id[Comment], postId: Id[Post], updatedOn: Instant, author: Id[User], text: String, deleted: Boolean) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment