package com.gxwebsoft.common.system.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableLogic;
import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 插件扩展
 *
 * @author 科技小王子
 * @since 2023-10-12 09:53:07
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Schema(name = "Plug对象", description = "插件扩展")
@TableName("sys_plug")
public class Plug implements Serializable {
    private static final long serialVersionUID = 1L;

    @Schema(description = "插件id")
    @TableId(value = "plug_id", type = IdType.AUTO)
    private Integer plugId;

    @Schema(description = "菜单名称")
    private String plugName;

    @Schema(description = "插件ID")
    private String plugCode;

    @Schema(description = "插件类型 10后台模块")
    private Integer plugType;

    @Schema(description = "排序号")
    private Integer sortNumber;

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

    @Schema(description = "评分")
    private BigDecimal score;

    @Schema(description = "下载次数")
    private Integer clicks;

    @Schema(description = "安装次数")
    private Integer installs;

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

    @Schema(description = "插件详情")
    private String content;

    @Schema(description = "状态, 10待审核 20已通过 30已驳回")
    private Integer status;

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

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

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

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

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

}
