mirror of
https://github.com/lacerta-doc/Lacerta.git
synced 2026-11-02 19:47:36 +00:00
Documentsエンティティ修正
This commit is contained in:
1 file changed
+10
-1
@@ -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
|
||||||
|
|||||||
Reference in new issue
Block a user