feat(rgpd): add mandatory consent checkbox to public registration form

This commit is contained in:
2026-06-15 23:09:37 +02:00
parent 2adbdde121
commit d913579c77
3 changed files with 21 additions and 1 deletions
@@ -46,6 +46,9 @@ public class PreInscription {
@JoinColumn(name = "saison_id", nullable = false)
private Saison saison;
@Column(name = "consentement_rgpd", nullable = false)
private Boolean consentementRgpd = false;
// Getters and Setters
public Long getId() { return id; }
public void setId(Long id) { this.id = id; }
@@ -82,4 +85,7 @@ public class PreInscription {
public Saison getSaison() { return saison; }
public void setSaison(Saison saison) { this.saison = saison; }
public Boolean getConsentementRgpd() { return consentementRgpd; }
public void setConsentementRgpd(Boolean consentementRgpd) { this.consentementRgpd = consentementRgpd; }
}
@@ -0,0 +1 @@
ALTER TABLE pre_inscription ADD COLUMN consentement_rgpd BOOLEAN NOT NULL DEFAULT FALSE;