package fr.teamflash.fencerjudgeback.entities

import jakarta.persistence.Entity
import jakarta.persistence.GeneratedValue
import jakarta.persistence.GenerationType
import jakarta.persistence.Id
import jakarta.persistence.SequenceGenerator
import jakarta.persistence.Table

enum class RefereeLevel {
    DEPARTMENTAL,
    REGIONAL,
    NATIONAL,
    INTERNATIONAL
}

@Entity
@Table(name="referees")
data class RefereeBean(
    @Id
    @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "referee_sequence")
    @SequenceGenerator(name = "referee_sequence", sequenceName = "referee_seq", allocationSize = 1)
    val id:Long?=null,
    val name:String?=null,
    val firstName:String?=null,
    val level:RefereeLevel?=null
)