feat: card for team
This commit is contained in:
@@ -6,6 +6,9 @@ import lombok.AllArgsConstructor;
|
||||
import lombok.Getter;
|
||||
import lombok.NoArgsConstructor;
|
||||
import lombok.Setter;
|
||||
import org.hibernate.annotations.CreationTimestamp;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
@Getter
|
||||
@Setter
|
||||
@@ -27,6 +30,12 @@ public class CardModel {
|
||||
Long competition;
|
||||
|
||||
CardType type;
|
||||
String reason;
|
||||
@CreationTimestamp
|
||||
Date date;
|
||||
|
||||
@Column(nullable = false, columnDefinition = "boolean default false")
|
||||
boolean teamCard = false;
|
||||
|
||||
public enum CardType {
|
||||
BLUE,
|
||||
|
||||
@@ -0,0 +1,38 @@
|
||||
package fr.titionfire.ffsaf.data.model;
|
||||
|
||||
import io.quarkus.runtime.annotations.RegisterForReflection;
|
||||
import jakarta.persistence.*;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Getter;
|
||||
import lombok.NoArgsConstructor;
|
||||
import lombok.Setter;
|
||||
import org.hibernate.annotations.CreationTimestamp;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
@Getter
|
||||
@Setter
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
@RegisterForReflection
|
||||
|
||||
@Entity
|
||||
@Table(name = "card_team")
|
||||
public class ClubCardModel {
|
||||
|
||||
@Id
|
||||
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
||||
Long id;
|
||||
|
||||
Long competition;
|
||||
String teamUuid;
|
||||
String teamName;
|
||||
|
||||
CardModel.CardType type;
|
||||
String reason;
|
||||
@CreationTimestamp
|
||||
Date date;
|
||||
|
||||
List<Long> cardIds;
|
||||
}
|
||||
Reference in New Issue
Block a user