package com.izouma.nineth.domain;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Column;
import javax.persistence.Entity;
import java.math.BigDecimal;
import java.time.LocalDate;

@Data
@Entity
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class SettleRecord extends BaseEntity {

    @Column(unique = true)
    private LocalDate date;

    private long orderNum;

    @Column(precision = 10, scale = 2)
    private BigDecimal totalAmount;

    @Column(precision = 10, scale = 2)
    private BigDecimal royaltiesAmount;

    @Column(precision = 10, scale = 2)
    private BigDecimal serviceChargeAmount;
}
