package com.cool.store.entity.store;

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

import javax.persistence.*;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 店型-选项映射表
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Table(name = "zxjp_store_type_option")
public class StoreTypeOptionDO implements Serializable {

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

    @Column(name = "store_type_id")
    private Long storeTypeId;

    @Column(name = "option_id")
    private Long optionId;

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

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

    @Column(name = "is_default")
    private Integer isDefault;

    @Column(name = "default_quantity")
    private BigDecimal defaultQuantity;

    @Column(name = "allow_quantity_edit")
    private Integer allowQuantityEdit;

    @Column(name = "is_visible")
    private Integer visible;

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

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

    @Column(name = "top_preview_image" )
    private String topPreviewImage;

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

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