feat: add gender and goalkeeper/field player jersey style customization for members

This commit is contained in:
2026-05-20 19:04:34 +02:00
parent 1af0e177d5
commit 1f803a6ecc
4 changed files with 49 additions and 1 deletions
@@ -37,8 +37,20 @@ public class Adherent {
private boolean residentTalange = true;
@Column(nullable = false, length = 10)
private String sexe = "MASCULIN";
@Column(name = "type_maillot", nullable = false, length = 20)
private String typeMaillot = "JOUEUR";
// Getters and Setters
public String getSexe() { return sexe; }
public void setSexe(String sexe) { this.sexe = sexe; }
public String getTypeMaillot() { return typeMaillot; }
public void setTypeMaillot(String typeMaillot) { this.typeMaillot = typeMaillot; }
public Long getId() { return id; }
public void setId(Long id) { this.id = id; }
@@ -0,0 +1,2 @@
ALTER TABLE adherent ADD COLUMN sexe VARCHAR(10) DEFAULT 'MASCULIN' NOT NULL;
ALTER TABLE adherent ADD COLUMN type_maillot VARCHAR(20) DEFAULT 'JOUEUR' NOT NULL;