app可以跑起来
This commit is contained in:
@@ -1,10 +1,12 @@
|
||||
package com.saars.chatplatform.data.local.entity;
|
||||
|
||||
import androidx.annotation.NonNull;
|
||||
import androidx.room.Entity;
|
||||
import androidx.room.PrimaryKey;
|
||||
|
||||
@Entity(tableName = "conversations")
|
||||
public class ConversationEntity {
|
||||
@NonNull
|
||||
@PrimaryKey
|
||||
public String id;
|
||||
public String title;
|
||||
|
||||
@@ -1,11 +1,13 @@
|
||||
package com.saars.chatplatform.data.local.entity;
|
||||
|
||||
import androidx.annotation.NonNull;
|
||||
import androidx.room.Entity;
|
||||
import androidx.room.Index;
|
||||
import androidx.room.PrimaryKey;
|
||||
|
||||
@Entity(tableName = "messages", indices = {@Index("conversationId")})
|
||||
public class MessageEntity {
|
||||
@NonNull
|
||||
@PrimaryKey
|
||||
public String id;
|
||||
public String conversationId;
|
||||
|
||||
Reference in New Issue
Block a user