Blame | Last modification | View Log | RSS feed
package com.spice.profitmandi.dao.entity.user;import javax.persistence.*;import java.time.LocalDateTime;/*** RBM assignment gate for a partner onboarding. A row is inserted the moment* STORE_CODE_CREATED fires, with status = PENDING. When the partner's RBM L3* confirms Yes on the standalone panel, status flips to ASSIGNED and a matching* RBM_ASSIGNMENT store-timeline row is written.* <p>* PO_CREATION is gated on this table (not BLOCKER_MAP) so legacy partners that* were past STORE_CODE_CREATED before this feature launched have no row here* and therefore are not affected by the new gate.*/@Entity@Table(name = "user.rbm_assignment")public class RbmAssignment {@Id@GeneratedValue(strategy = GenerationType.IDENTITY)@Column(name = "id")private int id;@Column(name = "onboarding_id")private int onboardingId;@Column(name = "status")private String status;@Column(name = "marked_by")private String markedBy;@Column(name = "marked_at")private LocalDateTime markedAt;@Column(name = "created_at")private LocalDateTime createdAt;public int getId() {return id;}public void setId(int id) {this.id = id;}public int getOnboardingId() {return onboardingId;}public void setOnboardingId(int onboardingId) {this.onboardingId = onboardingId;}public String getStatus() {return status;}public void setStatus(String status) {this.status = status;}public String getMarkedBy() {return markedBy;}public void setMarkedBy(String markedBy) {this.markedBy = markedBy;}public LocalDateTime getMarkedAt() {return markedAt;}public void setMarkedAt(LocalDateTime markedAt) {this.markedAt = markedAt;}public LocalDateTime getCreatedAt() {return createdAt;}public void setCreatedAt(LocalDateTime createdAt) {this.createdAt = createdAt;}@Overridepublic String toString() {return "RbmAssignment{" +"id=" + id +", onboardingId=" + onboardingId +", status='" + status + '\'' +", markedBy='" + markedBy + '\'' +", markedAt=" + markedAt +", createdAt=" + createdAt +'}';}}