java/common/src/main/java/com/exadel/frs/commonservice/entity/Subject.java
<reponame>rohankumardubey/CompreFacepackage com.exadel.frs.commonservice.entity;

import lombok.*;
import lombok.experimental.Accessors;

import javax.persistence.*;
import java.util.UUID;

@Data
@Accessors(chain = true)
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(of = "id")
@Entity
@Builder
@Table(schema = "public")
// Think about Subject as a collection of Embeddings
public class Subject {

    @Id
    @GeneratedValue
    private UUID id;

    @Column(name = "api_key")
    private String apiKey;

    // String that identifies subject in unique way
    // Could be guid, UUID, user first + last name - up to cutomers
    @Column(name = "subject_name")
    private String subjectName;
}
