package de.cannamanage.domain.entity;

import jakarta.persistence.*;

import java.math.BigDecimal;

@Entity
@Table(name = "strains")
public class Strain extends AbstractTenantEntity {

    @Column(name = "name", nullable = false, length = 255)
    private String name;

    @Column(name = "thc_percentage", nullable = false, precision = 5, scale = 2)
    private BigDecimal thcPercentage;

    @Column(name = "cbd_percentage", nullable = false, precision = 5, scale = 2)
    private BigDecimal cbdPercentage = BigDecimal.ZERO;

    @Column(name = "description")
    private String description;

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

    public BigDecimal getThcPercentage() { return thcPercentage; }
    public void setThcPercentage(BigDecimal thcPercentage) { this.thcPercentage = thcPercentage; }

    public BigDecimal getCbdPercentage() { return cbdPercentage; }
    public void setCbdPercentage(BigDecimal cbdPercentage) { this.cbdPercentage = cbdPercentage; }

    public String getDescription() { return description; }
    public void setDescription(String description) { this.description = description; }
}
