primaryKey

open val primaryKey: Table.PrimaryKey? = null

Returns the primary key of the table if present, null otherwise.

The primary key can be defined explicitly by overriding the property directly or by using one of the predefined table types like IntIdTable, LongIdTable, or UUIDIdTable.