add teams table and entity
This commit is contained in:
@@ -1,15 +0,0 @@
|
||||
package com.navi.medici.enums;
|
||||
|
||||
public enum Teams {
|
||||
PAYMENTS("Payments"),
|
||||
UNDERWRITING("Underwriting"),
|
||||
CONVERSION("Conversion"),
|
||||
COLLECTIONS("Collections"),
|
||||
GI("General Insurance");
|
||||
|
||||
private String value;
|
||||
|
||||
Teams(String value) {
|
||||
this.value = value;
|
||||
}
|
||||
}
|
||||
@@ -42,8 +42,4 @@ public abstract class BaseEntity {
|
||||
@Version
|
||||
private int version;
|
||||
|
||||
private String createdBy;
|
||||
|
||||
private String updatedBy;
|
||||
|
||||
}
|
||||
|
||||
@@ -76,4 +76,8 @@ public class ExperimentEntity extends BaseEntity{
|
||||
String experimentStatus;
|
||||
|
||||
String experimentImpact;
|
||||
|
||||
String createdBy;
|
||||
|
||||
String updatedBy;
|
||||
}
|
||||
|
||||
@@ -35,4 +35,8 @@ public class MetricEntity extends BaseEntity{
|
||||
String metricType;
|
||||
|
||||
String athenaQuery;
|
||||
|
||||
String createdBy;
|
||||
|
||||
String updatedBy;
|
||||
}
|
||||
|
||||
@@ -49,4 +49,8 @@ public class SegmentEntity extends BaseEntity{
|
||||
@Column(name = "segment_type")
|
||||
@Enumerated(EnumType.STRING)
|
||||
SegmentType segmentType;
|
||||
|
||||
String createdBy;
|
||||
|
||||
String updatedBy;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,26 @@
|
||||
package com.navi.medici.entity;
|
||||
|
||||
import lombok.AccessLevel;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Getter;
|
||||
import lombok.NoArgsConstructor;
|
||||
import lombok.Setter;
|
||||
import lombok.experimental.FieldDefaults;
|
||||
import lombok.experimental.SuperBuilder;
|
||||
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.Table;
|
||||
|
||||
@Entity
|
||||
@Table(name = "teams")
|
||||
@Getter
|
||||
@Setter
|
||||
@SuperBuilder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
@FieldDefaults(level = AccessLevel.PRIVATE)
|
||||
public class TeamEntity extends BaseEntity{
|
||||
String teamId;
|
||||
String teamName;
|
||||
String description;
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
--liquibase formatted sql
|
||||
|
||||
--changeset author:akshatsoni id:202302221436
|
||||
CREATE TABLE teams (
|
||||
id SERIAL PRIMARY KEY,
|
||||
team_id varchar(36) NOT NULL,
|
||||
team_name varchar(100) NOT NULL,
|
||||
description text NOT NULL,
|
||||
version BIGINT,
|
||||
created_at timestamp,
|
||||
updated_at timestamp
|
||||
);
|
||||
|
||||
|
||||
CREATE INDEX idx_team_id ON teams(team_id);
|
||||
CREATE INDEX idx_team_name ON teams(team_name);
|
||||
Reference in New Issue
Block a user