mirror of
https://github.com/lacerta-doc/Lacerta.git
synced 2024-11-23 00:13:16 +00:00
エンティティ実装 WIP
This commit is contained in:
parent
578f1ef8a8
commit
e848f40b8b
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user