package com.czg.system.entity;

import com.mybatisflex.annotation.Column;
import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.KeyType;
import com.mybatisflex.annotation.Table;
import java.io.Serializable;
import java.math.BigInteger;
import java.time.LocalDateTime;

import java.io.Serial;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 类目信息表 实体类。
 *
 * @author ww
 * @since 2026-01-06
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Table("sys_category_info")
public class SysCategoryInfo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 主键ID
     */
    @Id(keyType = KeyType.Auto)
    private BigInteger id;

    /**
     * 一级类目code
     */
    private String firstCategoryCode;
    /**
     * 一级类目
     */
    private String firstCategory;

    /**
     * 二级类目code
     */
    private String secondCategoryCode;

    /**
     * 二级类目
     */
    private String secondCategory;

    /**
     * 适用商家说明
     */
    private String applicableMerchant;

    /**
     * 特殊资质（为空则无需提供）
     */
    private String specialQualification;

    /**
     * 创建时间
     */
    @Column(onInsertValue = "now()")
    private LocalDateTime createTime;

    /**
     * 更新时间
     */
    @Column(onInsertValue = "now()", onUpdateValue = "now()")
    private LocalDateTime updateTime;

}
