官术网_书友最值得收藏!

Exposed objects

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:

We have specified our Messages object for Exposed in the Database.kt file. It is recommended to specify all your Exposed objects in a single Kotlin file for easier maintenance. 

主站蜘蛛池模板: 威远县| 类乌齐县| 东山县| 平陆县| 宜兰市| 丁青县| 桂阳县| 杭州市| 石阡县| 阳泉市| 衡山县| 广平县| 象州县| 玛沁县| 阿拉善盟| 海口市| 福贡县| 交口县| 洛扎县| 体育| 邮箱| 成安县| 琼结县| 兴和县| 平塘县| 乐至县| 桃园县| 松滋市| 安乡县| 永昌县| 湾仔区| 万宁市| 马山县| 洛浦县| 遂昌县| 嘉禾县| 咸阳市| 本溪市| 新余市| 长阳| 灵台县|