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