The Messages object provides the mapping between the object and the database and it represents the structure of the table. It is required by the Exposed library:
/** * Message table structure */ object Messages : Table() { val id = integer("id").autoIncrement().primaryKey() val content = text("content") val location = point("location").nullable() }
The following is a diagram of the Message class and the Messages object required for the Exposed library: