mirror of
https://github.com/lacerta-doc/Lacerta.git
synced 2025-01-18 18:33:16 +00:00
source: WIP, 列名の指定を追加した
This commit is contained in:
parent
7c3588275c
commit
984b82d4a1
|
@ -1,20 +1,27 @@
|
|||
package one.nem.lacerta.source.database.entity;
|
||||
|
||||
import androidx.room.ColumnInfo;
|
||||
import androidx.room.Entity;
|
||||
import androidx.room.PrimaryKey;
|
||||
|
||||
@Entity(tableName = "document")
|
||||
public class Document {
|
||||
@PrimaryKey
|
||||
@ColumnInfo(name = "id")
|
||||
public String id; // ドキュメントID
|
||||
|
||||
@ColumnInfo(name = "title")
|
||||
public String title; // タイトル
|
||||
|
||||
@ColumnInfo(name = "created_at")
|
||||
public String createdAt; // 作成日時
|
||||
|
||||
@ColumnInfo(name = "updated_at")
|
||||
public String updatedAt; // 更新日時
|
||||
|
||||
@ColumnInfo(name = "author")
|
||||
public String author; // 作成者
|
||||
|
||||
@ColumnInfo(name = "default_branch")
|
||||
public String defaultBranch; // デフォルトブランチ
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user