Skip to content

Instantly share code, notes, and snippets.

@joan38
Created May 19, 2018 18:00
Show Gist options
  • Save joan38/a0bf858206b6316d2216e7a8ba09627b to your computer and use it in GitHub Desktop.
Save joan38/a0bf858206b6316d2216e7a8ba09627b to your computer and use it in GitHub Desktop.
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