source: WIP, 列名の指定を追加した

This commit is contained in:
r-ca 2023-12-14 02:26:43 +09:00
parent 7c3588275c
commit 984b82d4a1
No known key found for this signature in database
GPG Key ID: 6A72911AC73464A9

View File

@ -1,20 +1,27 @@
package one.nem.lacerta.source.database.entity;
import androidx.room.ColumnInfo;
import androidx.room.Entity;
import androidx.room.PrimaryKey;
@Entity(tableName = "document")
public class Document {
@PrimaryKey
@ColumnInfo(name = "id")
public String id; // ドキュメントID
@ColumnInfo(name = "title")
public String title; // タイトル
@ColumnInfo(name = "created_at")
public String createdAt; // 作成日時
@ColumnInfo(name = "updated_at")
public String updatedAt; // 更新日時
@ColumnInfo(name = "author")
public String author; // 作成者
@ColumnInfo(name = "default_branch")
public String defaultBranch; // デフォルトブランチ
}