diff --git a/source/src/main/java/one/nem/lacerta/source/database/dao/FolderDao.java b/source/src/main/java/one/nem/lacerta/source/database/dao/FolderDao.java new file mode 100644 index 00000000..be3ccbe7 --- /dev/null +++ b/source/src/main/java/one/nem/lacerta/source/database/dao/FolderDao.java @@ -0,0 +1,8 @@ +package one.nem.lacerta.source.database.dao; + +import androidx.room.Dao; + +@Dao +public interface FolderDao { + +} diff --git a/source/src/main/java/one/nem/lacerta/source/database/entity/FolderEntity.java b/source/src/main/java/one/nem/lacerta/source/database/entity/FolderEntity.java new file mode 100644 index 00000000..d8236696 --- /dev/null +++ b/source/src/main/java/one/nem/lacerta/source/database/entity/FolderEntity.java @@ -0,0 +1,19 @@ +package one.nem.lacerta.source.database.entity; + +import androidx.annotation.NonNull; +import androidx.room.ColumnInfo; +import androidx.room.Entity; +import androidx.room.PrimaryKey; + +@Entity(tableName = "folder") +public class FolderEntity { + + @PrimaryKey + @ColumnInfo(name = "id") + @NonNull + public String id; // フォルダID + + @ColumnInfo(name = "title") + public String name; // フォルダ名 + +}