package com.gxwebsoft.credit.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.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * 招投标信息表
 *
 * @author 科技小王子
 * @since 2025-12-15 13:16:03
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Schema(name = "CreditUser对象", description = "招投标信息表")
public class CreditUser implements Serializable {
    private static final long serialVersionUID = 1L;

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

    @Schema(description = "项目名称")
    private String name;

    @Schema(description = "项目网址")
    private String url;

    @Schema(description = "唯一标识")
    private String code;

    @Schema(description = "类型, 0普通用户, 1招投标")
    private Integer type;

    @Schema(description = "原告/上诉人")
    private String plaintiffAppellant;

    @Schema(description = "企业角色")
    private String role;

    @Schema(description = "上级id, 0是顶级")
    private Integer parentId;

    @Schema(description = "信息类型")
    private String infoType;

    @Schema(description = "所在国家")
    private String country;

    @Schema(description = "所在省份")
    private String province;

    @Schema(description = "所在城市")
    private String city;

    @Schema(description = "所在辖区")
    private String region;

    @Schema(description = "街道地址")
    private String address;

    @Schema(description = "招采单位")
    private String procurementName;

    @Schema(description = "中标单位")
    private String winningName;

    @Schema(description = "中标金额")
    private String winningPrice;

    @Schema(description = "发布日期")
    private String releaseDate;

    @Schema(description = "企业ID")
    private Integer companyId;

    @Schema(description = "企业别名")
    private String companyAlias;

    @Schema(description = "企业名称")
    private String companyName;

    @Schema(description = "是否有数据")
    private Boolean hasData;

    @Schema(description = "备注")
    private String comments;

    @Schema(description = "是否推荐")
    private Integer recommend;

    @Schema(description = "排序(数字越小越靠前)")
    private Integer sortNumber;

    @Schema(description = "状态, 0正常, 1冻结")
    private Integer status;

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

    @Schema(description = "用户ID")
    private Integer userId;

    @Schema(description = "真实姓名")
    @TableField(exist = false)
    private String realName;

    @Schema(description = "租户id")
    private Integer tenantId;

    @Schema(description = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    @Schema(description = "修改时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;

}
