package com.dowstats.data.entities.ability

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

@Entity
@Table(name = "ability_armors_piercing")
class AbilityArmorPiercing {

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

    @ManyToOne
    @JsonIgnore
    @JoinColumn(name = "ability_id")
    var ability: Ability? = null

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

    var piercingValue: BigDecimal? = null
}
