The case class
Fields of case class on which the filtering operations will be performed when querying the db. Specifying those may help the DB to perform a little better.
Fields of case class which are known to have a unique value amongst all possible instances of this class. Specifying these may help the db perform a little better and will protect you from storing entities having duplicate values of this field.