From 53b3ebebefea7029f4285076c516978291acc5e5 Mon Sep 17 00:00:00 2001 From: r-ca Date: Sun, 14 Jan 2024 11:28:51 +0900 Subject: [PATCH] =?UTF-8?q?Rev=E5=AE=9F=E8=A3=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../source/database/entity/VcsRevEntity.java | 45 ++++++++++++++++++- 1 file changed, 44 insertions(+), 1 deletion(-) diff --git a/source/src/main/java/one/nem/lacerta/source/database/entity/VcsRevEntity.java b/source/src/main/java/one/nem/lacerta/source/database/entity/VcsRevEntity.java index e262b116..e4379f9c 100644 --- a/source/src/main/java/one/nem/lacerta/source/database/entity/VcsRevEntity.java +++ b/source/src/main/java/one/nem/lacerta/source/database/entity/VcsRevEntity.java @@ -1,5 +1,48 @@ package one.nem.lacerta.source.database.entity; +import androidx.room.ColumnInfo; +import androidx.room.Entity; +import androidx.room.PrimaryKey; + +import java.util.List; + +@Entity(tableName = "vcs_rev") public class VcsRevEntity { - // TODO-rca: 未実装 + + /** + * リビジョン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 = "commit_message") + public String commitMessage; + + /** + * コミット日時 + */ + @ColumnInfo(name = "commit_date") + public String commitDate; + + /** + * 含まれるLogのID + */ + @ColumnInfo(name = "log_ids") + public List logIds; }