Skip to content

Instantly share code, notes, and snippets.

@brianhsu
Last active April 8, 2018 02:11
Show Gist options
  • Save brianhsu/ba08b185e886679780442a95d1240efd to your computer and use it in GitHub Desktop.
Save brianhsu/ba08b185e886679780442a95d1240efd to your computer and use it in GitHub Desktop.
Entity
trait Entity
case class Stuff(
uuid: UUID, userUUID: UUID,
title: String, description: String,
createTime: LocalDateTime, updateTime: LocalDateTime,
isTrash: Boolean = false) extends Entity
case class User(
uuid: UUID, email: String, name: String,
createTime: LocalDateTime, updateTime: LocalDateTime) extends Entity
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment