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.time.LocalDateTime;

import java.io.Serial;

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

/**
 * 小程序页面路径 实体类。
 *
 * @author mac
 * @since 2025-02-12
 */
@Data

@NoArgsConstructor
@AllArgsConstructor
@Table("tb_mini_app_pages")
public class MiniAppPages implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 自增id
     */
    @Id(keyType = KeyType.Auto)
    private Long id;

    /**
     * icon图片
     */
    private String icon;

    /**
     * 页面名称
     */
    private String name;

    /**
     * 页面路径
     */
    private String path;

    /**
     * 页面描述
     */
    private String description;

    /**
     * 页面状态：0未启用，1已启用
     */
    private Integer status;

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

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

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

}
