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 java.util.Date;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 项目管理
 *
 * @author 科技小王子
 * @since 2023-06-05 22:40:54
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "TowerFall对象", description = "项目管理")
public class TowerFall implements Serializable {
    private static final long serialVersionUID = 1L;

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

    @ApiModelProperty(value = "防坠器编号")
    private String code;

    @ApiModelProperty(value = "防坠器型号")
    private String model;

    @ApiModelProperty(value = "制造厂家")
    private String factory;

    @ApiModelProperty(value = "产权单位")
    private Integer companyId;

    @ApiModelProperty(value = "产权单位名称")
//    @TableField(exist = false)
    private String companyName;

    @ApiModelProperty(value = "出厂日期")
    private Date factoryDate;

    @ApiModelProperty(value = "报废日期")
    private Date discardDate;

    @ApiModelProperty(value = "检测日期")
    private String checkDate;

    @ApiModelProperty(value = "出厂检测报告")
    private String file1;

    @ApiModelProperty(value = "合格证")
    private String file2;

    @ApiModelProperty(value = "出厂铭牌")
    private String file3;

    @ApiModelProperty(value = "发票")
    private String file4;

    @ApiModelProperty(value = "状态, 0待发布, 1已发布")
    private Integer status;

    @ApiModelProperty(value = "备注")
    private String comments;

    @ApiModelProperty(value = "排序号")
    private Integer sortNumber;

    @ApiModelProperty(value = "所有人")
    private Integer userId;

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

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

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

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

}
