package cn.stylefeng.team.meta.api.pojo.db.request;

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 GenDatabaseTableRequest extends BaseRequest {

    @NotNull(message = "表信息id不能为空", groups = {edit.class, delete.class, detail.class})
    private Long tableId;

    @NotNull(message = "数据库id不能为空", groups = {add.class})
    private Long databaseId;

    @NotBlank(message = "表名称不能为空", groups = {add.class, edit.class})
    private String tableName;

    private String description;
}
