package com.example.demo.Entity;
import lombok.Getter;
import lombok.Setter;
import org.hibernate.annotations.Type;

import javax.persistence.*;
import java.util.ArrayList;

@Entity
@Table(name = "games")
@Setter @Getter
public class Game {
  private String name;
  @Id
  @GeneratedValue(strategy = GenerationType.IDENTITY)
  private long id;
  @Column(unique = true)
  private long bggGameId;
  private String thumbnail;
  private ArrayList mechanics;
  private float averageRating;
  private String minPlayers;
  private String maxPlayers;
  @Lob
  @Type(type = "text")
  private String description;
}