Transaction case class matches database