From e9689bb99a21691ed469992138d0f7301ae99162 Mon Sep 17 00:00:00 2001 From: r-ca Date: Wed, 13 Dec 2023 18:33:50 +0900 Subject: [PATCH] =?UTF-8?q?Documents=E3=82=A8=E3=83=B3=E3=83=86=E3=82=A3?= =?UTF-8?q?=E3=83=86=E3=82=A3=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../one/nem/lacerta/source/db/entity/Documents.java | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) 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