package com.ssm.manage.query;

import com.ssm.manage.page.BasePage;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * (BaseCoupon)实体类
 *
 * @author makejava
 * @since 2022-05-25 14:36:37
 */
@Table(name = "base_coupon")
public class BaseCouponRequest extends BasePage implements Serializable {
    private static final long serialVersionUID = 165850744323849712L;
    /**
     * id
     */
    @Id
    @Column(name = "id")
    private Integer id;
    /**
     * 优惠价编码
     */
    @Column(name = "coupon_num")
    private String couponNum;
    /**
     * 优惠价名称
     */
    @Column(name = "coupon_name")
    private String couponName;
    /**
     * 优惠劵数量
     */
    @Column(name = "number")
    private Integer number;
    /**
     * 价值
     */
    @Column(name = "value")
    private BigDecimal value;
    /**
     * 0=代金卷，1=折扣卷，3=代扣卷
     */
    @Column(name = "coupon_type")
    private Integer couponType;
    /**
     * 0=满减，1=没有限制
     */
    @Column(name = "service_conditions")
    private Integer serviceConditions;
    /**
     * 满减金额（满多少可以减）
     */
    @Column(name = "full_reduction_money")
    private BigDecimal fullReductionMoney;
    /**
     * 适用门店对象0:所有门店/1:指定门店
     */
    @Column(name = "suitable_store")
    private Integer suitableStore;
    /**
     * 有效期(0=领取后多少天，1=固定日期)
     */
    @Column(name = "indate_type")
    private Integer indateType;
    /**
     * 领取后多少天生效
     */
    @Column(name = "start_day")
    private Integer startDay;
    /**
     * 多少天内有效
     */
    @Column(name = "end_day")
    private Integer endDay;
    /**
     * 开始日期
     */
    @Column(name = "start_date")
    private Date startDate;
    /**
     * 结束日期
     */
    @Column(name = "end_date")
    private Date endDate;
    /**
     * 代扣项目ID
     */
    @Column(name = "project_id")
    private Long projectId;
    /**
     * 代扣项目编码
     */
    @Column(name = "project_num")
    private String projectNum;
    /**
     * 代扣项目名称
     */
    @Column(name = "project_name")
    private String projectName;
    /**
     * 备注
     */
    @Column(name = "remark")
    private String remark;
    /**
     * 门店Id
     */
    @Column(name = "store_id")
    private Long storeId;
    /**
     * 门店编码
     */
    @Column(name = "store_num")
    private String storeNum;
    /**
     * 门店名称
     */
    @Column(name = "store_name")
    private String storeName;
    /**
     * 录单人ID
     */
    @Column(name = "input_id")
    private Long inputId;
    /**
     * 录单人名称
     */
    @Column(name = "input_by")
    private String inputBy;
    /**
     * 录单时间
     */
    @Column(name = "input_date")
    private Date inputDate;
    /**
     * 修改人ID
     */
    @Column(name = "update_id")
    private Long updateId;
    /**
     * 修改人名称
     */
    @Column(name = "update_by")
    private String updateBy;
    /**
     * 修改时间
     */
    @Column(name = "update_date")
    private Date updateDate;
}

