package com.remy.order.entity;

import com.remy.common.entity.BaseEntity;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.math.BigDecimal;

@Entity
@Data
@SuperBuilder
@NoArgsConstructor
@Table(name = "t_order")
public class Order extends BaseEntity {

    @Column(name = "order_no")
    private String orderNo;

    @Column(name = "goods_serial_no")
    private String goodsSerialNo;

    @Column(name = "userID")
    private Long userID;

    @Column(name = "discount")
    private BigDecimal discount;

    @Column(name = "original_amount")
    private BigDecimal originalAmount;

    @Column(name = "discount_amount")
    private BigDecimal discountAmount;

}
