Java_Microservices/LicenseServices/src/main/java/com/microservices/licenseservices/model/License.java
package com.microservices.licenseservices.model;

import lombok.NoArgsConstructor;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

@Document
@NoArgsConstructor
public class License {
    @Id
    private String id;
    private String licenseKey;
    private String billCode;
    private String status;
    private boolean active;

    public License(String licenseKey, String billCode, String status, boolean active) {
        this.licenseKey = licenseKey;
        this.billCode = billCode;
        this.status = status;
        this.active = active;
    }

    public String getId() {
        return id;
    }

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

    public String getLicenseKey() {
        return licenseKey;
    }

    public void setLicenseKey(String licenseKey) {
        this.licenseKey = licenseKey;
    }

    public String getBillCode() {
        return billCode;
    }

    public void setBillCode(String billCode) {
        this.billCode = billCode;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public boolean getActive() {
        return active;
    }

    public void setActive(boolean active) {
        this.active = active;
    }
}

