package com.ai.da.mapper.primary.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * Attendance
 *
 * @author easy-generator
 * @since 2022-06-13
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_sys_file")
public class SysFile implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 一级类型 accessories  icon  Images
     */
    private String level1Type;

    /**
     * 二级类型 目前有outwear,dress,blouse,skirt,trousers Shoes Hairstyle Earring
     */
    private String level2Type;

    private String level3Type;

    /**
     * 名字
     */
    private String name;

    /**
     * md5值
     */
    private String md5;

    /**
     * 路径 绝对路径
     */
    private String url;

    /**
     * 创建时间
     */
    private Date createDate;

    /**
     * 更新时间
     */
    private Date updateDate;

    public SysFile() {
    }

    public SysFile(String level1Type, String level2Type, String name, String md5, String url, Date createDate) {
        this.level1Type = level1Type;
        this.level2Type = level2Type;
        this.name = name;
        this.md5 = md5;
        this.url = url;
        this.createDate = createDate;
    }
}
