package models.projects;

import org.hibernate.annotations.Type;
import org.joda.time.DateTime;
import play.db.jpa.Model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.ManyToOne;
import java.math.BigDecimal;

/**
 * Created by dom on 15/12/2018.
 * ΑΝ Η ΕΞΟΦΛΗΣΗ ΓΙΝΕΙ ΜΕΣΟ ΔΟΣΕΩΝ ΕΔΩ ΘΑ ΔΗΛΩΘΟΥΝ ΟΙ ΔΟΣΕΙΣ
 */
@Entity
public class Installment extends Model {

    @ManyToOne
    public Project project;

    public BigDecimal amount;

    @Column
    @Type(type = "org.jadira.usertype.dateandtime.joda.PersistentDateTime")
    public DateTime dueDate;


    public Installment(){

    }
}
