package com.dowstats.data.entities.deathexplosion

import com.dowstats.data.entities.ArmorType
import com.fasterxml.jackson.annotation.JsonIgnore
import java.math.BigDecimal
import jakarta.persistence.*


@Entity
@Table(name = "death_explosion_armors_piercing")
class DeathExplosionArmorPiercing {

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    var id: Long? = null

    @ManyToOne
    @JsonIgnore
    @JoinColumn(name = "death_explosion_id")
    var deathExplosion: DeathExplosion? = null

    @ManyToOne
    @JoinColumn(name = "armor_type_id")
    var armorType: ArmorType? = null

    var piercingValue: BigDecimal? = null

}
