package com.gxwebsoft.tower.entity;

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

/**
 * 派单配件
 *
 * @author 科技小王子
 * @since 2023-07-03 10:18:57
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "TowerWorksheetParts对象", description = "派单配件")
public class TowerWorksheetParts implements Serializable {
    private static final long serialVersionUID = 1L;

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

    private Integer worksheetId;

    @ApiModelProperty(value = "父级分类ID")
    private Integer parentId;

    @ApiModelProperty(value = "配件ID,对应category表ID")
    private Integer cateId;

    private Integer num;

    @ApiModelProperty(value = "是否删除, 0否, 1是")
    @TableLogic
    private Integer deleted;

    @ApiModelProperty(value = "租户id")
    private Integer tenantId;

    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "修改时间")
    private LocalDateTime updateTime;

    @ApiModelProperty(value = "配件名称")
    @TableField(exist = false)
    private String partsTitle;


    @ApiModelProperty(value = "父类配件名称")
    @TableField(exist = false)
    private String parentPartsTitle;


}
