Skip to content

Instantly share code, notes, and snippets.

@dsugden
Last active December 11, 2015 04:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dsugden/4543912 to your computer and use it in GitHub Desktop.
Save dsugden/4543912 to your computer and use it in GitHub Desktop.
case class Article(id: Option[Long] = None,
name: String,
body: Option[String], // this is the body in edit
userID: Long,
created: Date,
category: String,
published: Boolean = false,
displayOrder: Int = -1,
publishedBody: Option[String] // body as published
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment