Its easy to create Entity and corresponding table in room. Assume we have a User entity.
@Entity(tableName = "users")
public class User {
@PrimaryKey
@ColumnInfo(name = "userid")
@NonNull
private String mId;
@ColumnInfo(name = "username")
private String mUserName;
@ColumnInfo(name = "last_update")
private Date mDate;
The data will be stored in table "users" by default. Can I keep the same entity but having 2 tables at the same time? E.g. "old_users" and "users"