Entity.kt 767 Bytes
Newer Older
1
package com.example.ayudapy.db
2 3 4 5 6 7 8

import androidx.room.ColumnInfo
import androidx.room.Entity
import androidx.room.PrimaryKey
import org.jetbrains.annotations.NotNull

@Entity(tableName = "pedido_save")
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
 class PedidoSave {

    @PrimaryKey
    var id: Long = 0

    @ColumnInfo(name = "title")
    lateinit var title: String
    @ColumnInfo(name = "message")
    lateinit var message: String
    @ColumnInfo(name = "name")
    lateinit var name: String
    @ColumnInfo(name = "phone")
    lateinit var phone: String
    @ColumnInfo(name = "address")
    lateinit var address: String

    //    @ColumnInfo(name = "location") var location: String,
26
//    @ColumnInfo(name = "active") var active: String,
27 28 29
    @ColumnInfo(name = "added")
    lateinit var added: String
}
30 31