From e848f40b8b01efc77d1dcc7179a12586a3ef7d9f Mon Sep 17 00:00:00 2001 From: r-ca Date: Sat, 13 Jan 2024 15:51:09 +0900 Subject: [PATCH] =?UTF-8?q?=E3=82=A8=E3=83=B3=E3=83=86=E3=82=A3=E3=83=86?= =?UTF-8?q?=E3=82=A3=E5=AE=9F=E8=A3=85=20WIP?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../source/database/entity/VcsLogEntity.java | 38 +++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/source/src/main/java/one/nem/lacerta/source/database/entity/VcsLogEntity.java b/source/src/main/java/one/nem/lacerta/source/database/entity/VcsLogEntity.java index 5848a74d..e28b77fa 100644 --- a/source/src/main/java/one/nem/lacerta/source/database/entity/VcsLogEntity.java +++ b/source/src/main/java/one/nem/lacerta/source/database/entity/VcsLogEntity.java @@ -1,4 +1,42 @@ package one.nem.lacerta.source.database.entity; +import androidx.room.ColumnInfo; +import androidx.room.Entity; +import androidx.room.PrimaryKey; + +import java.util.Date; + +@Entity(tableName = "vcs_log") public class VcsLogEntity { + + /** + * イベントID + */ + @PrimaryKey + @ColumnInfo(name = "id") + public String id; + + /** + * ドキュメントID + */ + @ColumnInfo(name = "document_id") + public String documentId; + + /** + * ブランチ名 + */ + @ColumnInfo(name = "branch_name") + public String branchName; + + /** + * 発生日時 + */ + @ColumnInfo(name = "created_at") + public Date createdAt; + + /** + * 発生アクション + */ + @ColumnInfo(name = "action") + public String action; }