@@ -0,0 +1,32 @@
|
||||
package ru.soune.nocopy.entity.search;
|
||||
|
||||
import jakarta.persistence.*;
|
||||
import lombok.Data;
|
||||
import lombok.Getter;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import lombok.Setter;
|
||||
|
||||
@Entity
|
||||
@Table(name = "global_search_results")
|
||||
@Data
|
||||
@Getter @Setter
|
||||
@RequiredArgsConstructor
|
||||
public class GlobalSearchResult {
|
||||
|
||||
@Id
|
||||
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
||||
private Long id;
|
||||
|
||||
private String taskId;
|
||||
|
||||
private String fileId;
|
||||
|
||||
private String fileName;
|
||||
|
||||
private String thumbnail;
|
||||
|
||||
private String fileStatus;
|
||||
|
||||
@Column(length = 5000)
|
||||
private String searchResults;
|
||||
}
|
||||
@@ -0,0 +1,34 @@
|
||||
package ru.soune.nocopy.entity.search;
|
||||
|
||||
import jakarta.persistence.*;
|
||||
import lombok.Data;
|
||||
import lombok.Getter;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import lombok.Setter;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
@Entity
|
||||
@Table(name = "global_search_tasks")
|
||||
@Data
|
||||
@Getter @Setter
|
||||
@RequiredArgsConstructor
|
||||
public class GlobalSearchTask {
|
||||
@Id
|
||||
@GeneratedValue(strategy = GenerationType.UUID)
|
||||
private String taskId;
|
||||
|
||||
private Long userId;
|
||||
|
||||
private String searchType;
|
||||
|
||||
private String status;
|
||||
|
||||
private Integer totalFiles;
|
||||
|
||||
private Integer processedFiles;
|
||||
|
||||
private LocalDateTime createdAt;
|
||||
|
||||
private LocalDateTime updatedAt;
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
package ru.soune.nocopy.entity.search;
|
||||
|
||||
public enum SearchStatus {
|
||||
PROCESSING, COMPLETED, ACCEPTED, FAILED, SUCCESS, TIMEOUT
|
||||
}
|
||||
Reference in New Issue
Block a user