Новый протокол регистрации токенов
All checks were successful
Build rosetta-wss / build (push) Successful in 1m48s
All checks were successful
Build rosetta-wss / build (push) Successful in 1m48s
This commit is contained in:
@@ -1,10 +1,8 @@
|
||||
package im.rosetta.database.entity;
|
||||
|
||||
import im.rosetta.database.CreateUpdateEntity;
|
||||
import im.rosetta.database.converters.StringListConverter;
|
||||
|
||||
import jakarta.persistence.Column;
|
||||
import jakarta.persistence.Convert;
|
||||
import jakarta.persistence.Entity;
|
||||
import jakarta.persistence.GeneratedValue;
|
||||
import jakarta.persistence.GenerationType;
|
||||
@@ -12,9 +10,6 @@ import jakarta.persistence.Id;
|
||||
import jakarta.persistence.Index;
|
||||
import jakarta.persistence.Table;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
@Entity
|
||||
@Table(name = "users", indexes = {
|
||||
@Index(name = "idx_users_publickey", columnList = "publicKey", unique = true)
|
||||
@@ -40,10 +35,6 @@ public class User extends CreateUpdateEntity {
|
||||
@Column(name = "publicKey", nullable = false, unique = true)
|
||||
private String publicKey;
|
||||
|
||||
@Convert(converter = StringListConverter.class)
|
||||
@Column(name = "notificationsTokens", nullable = false, columnDefinition = "TEXT")
|
||||
private List<String> notificationsTokens = new ArrayList<>();
|
||||
|
||||
|
||||
public Long getId() {
|
||||
return id;
|
||||
@@ -89,12 +80,4 @@ public class User extends CreateUpdateEntity {
|
||||
this.verified = verified;
|
||||
}
|
||||
|
||||
public List<String> getNotificationsTokens() {
|
||||
return notificationsTokens;
|
||||
}
|
||||
|
||||
public void setNotificationsTokens(List<String> notificationsTokens) {
|
||||
this.notificationsTokens = notificationsTokens;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user