package org.jeecg.modules.database.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @Description: 元器件
 * @Author: jeecg-boot
 * @Date: 2024-08-30
 * @Version: V1.0
 */
@Data
@TableName("component")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@Schema(description = "元器件")
public class Component implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(type = IdType.ASSIGN_ID)
    @Schema(description = "主键")
    private String id;
    /**
     * 创建人
     */
    @Schema(description = "创建人")
    private String createBy;
    /**
     * 创建日期
     */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm")
    @Schema(description = "创建日期")
    private Date   createTime;
    /**
     * 更新人
     */
    @Schema(description = "更新人")
    private String updateBy;
    /**
     * 更新日期
     */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm")
    @Schema(description = "更新日期")
    private Date   updateTime;
    /**
     * 所属部门
     */
    @Schema(description = "所属部门")
    private String sysOrgCode;
    /**
     * 名称
     */
    @Excel(name = "名称", width = 15)
    @Schema(description = "名称")
    private String name;
    /**
     * 型号
     */
    @Excel(name = "型号", width = 15)
    @Schema(description = "型号")
    private String model;
    /**
     * 特征尺寸
     */
    @Excel(name = "特征尺寸", width = 15)
    @Schema(description = "特征尺寸")
    private String size;
    /**
     * 器件材料
     */
    @Excel(name = "器件材料", width = 15)
    @Schema(description = "器件材料")
    private String material;
    /**
     * 器件工艺
     */
    @Excel(name = "器件工艺", width = 15)
    @Schema(description = "器件工艺")
    private String technology;
    /**
     * 生产厂家
     */
    @Excel(name = "生产厂家", width = 15)
    @Schema(description = "生产厂家")
    private String manufacturer;
    /**
     * 批次
     */
    @Excel(name = "批次", width = 15)
    @Schema(description = "批次")
    private String batchNo;
    /**
     * 代工线
     */
    @Excel(name = "代工线", width = 15)
    @Schema(description = "代工线")
    private String oemLine;
    /**
     * 类型
     */
    @Excel(name = "类型", width = 15)
    @Schema(description = "类型")
    private String type;
    /**
     * 附件
     */
    @Excel(name = "附件", width = 15)
    @Schema(description = "附件")
    private String attachment;
}
