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

@Entity
@Table(name="players")
data class PlayerBean(
    @Id
    @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "player_sequence")
    @SequenceGenerator(name = "player_sequence", sequenceName = "player_seq", allocationSize = 1)
    val id:Long?=null,
    val name:String?="",
    val firstName:String?="",
    val club:String?=""
)