Documentsエンティティ修正

This commit is contained in:
r-ca 2023-12-13 18:33:50 +09:00
parent 22d92f87ce
commit e9689bb99a
No known key found for this signature in database
GPG Key ID: 6A72911AC73464A9

View File

@ -1,5 +1,6 @@
package one.nem.lacerta.source.db.entity; package one.nem.lacerta.source.db.entity;
import androidx.room.ColumnInfo;
import androidx.room.Entity; import androidx.room.Entity;
import androidx.room.PrimaryKey; import androidx.room.PrimaryKey;
@ -12,14 +13,22 @@ public class Documents {
@PrimaryKey @PrimaryKey
private String id; private String id;
private String name; // Titleに変更する? @ColumnInfo(name = "name")
private String title; // Titleに変更する?
@ColumnInfo(name = "type")
private DocumentType type; // DocumentTypeに変更する? private DocumentType type; // DocumentTypeに変更する?
@ColumnInfo(name = "created")
private Date created; private Date created;
@ColumnInfo(name = "updated")
private Date updated;
@ColumnInfo(name = "tags")
private String[] tags; private String[] tags;
@ColumnInfo(name = "categories")
private String[] categories; private String[] categories;
// WIP // WIP