package com.gxwebsoft.oa.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.baomidou.mybatisplus.annotation.TableLogic;
import java.io.Serializable;

import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 商标注册
 *
 * @author 科技小王子
 * @since 2024-10-18 19:46:21
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Schema(name = "OaAssetsTrademark对象", description = "商标注册")
public class OaAssetsTrademark 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 code;

    @Schema(description = "商标类型")
    private String type;

    @Schema(description = "品牌厂商")
    private String brand;

    @Schema(description = "价格")
    private BigDecimal price;

    @Schema(description = "详情内容")
    private String content;

    @Schema(description = "证书下载")
    private String certUrl;

    @Schema(description = "购买时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime startTime;

    @Schema(description = "到期时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime endTime;

    @Schema(description = "置顶状态")
    private String isTop;

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

    @Schema(description = "描述")
    private String comments;

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

    @Schema(description = "可见用户")
    private String userIds;

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

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

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

    @Schema(description = "应用名称")
    @TableField(exist = false)
    private String tenantName;

    @Schema(description = "应用图标")
    @TableField(exist = false)
    private String logo;

    @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;

}
