cloudroam
2025-04-10 5fc9567cfa6b6beee4f52a9f835f304865d693e1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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
    }