feat(services-counter): store each event's team of salespeople
GET /counter/eventSalesperson/findByEventUuid/{eventUuid} and
POST /counter/eventSalesperson/replace (bulk delete then insert, one transaction).
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
814c51da3d
commit
70e0651a75
8 files changed
+429
-1
No files matched your search
+24
@@ -0,0 +1,24 @@
|
||||
package com.solvway.services.counter.model;
|
||||
|
||||
import jakarta.persistence.*;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
@Getter
|
||||
@Setter
|
||||
@Entity
|
||||
@Table(name = "event_salesperson", uniqueConstraints = @UniqueConstraint(columnNames = {"event_uuid", "user_id"}))
|
||||
public class EventSalesperson {
|
||||
@Id
|
||||
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
||||
private Long id;
|
||||
private long companyId;
|
||||
private long eventUuid;
|
||||
private long userId;
|
||||
@Column(updatable = false)
|
||||
private String createBy;
|
||||
@Column(updatable = false)
|
||||
private LocalDateTime createDateTime = LocalDateTime.now();
|
||||
}
|
||||
Reference in new issue
Block a user