cloudroam
2025-02-14 2fce91b8c0faf1290d8a35ee022dab3cdbc28a54
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
package com.example.firstapp.database.entity
 
import androidx.room.Entity
import androidx.room.PrimaryKey
import java.util.*
 
@Entity(tableName = "Code")
data class Code(
    @PrimaryKey(autoGenerate = true) val id: Long = 0, // 自增长的 id
    val category: String,
    val categoryId: Long,
    val type: String,
    val typeId: Long,
    val ruleId: Long,
    val msgId: Long,
    val code: String,
    var time: Date = Date(),
)