package com.izouma.nineth.domain;


import com.izouma.nineth.converter.RarityConverter;
import com.izouma.nineth.enums.Rarity;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Column;
import javax.persistence.Convert;
import javax.persistence.Entity;
import java.util.List;

@Data
@Entity
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class RarityLabel extends BaseEntity{

    private String name;

    @Column(columnDefinition = "TEXT")
    @Convert(converter = RarityConverter.class)
    private List<Rarity> label;
}
