package com.cpop.core.base.table;

import com.cpop.core.base.entity.BaseEntity;
import com.cpop.core.base.entity.BaseInsertListener;
import com.cpop.core.base.entity.BaseUpdateListener;
import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.Table;
import lombok.*;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * 系统配置表 实体类。
 *
 * @author DB
 * @since 2023-08-11
 */
@Data
@EqualsAndHashCode(callSuper=false)
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@Table(value = "cp_sys_config", onInsert = BaseInsertListener.class, onUpdate = BaseUpdateListener.class, mapperGenerateEnable = false)
public class SysConfig extends BaseEntity implements Serializable {

    /**
     * 参数键
     */
    @Id
    private String configKey;

    /**
     * 参数名
     */
    private String configName;

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

    /**
     * 系统内置(0否1是)
     */
    private Boolean configType;

    /**
     * 备注
     */
    private String remarks;

}
