package com.example.firstapp.database.entity
|
|
import androidx.room.Entity
|
import androidx.room.PrimaryKey
|
|
@Entity(tableName = "reminder_records")
|
data class ReminderRecord(
|
@PrimaryKey(autoGenerate = true)
|
val id: Long = 0,
|
val categoryId: Int,
|
val categoryName: String,
|
val content: String,
|
val notificationMethod: String,
|
val status: Int = STATUS_UNREAD, // 0: 未读, 1: 已读
|
val createdAt: Long = System.currentTimeMillis()
|
) {
|
companion object {
|
const val STATUS_UNREAD = 0
|
const val STATUS_READ = 1
|
}
|
}
|