mirror of
https://github.com/lacerta-doc/Lacerta.git
synced 2026-11-02 11:37:37 +00:00
エンティティ実装 WIP
This commit is contained in:
1 file changed
+38
@@ -1,4 +1,42 @@
|
|||||||
package one.nem.lacerta.source.database.entity;
|
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 {
|
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;
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user