feat: event days, guest linking, attendance and event headcount
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01EFUzfj5akPxyikzGc2iAHM
This commit is contained in:
1 parent
d7a11ab71c
commit
84bc0e5e11
22 files changed
+1036
-19
No files matched your search
@@ -24,6 +24,8 @@ public class Event implements Serializable {
|
||||
private LocalDateTime dateEnd;
|
||||
@Column(name = "company_id", updatable = false)
|
||||
private Long companyId;
|
||||
private Integer capacity;
|
||||
private Integer invitationCap;
|
||||
private String uploadFloorPlan;
|
||||
private String uploadStageActivities;
|
||||
private String uploadLuckyDraw;
|
||||
|
||||
+68
@@ -0,0 +1,68 @@
|
||||
package com.solvway.services.counter.model;
|
||||
|
||||
import jakarta.persistence.*;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
/** A person invited to an event; linked to an event lead once they register or are captured. */
|
||||
@Getter
|
||||
@Setter
|
||||
@Entity
|
||||
@Table(name = "event_guest", uniqueConstraints = {
|
||||
@UniqueConstraint(columnNames = {"token"}),
|
||||
@UniqueConstraint(columnNames = {"event_uuid", "mobile_e164"}),
|
||||
@UniqueConstraint(columnNames = {"event_uuid", "email"})
|
||||
})
|
||||
public class EventGuest {
|
||||
@Id
|
||||
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
||||
private Long id;
|
||||
|
||||
@Column(name = "company_id")
|
||||
private long companyId;
|
||||
|
||||
@Column(name = "event_uuid")
|
||||
private long eventUuid;
|
||||
|
||||
private String name;
|
||||
|
||||
@Column(name = "mobile_e164")
|
||||
private String mobileE164;
|
||||
|
||||
private String email;
|
||||
|
||||
@Column(name = "company_name")
|
||||
private String companyName;
|
||||
|
||||
@Column(name = "salesperson_user_id")
|
||||
private Long salespersonUserId;
|
||||
|
||||
@Column(length = 32)
|
||||
private String token;
|
||||
|
||||
@Column(name = "invited_at")
|
||||
private LocalDateTime invitedAt;
|
||||
|
||||
@Column(name = "invite_sent_count")
|
||||
private int inviteSentCount = 0;
|
||||
|
||||
@Column(name = "registered_at")
|
||||
private LocalDateTime registeredAt;
|
||||
|
||||
@Column(name = "event_lead_id")
|
||||
private Long eventLeadId;
|
||||
|
||||
@Column(name = "created_by", updatable = false)
|
||||
private String createdBy;
|
||||
|
||||
@Column(name = "created_at", updatable = false)
|
||||
private LocalDateTime createdAt = LocalDateTime.now();
|
||||
|
||||
@Column(name = "updated_by")
|
||||
private String updatedBy;
|
||||
|
||||
@Column(name = "updated_at")
|
||||
private LocalDateTime updatedAt;
|
||||
}
|
||||
+3
@@ -55,6 +55,9 @@ public class EventLead {
|
||||
|
||||
private Long consentNoticeId;
|
||||
|
||||
@Column(name = "attended_at")
|
||||
private LocalDateTime attendedAt;
|
||||
|
||||
@Column(updatable = false)
|
||||
private LocalDateTime capturedAt = LocalDateTime.now();
|
||||
|
||||
|
||||
Reference in new issue
Block a user