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; }