package com.MedInsuranceV2.Version20.Insurance;

import jakarta.persistence.*;

@Entity
@Table(name = "insurance_policies")
public class Insurance {

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Long id;

    @Column(nullable = false)
    private String name;

    @Column(nullable = false)
    private double coverage;

    @Column(nullable = false)
    private double amountPerYear;

    // Getter and Setter முறைகள்
    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public double getCoverage() {
        return coverage;
    }

    public void setCoverage(double coverage) {
        this.coverage = coverage;
    }

    public double getAmountPerYear() {
        return amountPerYear;
    }

    public void setAmountPerYear(double amountPerYear) {
        this.amountPerYear = amountPerYear;
    }
}
