package com.czg.account.entity;

import com.mybatisflex.annotation.Column;
import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.KeyType;
import com.mybatisflex.annotation.Table;
import lombok.Data;

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

/**
 * 图片分类
 *
 * @author Tankaikai tankaikai@aliyun.com
 * @since 1.0 2025-02-26
 */
@Data
@Table("tb_picture_classify")
public class PictureClassify implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @Id(keyType = KeyType.Auto)
    private Long id;
    /**
     * 店铺id
     */
    private Long shopId;
    /**
     * 分类名称
     */
    private String name;
    /**
     * 排序值
     */
    private Integer sort;
    /**
     * 单位来源 1-系统预设 0-商家创建
     */
    private Integer isSystem;
    /**
     * 创建时间
     */
    @Column(onInsertValue = "now()")
    private LocalDateTime createTime;
    /**
     * 逻辑删除 1-是 0-否
     */
    @Column(onInsertValue = "0")
    private Integer isDel;
}