package com.liquidnet.service.kylin.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 艺人管理表
 * </p>
 *
 * @author liquidnet
 * @since 2026-02-04
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class KylinArtist implements Serializable, Cloneable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "mid", type = IdType.AUTO)
    private Integer mid;

    /**
     * 艺人ID
     */
    private String artistId;

    /**
     * 艺人名称
     */
    private String artistName;

    /**
     * 艺人类型 1音乐人 2艺术家 3厂牌 4品牌方
     */
    private Integer artistType;

    /**
     * 艺人头像
     */
    private String avatarUrl;

    /**
     * 艺人简介
     */
    private String introduction;

    /**
     * 状态 1启用 0禁用
     */
    private Integer status;

    /**
     * 排序权重
     */
    private Integer sort;

    /**
     * 创建时间
     */
    private LocalDateTime createdAt;

    /**
     * 修改时间
     */
    private LocalDateTime updatedAt;

    private static final KylinArtist obj = new KylinArtist();
    
    public static KylinArtist getNew() {
        try {
            return (KylinArtist) obj.clone();
        } catch (CloneNotSupportedException e) {
            return new KylinArtist();
        }
    }
}
