polishing the workspace migration
This commit is contained in:
@@ -7,10 +7,12 @@ import jakarta.validation.constraints.NotNull;
|
||||
import lombok.*;
|
||||
import org.hibernate.annotations.SQLRestriction;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
@Entity
|
||||
@Table(name = "recipient", indexes = {
|
||||
@Index(name = "idx_recipient_account_user", columnList = "account, user_id"),
|
||||
@Index(name = "idx_recipient_user_id", columnList = "user_id"),
|
||||
@Index(name = "idx_recipient_account_workspace", columnList = "account, workspace_id"),
|
||||
@Index(name = "idx_recipient_workspace_id", columnList = "workspace_id"),
|
||||
@Index(name = "idx_recipient_phone", columnList = "phone_number"),
|
||||
@Index(name = "idx_recipient_email", columnList = "email"),
|
||||
})
|
||||
@@ -31,6 +33,8 @@ public class Recipient extends BaseEntity {
|
||||
private String initials;
|
||||
@Column(name = "latest_provider_label")
|
||||
private String latestProviderLabel;
|
||||
@Column(name = "workspace_id")
|
||||
private UUID workspaceId;
|
||||
@Column(name = "user_id")
|
||||
private String userId;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user