40 lines
877 B
Java
40 lines
877 B
Java
package com.magamochi.ingestion.model.entity;
|
|
|
|
import com.magamochi.catalog.model.entity.MangaContentProvider;
|
|
import jakarta.persistence.*;
|
|
import java.time.Instant;
|
|
import java.util.List;
|
|
import lombok.*;
|
|
import org.hibernate.annotations.CreationTimestamp;
|
|
import org.hibernate.annotations.UpdateTimestamp;
|
|
|
|
@Entity
|
|
@Table(name = "content_providers")
|
|
@Builder
|
|
@NoArgsConstructor
|
|
@AllArgsConstructor
|
|
@Getter
|
|
@Setter
|
|
public class ContentProvider {
|
|
@Id
|
|
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
|
private Long id;
|
|
|
|
private String name;
|
|
|
|
private String url;
|
|
|
|
private boolean active;
|
|
|
|
private Boolean supportsContentFetch;
|
|
|
|
private Boolean manualImport;
|
|
|
|
@CreationTimestamp private Instant createdAt;
|
|
|
|
@UpdateTimestamp private Instant updatedAt;
|
|
|
|
@OneToMany(mappedBy = "contentProvider")
|
|
private List<MangaContentProvider> mangaContentProviders;
|
|
}
|