feat(sprint-3): Phase 2 — club settings controller
This commit is contained in:
@@ -3,6 +3,8 @@ package de.cannamanage.domain.entity;
|
||||
import de.cannamanage.domain.enums.ClubStatus;
|
||||
import jakarta.persistence.*;
|
||||
|
||||
import java.time.LocalDate;
|
||||
|
||||
@Entity
|
||||
@Table(name = "clubs")
|
||||
public class Club extends AbstractTenantEntity {
|
||||
@@ -10,6 +12,30 @@ public class Club extends AbstractTenantEntity {
|
||||
@Column(name = "name", nullable = false, length = 255)
|
||||
private String name;
|
||||
|
||||
@Column(name = "registration_number", length = 100)
|
||||
private String registrationNumber;
|
||||
|
||||
@Column(name = "contact_email", length = 255)
|
||||
private String contactEmail;
|
||||
|
||||
@Column(name = "contact_phone", length = 50)
|
||||
private String contactPhone;
|
||||
|
||||
@Column(name = "address_street", length = 255)
|
||||
private String addressStreet;
|
||||
|
||||
@Column(name = "address_city", length = 100)
|
||||
private String addressCity;
|
||||
|
||||
@Column(name = "address_postal_code", length = 20)
|
||||
private String addressPostalCode;
|
||||
|
||||
@Column(name = "address_state", length = 100)
|
||||
private String addressState;
|
||||
|
||||
@Column(name = "founded_date")
|
||||
private LocalDate foundedDate;
|
||||
|
||||
@Column(name = "address")
|
||||
private String address;
|
||||
|
||||
@@ -19,6 +45,12 @@ public class Club extends AbstractTenantEntity {
|
||||
@Column(name = "max_members", nullable = false)
|
||||
private Integer maxMembers = 500;
|
||||
|
||||
@Column(name = "max_prevention_officers", nullable = false)
|
||||
private Integer maxPreventionOfficers = 2;
|
||||
|
||||
@Column(name = "allowed_email_pattern", length = 255)
|
||||
private String allowedEmailPattern;
|
||||
|
||||
@Enumerated(EnumType.STRING)
|
||||
@Column(name = "status", nullable = false, length = 50)
|
||||
private ClubStatus status = ClubStatus.ACTIVE;
|
||||
@@ -26,6 +58,30 @@ public class Club extends AbstractTenantEntity {
|
||||
public String getName() { return name; }
|
||||
public void setName(String name) { this.name = name; }
|
||||
|
||||
public String getRegistrationNumber() { return registrationNumber; }
|
||||
public void setRegistrationNumber(String registrationNumber) { this.registrationNumber = registrationNumber; }
|
||||
|
||||
public String getContactEmail() { return contactEmail; }
|
||||
public void setContactEmail(String contactEmail) { this.contactEmail = contactEmail; }
|
||||
|
||||
public String getContactPhone() { return contactPhone; }
|
||||
public void setContactPhone(String contactPhone) { this.contactPhone = contactPhone; }
|
||||
|
||||
public String getAddressStreet() { return addressStreet; }
|
||||
public void setAddressStreet(String addressStreet) { this.addressStreet = addressStreet; }
|
||||
|
||||
public String getAddressCity() { return addressCity; }
|
||||
public void setAddressCity(String addressCity) { this.addressCity = addressCity; }
|
||||
|
||||
public String getAddressPostalCode() { return addressPostalCode; }
|
||||
public void setAddressPostalCode(String addressPostalCode) { this.addressPostalCode = addressPostalCode; }
|
||||
|
||||
public String getAddressState() { return addressState; }
|
||||
public void setAddressState(String addressState) { this.addressState = addressState; }
|
||||
|
||||
public LocalDate getFoundedDate() { return foundedDate; }
|
||||
public void setFoundedDate(LocalDate foundedDate) { this.foundedDate = foundedDate; }
|
||||
|
||||
public String getAddress() { return address; }
|
||||
public void setAddress(String address) { this.address = address; }
|
||||
|
||||
@@ -35,6 +91,12 @@ public class Club extends AbstractTenantEntity {
|
||||
public Integer getMaxMembers() { return maxMembers; }
|
||||
public void setMaxMembers(Integer maxMembers) { this.maxMembers = maxMembers; }
|
||||
|
||||
public Integer getMaxPreventionOfficers() { return maxPreventionOfficers; }
|
||||
public void setMaxPreventionOfficers(Integer maxPreventionOfficers) { this.maxPreventionOfficers = maxPreventionOfficers; }
|
||||
|
||||
public String getAllowedEmailPattern() { return allowedEmailPattern; }
|
||||
public void setAllowedEmailPattern(String allowedEmailPattern) { this.allowedEmailPattern = allowedEmailPattern; }
|
||||
|
||||
public ClubStatus getStatus() { return status; }
|
||||
public void setStatus(ClubStatus status) { this.status = status; }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user