package com.czg.system.entity;

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

import java.io.Serial;

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

/**
 *  实体类。
 *
 * @author ww
 * @since 2025-03-27
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Table("sql_script")
public class SqlScript implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @Id
    private Long id;

    /**
     * 表名
     */
    private String tableName;

    /**
     * 是否已执行 
     */
    private Integer isUp;

    /**
     * 该次执行描述
     */
    private String message;

    /**
     * 执行的 sql语句
     */
    private String sqls;

    /**
     * 操作日期 yyMMdd
     */
    private String tradeDay;

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

}
