feat: update CardModel
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
package fr.titionfire.ffsaf.data.model;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import io.quarkus.runtime.annotations.RegisterForReflection;
|
||||
import jakarta.persistence.*;
|
||||
import lombok.AllArgsConstructor;
|
||||
@@ -27,7 +29,14 @@ public class CardModel {
|
||||
Long comb;
|
||||
Long match;
|
||||
Long category;
|
||||
Long competition;
|
||||
|
||||
@JsonIgnore
|
||||
@ManyToOne(fetch = FetchType.LAZY)
|
||||
@JoinColumn(name = "competition", referencedColumnName = "id")
|
||||
CompetitionModel competition;
|
||||
|
||||
@JsonProperty("competition")
|
||||
Long competitionId;
|
||||
|
||||
CardType type;
|
||||
String reason;
|
||||
|
||||
Reference in New Issue
Block a user