Folderをデータベースに保存するように WIP

This commit is contained in:
ろむねこ 2024-01-17 12:07:18 +09:00
parent 744a2bef65
commit 55b34d964c
No known key found for this signature in database
GPG Key ID: FA1F39A1BA37D168
2 changed files with 27 additions and 0 deletions

View File

@ -0,0 +1,8 @@
package one.nem.lacerta.source.database.dao;
import androidx.room.Dao;
@Dao
public interface FolderDao {
}

View File

@ -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; // フォルダ名
}