package cn.fateverse.query.entity;

import cn.fateverse.common.core.annotaion.EnableAutoField;
import cn.fateverse.common.core.entity.BaseEntity;
import cn.fateverse.query.enums.DynamicSourceEnum;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author Clay
 * @date 2023-07-16
 */
@Data
@Builder
@EnableAutoField
@AllArgsConstructor
@NoArgsConstructor
public class Table extends BaseEntity {

    /**
     * 表id
     */
    private Long tableId;

    /**
     * 数据源id
     */
    private Long dataSourceId;

    /**
     * 数据源类型
     */
    private DynamicSourceEnum dataSourceType;

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

    /**
     * 表注释
     */
    private String tableComment;


}
