package com.ylcm.sys.domain;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;

import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 产品管理表
 * </p>
 *
 * @author admin
 * @since 2020-07-01
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("ad_product")
@ApiModel(value="AdProduct对象", description="产品管理表")
public class AdProduct implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "产品名")
    @TableField("product_name")
    private String productName;

    @ApiModelProperty(value = "型号LOGO")
    @TableField("name_img_url")
    private String nameImgUrl;

    @ApiModelProperty(value = "品牌")
    @TableField("brand_name")
    private String brandName;

    @ApiModelProperty(value = "品牌LOGO")
    @TableField("brand_img_url")
    private String brandImgUrl;

    @ApiModelProperty(value = "一级行业")
    @TableField("first_ind")
    private String firstInd;

    @ApiModelProperty(value = "二级行业")
    @TableField("second_ind")
    private String secondInd;

    @ApiModelProperty(value = "0正常 4删除")
    @TableField("status")
    @TableLogic
    private Integer status;

    @ApiModelProperty(value = "创建时间：默认值现在时间")
    @TableField("crt_time")
    private LocalDateTime crtTime;

    @ApiModelProperty(value = "更新时间")
    @TableField("upd_time")
    private LocalDateTime updTime;


}
