Extending SLICK Tables in a DRY manner
问题 I have an interesting question around Slick/Scala that I am hoping that one of you nice chaps might be able to assist me with. I have several tables and by extension in SLICK case classes case class A(...) case class B(...) case class C(...) that share these common fields (id: String, livemode: Boolean, created: DateTime, createdBy : Option[Account]) . Because these fields are repeated in every case class, I'd like to explore the possibility of extracting them into a single object or type.