package com.alterdekim.hearthhack.entity;

import jakarta.persistence.*;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

@Getter
@Setter
@NoArgsConstructor
@AllArgsConstructor
@Entity
@Table(name = "decks")
public class Deck {

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Long id;

    @Column(nullable=false)
    private Long userId;

    @Column(nullable=false)
    private String name;

    @Column(nullable = false)
    private Integer cardBack;

    @Column(nullable = false)
    private Integer hero;

    @Column(nullable = false)
    private Integer deckType;

    @Column(nullable = false)
    private Long validity;

    @Column(nullable = false)
    private Integer heroPremium;

    @Column(nullable = false)
    private Boolean cardBackOverride;

    @Column(nullable = false)
    private Boolean heroOverride;

    @Column(nullable = false)
    private Long sortOrder;

    @Column(nullable = false)
    private Integer sourceType;
}
