CatchTheLettersBackend/src/main/java/com/example/catchTheLetters/entity/Version.java

31 lines
590 B
Java
Raw Normal View History

package com.example.catchTheLetters.entity;
import lombok.Data;
import java.io.Serializable;
/**
* 数据表版本类用于Realm对MongoDB的数据表版本进行同步检测版本号不同则进行同步
2024-04-10 07:15:36 +00:00
*
* @author spyn
*/
@Data
public class Version implements Serializable {
/**
* 数据表名称即类名
*/
private String table;
/**
* 数据表版本号
*/
private Long version;
public Version() {
}
public Version(String table, Long version) {
this.table = table;
this.version = version;
}
}