How does one insert records into PostgreSQL using AutoInc keys with Slick mapped tables? If I use and Option for the id in my case class and set it to None, then PostgreSQL
Another trick is making the id of the case class a var
case class Entity(var id: Long)
To insert an instance, create it like below Entity(null.asInstanceOf[Long])
Entity(null.asInstanceOf[Long])
I've tested that it works.