package top.continew.admin.business.model.entity;

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

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableField;
import top.continew.starter.extension.crud.model.entity.BaseDO;

/**
 * 换哒-文件资源实体
 *
 * @author 王志维
 * @since 2025/12/23 16:53
 */
@Data
@TableName("t_huanda_resource")
public class HuandaResourceDO extends BaseDO {

    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 用户ID
     */
    private String userId;

    /**
     * 资源地址
     */
    private String url;

    /**
     * 资源类型：1.服装，2模特，3自定义服装，4.自定义背景
     */
    private Integer resourceType;

    @Schema(description = "人物图片年龄")
    private String age;

    @Schema(description = "人物图片性别：男，女")
    private String gender;

    @Schema(description = "人物图片区域")
    private String region;

    // 显式忽略审计字段，防止插入时出错
    @TableField(exist = false)
    private Long createUser;

    @TableField(exist = false)
    private java.time.LocalDateTime createTime;

    @TableField(exist = false)
    private Long updateUser;

    @TableField(exist = false)
    private java.time.LocalDateTime updateTime;
}