zhujie
10 天以前 88b00f3fc74446a1727c93722c7b64179b45a9db
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
    }