Relative Content

Tag Archive for kotlinprimary-keypsqlkotlin-exposed

Extending IntIdTable in Kotlin Exposed PSQL does not inherit primary key

Problem Summary I’m trying to create an abstract class UserTable that inherits the IntIdTable of the Kotlin Exposed framework as such: abstract class UserTable : IntIdTable() { val userId = integer(“userId”).references(Users.id) val created = timestamp(“created”).defaultExpression(CurrentTimestamp()) val updated = timestamp(“updated”).defaultExpression(CurrentTimestamp()) } The idea is that I can then extend this UserTable with tables that contain rows […]