package com.davos.assessment.assessment;

import jakarta.persistence.*;

@Entity
@Table(name = "assessments")
public class Assessment {
  @Id
  @GeneratedValue(strategy = GenerationType.IDENTITY)
  private Long id;

  @Column(name = "test_paper_id", nullable = false, unique = true)
  private String testPaperId;

  @Column(nullable = false)
  private String title;

  @Column(nullable = false, columnDefinition = "text")
  private String description;

  @Column(nullable = false)
  private boolean active = true;

  public Long getId() { return id; }
  public String getTestPaperId() { return testPaperId; }
  public void setTestPaperId(String testPaperId) { this.testPaperId = testPaperId; }
  public String getTitle() { return title; }
  public void setTitle(String title) { this.title = title; }
  public String getDescription() { return description; }
  public void setDescription(String description) { this.description = description; }
  public boolean isActive() { return active; }
  public void setActive(boolean active) { this.active = active; }
}
