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 cn.stylefeng.team.meta.api.pojo.table.TableAlterLog;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.List;

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

    @ChineseDescription("模型定义id")
    @NotNull(message = "模型定义id不能为空")
    private Long definitionId;

    @NotEmpty(message = "修改表记录不能为空")
    @ChineseDescription("修改表记录")
    private List<TableAlterLog> tableAlterLogList;

}
