package com.czg.system.entity;

import com.mybatisflex.annotation.Column;
import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.Table;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

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

/**
 *  实体类。
 *
 * @author mac
 * @since 2025-02-07
 */
@Data
@Accessors(chain = true)

@NoArgsConstructor
@AllArgsConstructor
@Table("sys_params")
public class SysParams implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 参数编码
     */
    @Id
    private String paramCode;

    /**
     * 参数值
     */
    private String paramValue;

    /**
     * 类型   0：系统参数   1：非系统参数
     */
    private String paramType;

    /**
     * 备注
     */
    private String remark;

    /**
     * 创建者id
     */
    private Long createUserId;

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

    /**
     * 更新者id
     */
    private Long updateUserId;

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

}
