January 2018
Intermediate to advanced
434 pages
14h 1m
English
We will be creating two tables: Requests and customers:
db.createTable("Requests", true, "id" to INTEGER + PRIMARY_KEY + UNIQUE, "name" to TEXT, "message" to TEXT)
data class Customer(val id: Int, val name: String, val phone_num: String) { companion object { val COLUMN_ID = "id" val TABLE_NAME = "customers" val COLUMN_NAME = "name" val COLUMN_PHONE_NUM = "phone_num" }}
Read now
Unlock full access