dev add config for nginx
Test Workflow / test (push) Successful in 2s

This commit is contained in:
vladp
2026-03-10 22:47:43 +07:00
parent 590d42690b
commit c591ab40df
17 changed files with 495 additions and 306 deletions
@@ -0,0 +1,54 @@
package ru.soune.nocopy.entity.violation;
import com.fasterxml.jackson.annotation.JsonIgnore;
import jakarta.persistence.*;
import lombok.*;
import org.springframework.data.annotation.CreatedDate;
import ru.soune.nocopy.entity.file.FileEntity;
import ru.soune.nocopy.entity.search.GlobalSearchResult;
import java.time.LocalDateTime;
@Entity
@Table(name = "violation")
@Getter
@Setter
@NoArgsConstructor
@AllArgsConstructor
public class Violation {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Long id;
@Column(name = "url", nullable = false, unique = true)
private String url;
@Column(name = "page_url")
private String pageUrl;
@Column(name = "title")
private String pageTitle;
@Column(name = "host")
private String host;
@Column(name = "status")
private String status;
@CreatedDate
@Column(name = "created_at", updatable = false)
private LocalDateTime createdDate;
@ManyToOne(fetch = FetchType.LAZY)
@JoinColumn(name = "file")
@ToString.Exclude
@JsonIgnore
private FileEntity fileEntity;
@ManyToOne(fetch = FetchType.LAZY)
@JoinColumn(name = "global_search_result")
@ToString.Exclude
@JsonIgnore
private GlobalSearchResult globalSearchResult;
}