package com.parse.roomdatabasestarter.database
import androidx.room.ColumnInfo
import androidx.room.Entity
import androidx.room.PrimaryKey
@Entity(tableName = "notes_table")
data class Notes(
@PrimaryKey(autoGenerate = true)
var noteID: Long = 0L,
@ColumnInfo(name = "createdAt")
val createdAt: Long = System.currentTimeMillis(),
@ColumnInfo(name = "updatedAt")
var updatedAt: Long = createdAt,
@ColumnInfo(name = "textData")
var textData: String? = null
)
Comments
Post a Comment