cloudroam
7 天以前 e96eba36176c5bd4d9ee622e71d946dd74403edf
1
2
3
4
5
6
7
8
9
10
11
12
13
package com.example.firstapp.database.entity
 
import androidx.room.Entity
import androidx.room.PrimaryKey
import java.util.*
 
@Entity(tableName = "keywords")
data class KeywordEntity(
    @PrimaryKey(autoGenerate = true) val id: Long = 0, // 自增长的 id
    val keyword: String,
    val type: String,
    val isEnabled: Boolean
)