Entity.kt 680 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
package com.example.ayudapy

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

@Entity(tableName = "pedido_save")
data class PedidoSave(
    @PrimaryKey var id: Long,
    @ColumnInfo(name = "title") var title: String,
    @ColumnInfo(name = "message") var message: String,
    @ColumnInfo(name = "name") var name: String,
    @ColumnInfo(name = "phone") var phone: String,
    @ColumnInfo(name = "address") var address: String,
//    @ColumnInfo(name = "location") var location: String,
//    @ColumnInfo(name = "active") var active: String,
    @ColumnInfo(name = "added") var added: String
)