package org.linlinjava.litemall.db.domain;

import java.math.BigDecimal;
import java.time.LocalDateTime;

public class LitemallCoupon {
    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database table litemall_coupon
     *
     * @mbg.generated
     * @project https://github.com/itfsw/mybatis-generator-plugin
     */
    public static final Boolean NOT_DELETED = false;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database table litemall_coupon
     *
     * @mbg.generated
     * @project https://github.com/itfsw/mybatis-generator-plugin
     */
    @Deprecated
    public static final Boolean DEL_FLAG_ON = false;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database table litemall_coupon
     *
     * @mbg.generated
     * @project https://github.com/itfsw/mybatis-generator-plugin
     */
    public static final Boolean IS_DELETED = true;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database table litemall_coupon
     *
     * @mbg.generated
     * @project https://github.com/itfsw/mybatis-generator-plugin
     */
    @Deprecated
    public static final Boolean DEL_FLAG_OFF = true;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column litemall_coupon.id
     *
     * @mbg.generated
     */
    private Integer id;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column litemall_coupon.name
     *
     * @mbg.generated
     */
    private String name;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column litemall_coupon.type_money
     *
     * @mbg.generated
     */
    private BigDecimal typeMoney;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column litemall_coupon.send_type
     *
     * @mbg.generated
     */
    private Byte sendType;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column litemall_coupon.min_amount
     *
     * @mbg.generated
     */
    private BigDecimal minAmount;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column litemall_coupon.max_amount
     *
     * @mbg.generated
     */
    private BigDecimal maxAmount;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column litemall_coupon.min_goods_amount
     *
     * @mbg.generated
     */
    private BigDecimal minGoodsAmount;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column litemall_coupon.send_start
     *
     * @mbg.generated
     */
    private LocalDateTime sendStart;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column litemall_coupon.send_end
     *
     * @mbg.generated
     */
    private LocalDateTime sendEnd;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column litemall_coupon.use_start
     *
     * @mbg.generated
     */
    private LocalDateTime useStart;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column litemall_coupon.use_end
     *
     * @mbg.generated
     */
    private LocalDateTime useEnd;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column litemall_coupon.add_time
     *
     * @mbg.generated
     */
    private LocalDateTime addTime;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column litemall_coupon.deleted
     *
     * @mbg.generated
     */
    private Boolean deleted;

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column litemall_coupon.id
     *
     * @return the value of litemall_coupon.id
     *
     * @mbg.generated
     */
    public Integer getId() {
        return id;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column litemall_coupon.id
     *
     * @param id the value for litemall_coupon.id
     *
     * @mbg.generated
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column litemall_coupon.name
     *
     * @return the value of litemall_coupon.name
     *
     * @mbg.generated
     */
    public String getName() {
        return name;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column litemall_coupon.name
     *
     * @param name the value for litemall_coupon.name
     *
     * @mbg.generated
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column litemall_coupon.type_money
     *
     * @return the value of litemall_coupon.type_money
     *
     * @mbg.generated
     */
    public BigDecimal getTypeMoney() {
        return typeMoney;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column litemall_coupon.type_money
     *
     * @param typeMoney the value for litemall_coupon.type_money
     *
     * @mbg.generated
     */
    public void setTypeMoney(BigDecimal typeMoney) {
        this.typeMoney = typeMoney;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column litemall_coupon.send_type
     *
     * @return the value of litemall_coupon.send_type
     *
     * @mbg.generated
     */
    public Byte getSendType() {
        return sendType;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column litemall_coupon.send_type
     *
     * @param sendType the value for litemall_coupon.send_type
     *
     * @mbg.generated
     */
    public void setSendType(Byte sendType) {
        this.sendType = sendType;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column litemall_coupon.min_amount
     *
     * @return the value of litemall_coupon.min_amount
     *
     * @mbg.generated
     */
    public BigDecimal getMinAmount() {
        return minAmount;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column litemall_coupon.min_amount
     *
     * @param minAmount the value for litemall_coupon.min_amount
     *
     * @mbg.generated
     */
    public void setMinAmount(BigDecimal minAmount) {
        this.minAmount = minAmount;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column litemall_coupon.max_amount
     *
     * @return the value of litemall_coupon.max_amount
     *
     * @mbg.generated
     */
    public BigDecimal getMaxAmount() {
        return maxAmount;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column litemall_coupon.max_amount
     *
     * @param maxAmount the value for litemall_coupon.max_amount
     *
     * @mbg.generated
     */
    public void setMaxAmount(BigDecimal maxAmount) {
        this.maxAmount = maxAmount;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column litemall_coupon.min_goods_amount
     *
     * @return the value of litemall_coupon.min_goods_amount
     *
     * @mbg.generated
     */
    public BigDecimal getMinGoodsAmount() {
        return minGoodsAmount;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column litemall_coupon.min_goods_amount
     *
     * @param minGoodsAmount the value for litemall_coupon.min_goods_amount
     *
     * @mbg.generated
     */
    public void setMinGoodsAmount(BigDecimal minGoodsAmount) {
        this.minGoodsAmount = minGoodsAmount;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column litemall_coupon.send_start
     *
     * @return the value of litemall_coupon.send_start
     *
     * @mbg.generated
     */
    public LocalDateTime getSendStart() {
        return sendStart;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column litemall_coupon.send_start
     *
     * @param sendStart the value for litemall_coupon.send_start
     *
     * @mbg.generated
     */
    public void setSendStart(LocalDateTime sendStart) {
        this.sendStart = sendStart;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column litemall_coupon.send_end
     *
     * @return the value of litemall_coupon.send_end
     *
     * @mbg.generated
     */
    public LocalDateTime getSendEnd() {
        return sendEnd;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column litemall_coupon.send_end
     *
     * @param sendEnd the value for litemall_coupon.send_end
     *
     * @mbg.generated
     */
    public void setSendEnd(LocalDateTime sendEnd) {
        this.sendEnd = sendEnd;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column litemall_coupon.use_start
     *
     * @return the value of litemall_coupon.use_start
     *
     * @mbg.generated
     */
    public LocalDateTime getUseStart() {
        return useStart;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column litemall_coupon.use_start
     *
     * @param useStart the value for litemall_coupon.use_start
     *
     * @mbg.generated
     */
    public void setUseStart(LocalDateTime useStart) {
        this.useStart = useStart;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column litemall_coupon.use_end
     *
     * @return the value of litemall_coupon.use_end
     *
     * @mbg.generated
     */
    public LocalDateTime getUseEnd() {
        return useEnd;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column litemall_coupon.use_end
     *
     * @param useEnd the value for litemall_coupon.use_end
     *
     * @mbg.generated
     */
    public void setUseEnd(LocalDateTime useEnd) {
        this.useEnd = useEnd;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column litemall_coupon.add_time
     *
     * @return the value of litemall_coupon.add_time
     *
     * @mbg.generated
     */
    public LocalDateTime getAddTime() {
        return addTime;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column litemall_coupon.add_time
     *
     * @param addTime the value for litemall_coupon.add_time
     *
     * @mbg.generated
     */
    public void setAddTime(LocalDateTime addTime) {
        this.addTime = addTime;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column litemall_coupon.deleted
     *
     * @return the value of litemall_coupon.deleted
     *
     * @mbg.generated
     */
    public Boolean getDeleted() {
        return deleted;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column litemall_coupon.deleted
     *
     * @param deleted the value for litemall_coupon.deleted
     *
     * @mbg.generated
     */
    public void setDeleted(Boolean deleted) {
        this.deleted = deleted;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table litemall_coupon
     *
     * @mbg.generated
     */
    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", name=").append(name);
        sb.append(", typeMoney=").append(typeMoney);
        sb.append(", sendType=").append(sendType);
        sb.append(", minAmount=").append(minAmount);
        sb.append(", maxAmount=").append(maxAmount);
        sb.append(", minGoodsAmount=").append(minGoodsAmount);
        sb.append(", sendStart=").append(sendStart);
        sb.append(", sendEnd=").append(sendEnd);
        sb.append(", useStart=").append(useStart);
        sb.append(", useEnd=").append(useEnd);
        sb.append(", addTime=").append(addTime);
        sb.append(", deleted=").append(deleted);
        sb.append("]");
        return sb.toString();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table litemall_coupon
     *
     * @mbg.generated
     */
    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        LitemallCoupon other = (LitemallCoupon) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getName() == null ? other.getName() == null : this.getName().equals(other.getName()))
            && (this.getTypeMoney() == null ? other.getTypeMoney() == null : this.getTypeMoney().equals(other.getTypeMoney()))
            && (this.getSendType() == null ? other.getSendType() == null : this.getSendType().equals(other.getSendType()))
            && (this.getMinAmount() == null ? other.getMinAmount() == null : this.getMinAmount().equals(other.getMinAmount()))
            && (this.getMaxAmount() == null ? other.getMaxAmount() == null : this.getMaxAmount().equals(other.getMaxAmount()))
            && (this.getMinGoodsAmount() == null ? other.getMinGoodsAmount() == null : this.getMinGoodsAmount().equals(other.getMinGoodsAmount()))
            && (this.getSendStart() == null ? other.getSendStart() == null : this.getSendStart().equals(other.getSendStart()))
            && (this.getSendEnd() == null ? other.getSendEnd() == null : this.getSendEnd().equals(other.getSendEnd()))
            && (this.getUseStart() == null ? other.getUseStart() == null : this.getUseStart().equals(other.getUseStart()))
            && (this.getUseEnd() == null ? other.getUseEnd() == null : this.getUseEnd().equals(other.getUseEnd()))
            && (this.getAddTime() == null ? other.getAddTime() == null : this.getAddTime().equals(other.getAddTime()))
            && (this.getDeleted() == null ? other.getDeleted() == null : this.getDeleted().equals(other.getDeleted()));
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table litemall_coupon
     *
     * @mbg.generated
     */
    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getName() == null) ? 0 : getName().hashCode());
        result = prime * result + ((getTypeMoney() == null) ? 0 : getTypeMoney().hashCode());
        result = prime * result + ((getSendType() == null) ? 0 : getSendType().hashCode());
        result = prime * result + ((getMinAmount() == null) ? 0 : getMinAmount().hashCode());
        result = prime * result + ((getMaxAmount() == null) ? 0 : getMaxAmount().hashCode());
        result = prime * result + ((getMinGoodsAmount() == null) ? 0 : getMinGoodsAmount().hashCode());
        result = prime * result + ((getSendStart() == null) ? 0 : getSendStart().hashCode());
        result = prime * result + ((getSendEnd() == null) ? 0 : getSendEnd().hashCode());
        result = prime * result + ((getUseStart() == null) ? 0 : getUseStart().hashCode());
        result = prime * result + ((getUseEnd() == null) ? 0 : getUseEnd().hashCode());
        result = prime * result + ((getAddTime() == null) ? 0 : getAddTime().hashCode());
        result = prime * result + ((getDeleted() == null) ? 0 : getDeleted().hashCode());
        return result;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table litemall_coupon
     *
     * @mbg.generated
     * @project https://github.com/itfsw/mybatis-generator-plugin
     */
    public void andLogicalDeleted(boolean deleted) {
        setDeleted(deleted ? IS_DELETED : NOT_DELETED);
    }

    /**
     * This enum was generated by MyBatis Generator.
     * This enum corresponds to the database table litemall_coupon
     *
     * @mbg.generated
     * @project https://github.com/itfsw/mybatis-generator-plugin
     */
    public enum Column {
        id("id", "id", "INTEGER"),
        name("name", "name", "VARCHAR"),
        typeMoney("type_money", "typeMoney", "DECIMAL"),
        sendType("send_type", "sendType", "TINYINT"),
        minAmount("min_amount", "minAmount", "DECIMAL"),
        maxAmount("max_amount", "maxAmount", "DECIMAL"),
        minGoodsAmount("min_goods_amount", "minGoodsAmount", "DECIMAL"),
        sendStart("send_start", "sendStart", "TIMESTAMP"),
        sendEnd("send_end", "sendEnd", "TIMESTAMP"),
        useStart("use_start", "useStart", "TIMESTAMP"),
        useEnd("use_end", "useEnd", "TIMESTAMP"),
        addTime("add_time", "addTime", "TIMESTAMP"),
        deleted("deleted", "deleted", "BIT");

        /**
         * This field was generated by MyBatis Generator.
         * This field corresponds to the database table litemall_coupon
         *
         * @mbg.generated
         * @project https://github.com/itfsw/mybatis-generator-plugin
         */
        private final String column;

        /**
         * This field was generated by MyBatis Generator.
         * This field corresponds to the database table litemall_coupon
         *
         * @mbg.generated
         * @project https://github.com/itfsw/mybatis-generator-plugin
         */
        private final String javaProperty;

        /**
         * This field was generated by MyBatis Generator.
         * This field corresponds to the database table litemall_coupon
         *
         * @mbg.generated
         * @project https://github.com/itfsw/mybatis-generator-plugin
         */
        private final String jdbcType;

        /**
         * This method was generated by MyBatis Generator.
         * This method corresponds to the database table litemall_coupon
         *
         * @mbg.generated
         * @project https://github.com/itfsw/mybatis-generator-plugin
         */
        public String value() {
            return this.column;
        }

        /**
         * This method was generated by MyBatis Generator.
         * This method corresponds to the database table litemall_coupon
         *
         * @mbg.generated
         * @project https://github.com/itfsw/mybatis-generator-plugin
         */
        public String getValue() {
            return this.column;
        }

        /**
         * This method was generated by MyBatis Generator.
         * This method corresponds to the database table litemall_coupon
         *
         * @mbg.generated
         * @project https://github.com/itfsw/mybatis-generator-plugin
         */
        public String getJavaProperty() {
            return this.javaProperty;
        }

        /**
         * This method was generated by MyBatis Generator.
         * This method corresponds to the database table litemall_coupon
         *
         * @mbg.generated
         * @project https://github.com/itfsw/mybatis-generator-plugin
         */
        public String getJdbcType() {
            return this.jdbcType;
        }

        /**
         * This method was generated by MyBatis Generator.
         * This method corresponds to the database table litemall_coupon
         *
         * @mbg.generated
         * @project https://github.com/itfsw/mybatis-generator-plugin
         */
        Column(String column, String javaProperty, String jdbcType) {
            this.column = column;
            this.javaProperty = javaProperty;
            this.jdbcType = jdbcType;
        }

        /**
         * This method was generated by MyBatis Generator.
         * This method corresponds to the database table litemall_coupon
         *
         * @mbg.generated
         * @project https://github.com/itfsw/mybatis-generator-plugin
         */
        public String desc() {
            return this.column + " DESC";
        }

        /**
         * This method was generated by MyBatis Generator.
         * This method corresponds to the database table litemall_coupon
         *
         * @mbg.generated
         * @project https://github.com/itfsw/mybatis-generator-plugin
         */
        public String asc() {
            return this.column + " ASC";
        }
    }
}