Done ticket GEPAFINBE-8
This commit is contained in:
@@ -0,0 +1,66 @@
|
||||
package net.gepafin.tendermanagement.entities;
|
||||
|
||||
import jakarta.persistence.*;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
@Entity
|
||||
@Table(name = "CALL")
|
||||
@Data
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
@Builder
|
||||
public class CallEntity extends BaseEntity {
|
||||
|
||||
@Column(name = "NAME", nullable = false, length = 255)
|
||||
private String name;
|
||||
|
||||
@Column(name = "DESCRIPTION_SHORT", columnDefinition = "TEXT")
|
||||
private String descriptionShort;
|
||||
|
||||
@Column(name = "DESCRIPTION_LONG", columnDefinition = "TEXT")
|
||||
private String descriptionLong;
|
||||
|
||||
@Column(name = "START_DATE", nullable = false)
|
||||
private LocalDateTime startDate;
|
||||
|
||||
@Column(name = "END_DATE", nullable = false)
|
||||
private LocalDateTime endDate;
|
||||
|
||||
@Column(name = "STATUS", nullable = false, length = 255)
|
||||
private String status;
|
||||
|
||||
@ManyToOne
|
||||
@JoinColumn(name = "REGION_ID", nullable = false, foreignKey = @ForeignKey(name = "fk_region_call"))
|
||||
private RegionEntity region;
|
||||
|
||||
@Column(name = "AMOUNT", nullable = false)
|
||||
private BigDecimal amount;
|
||||
|
||||
@Column(name = "AMOUNT_MAX", nullable = false)
|
||||
private BigDecimal amountMax;
|
||||
|
||||
@Column(name = "CONTACT_INFO", columnDefinition = "TEXT")
|
||||
private String contactInfo;
|
||||
|
||||
@Column(name = "SUBMISSION_METHOD", columnDefinition = "TEXT")
|
||||
private String submissionMethod;
|
||||
|
||||
@Column(name = "THRESHOLD", nullable = false)
|
||||
private Integer threshold;
|
||||
|
||||
@Column(name="DOCUMENTATION_REQUESTED",columnDefinition = "TEXT")
|
||||
private String documentation_requested;
|
||||
|
||||
@Column(name = "PRIORITY_AREA", columnDefinition = "TEXT")
|
||||
private String priorityArea;
|
||||
|
||||
@Column(name = "CONFIDI")
|
||||
private Boolean confidi;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user