package cn.stylefeng.team.meta.modular.pojo.request;

import cn.stylefeng.roses.kernel.rule.annotation.ChineseDescription;
import cn.stylefeng.roses.kernel.rule.pojo.request.BaseRequest;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.EqualsAndHashCode;

@EqualsAndHashCode(callSuper = true)
@Data
public class SqlImportRequest extends BaseRequest {

    @ChineseDescription("所属业务分类id")
    @NotNull(message = "所属业务分类id不能为空")
    private Long businessCategoryId;

    @ChineseDescription("所属业务id")
    @NotNull(message = "所属业务id不能为空")
    private Long businessId;

    @ChineseDescription("数据库类型")
    @NotBlank(message = "数据库类型不能为空")
    private String dbType;

    @ChineseDescription("sql语句")
    @NotBlank(message = "sql语句不能为空")
    private String createTableSql;

}
