エンティティ実装 WIP

This commit is contained in:
r-ca 2024-01-13 15:51:09 +09:00
parent 578f1ef8a8
commit e848f40b8b
No known key found for this signature in database
GPG Key ID: 6A72911AC73464A9

View File

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