package com.aircraft.modules.article.domain;

import com.baomidou.mybatisplus.annotation.*;
import com.aircraft.base.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;

/**
 * <p>
 * 素材表
 * </p>
 *
 * @author cli
 * @since 2025-07-10
 */
@Data
@TableName("cp_material")
public class CpMaterial {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "素材名称")
    private String name;

    @ApiModelProperty(value = "素材存储路径")
    private String path;

    @ApiModelProperty(value = "素材类型：1-轮播图，2-宣传视频")
    private Integer type;

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

    @ApiModelProperty(value = "链接地址")
    private String url;

    @TableField(fill = FieldFill.INSERT)
    @ApiModelProperty(value = "创建者，默认null")
    private String createBy;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    @ApiModelProperty(value = "更新者，默认null")
    private String updateBy;

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

    @ApiModelProperty(value = "更新时间")
    private LocalDateTime updateTime;

    @ApiModelProperty(value = "删除标记：“1”已删除，“0”正常")
    private Integer delFlag;

}
