|
@@ -0,0 +1,76 @@
|
|
|
|
|
+package com.etotem.num.entity;
|
|
|
|
|
+
|
|
|
|
|
+import javax.persistence.*;
|
|
|
|
|
+import java.time.LocalDateTime;
|
|
|
|
|
+
|
|
|
|
|
+@Entity
|
|
|
|
|
+@Table(name = "plan_requests")
|
|
|
|
|
+public class PlanRequest {
|
|
|
|
|
+ @Id
|
|
|
|
|
+ @GeneratedValue(strategy = GenerationType.IDENTITY)
|
|
|
|
|
+ private Long id;
|
|
|
|
|
+
|
|
|
|
|
+ @Column(name = "user_id", nullable = false)
|
|
|
|
|
+ private Long userId;
|
|
|
|
|
+
|
|
|
|
|
+ @Column(name = "chart_id", nullable = false)
|
|
|
|
|
+ private Long chartId;
|
|
|
|
|
+
|
|
|
|
|
+ @Column(name = "request_type", length = 20)
|
|
|
|
|
+ private String requestType;
|
|
|
|
|
+
|
|
|
|
|
+ @Column(columnDefinition = "text")
|
|
|
|
|
+ private String description;
|
|
|
|
|
+
|
|
|
|
|
+ @Column(name = "budget_range", length = 20)
|
|
|
|
|
+ private String budgetRange;
|
|
|
|
|
+
|
|
|
|
|
+ @Column(name = "assigned_practitioner_id")
|
|
|
|
|
+ private Long assignedPractitionerId;
|
|
|
|
|
+
|
|
|
|
|
+ @Column(length = 20)
|
|
|
|
|
+ // Status: pending / accepted / negotiating / paid / completed / cancelled / rejected
|
|
|
|
|
+ private String status;
|
|
|
|
|
+
|
|
|
|
|
+ @Column
|
|
|
|
|
+ private Integer price;
|
|
|
|
|
+
|
|
|
|
|
+ @Column(name = "negotiation_count")
|
|
|
|
|
+ private Integer negotiationCount = 0;
|
|
|
|
|
+
|
|
|
|
|
+ @Column(name = "order_id")
|
|
|
|
|
+ private Long orderId;
|
|
|
|
|
+
|
|
|
|
|
+ @Column(name = "created_at")
|
|
|
|
|
+ private LocalDateTime createdAt = LocalDateTime.now();
|
|
|
|
|
+
|
|
|
|
|
+ @Column(name = "updated_at")
|
|
|
|
|
+ private LocalDateTime updatedAt = LocalDateTime.now();
|
|
|
|
|
+
|
|
|
|
|
+ public Long getId() { return id; }
|
|
|
|
|
+ public void setId(Long id) { this.id = id; }
|
|
|
|
|
+ public Long getUserId() { return userId; }
|
|
|
|
|
+ public void setUserId(Long userId) { this.userId = userId; }
|
|
|
|
|
+ public Long getChartId() { return chartId; }
|
|
|
|
|
+ public void setChartId(Long chartId) { this.chartId = chartId; }
|
|
|
|
|
+ public String getRequestType() { return requestType; }
|
|
|
|
|
+ public void setRequestType(String requestType) { this.requestType = requestType; }
|
|
|
|
|
+ public String getDescription() { return description; }
|
|
|
|
|
+ public void setDescription(String description) { this.description = description; }
|
|
|
|
|
+ public String getBudgetRange() { return budgetRange; }
|
|
|
|
|
+ public void setBudgetRange(String budgetRange) { this.budgetRange = budgetRange; }
|
|
|
|
|
+ public Long getAssignedPractitionerId() { return assignedPractitionerId; }
|
|
|
|
|
+ public void setAssignedPractitionerId(Long assignedPractitionerId) { this.assignedPractitionerId = assignedPractitionerId; }
|
|
|
|
|
+ public String getStatus() { return status; }
|
|
|
|
|
+ public void setStatus(String status) { this.status = status; }
|
|
|
|
|
+ public Integer getPrice() { return price; }
|
|
|
|
|
+ public void setPrice(Integer price) { this.price = price; }
|
|
|
|
|
+ public Integer getNegotiationCount() { return negotiationCount; }
|
|
|
|
|
+ public void setNegotiationCount(Integer negotiationCount) { this.negotiationCount = negotiationCount; }
|
|
|
|
|
+ public Long getOrderId() { return orderId; }
|
|
|
|
|
+ public void setOrderId(Long orderId) { this.orderId = orderId; }
|
|
|
|
|
+ public LocalDateTime getCreatedAt() { return createdAt; }
|
|
|
|
|
+ public void setCreatedAt(LocalDateTime createdAt) { this.createdAt = createdAt; }
|
|
|
|
|
+ public LocalDateTime getUpdatedAt() { return updatedAt; }
|
|
|
|
|
+ public void setUpdatedAt(LocalDateTime updatedAt) { this.updatedAt = updatedAt; }
|
|
|
|
|
+}
|