package com.cool.store.entity.config;

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

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

/**
 * 选项模板表
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Table(name = "zxjp_config_option")
public class ConfigOptionDO implements Serializable {

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Long id;

    @Column(name = "category_code")
    private String categoryCode;

    @Column(name = "item_code")
    private String itemCode;

    @Column(name = "option_code")
    private String optionCode;

    @Column(name = "option_name")
    private String optionName;

    @Column(name = "option_description")
    private String optionDescription;

    @Column(name = "option_price")
    private BigDecimal optionPrice;

    @Column(name = "original_option_price")
    private BigDecimal originalOptionPrice;

    @Column(name = "option_unit")
    private String optionUnit;

    @Column(name = "image_url")
    private String imageUrl;

    @Column(name = "video_url")
    private String videoUrl;

    @Column(name = "is_active")
    private Boolean active;

    @Column(name = "sort_order")
    private Integer sortOrder;

    @Column(name = "option_remark")
    private String optionRemark;

    @Column(name = "create_time")
    private Date createTime;

    @Column(name = "update_time")
    private Date updateTime;

    @Column(name = "expense_type_code")
    private String expenseTypeCode;
}
