package com.dowstats.data.entities

import com.dowstats.data.dto.controllers.ArmorTypeDto
import jakarta.persistence.*


@Entity
@Table(name = "armor_types")
class ArmorType {

    @Id
    @GeneratedValue(strategy = GenerationType.AUTO)
    var id: String? = null
    var name: String? = null

    var isClassic: Boolean? = null
    var isUa: Boolean? = null

    fun toDto() = ArmorTypeDto(
        id!!,
        name
    )
}
