import { NodeConnectionTypes, type INodeType } from '../Interface' export const databaseNode: INodeType = { version: ['1'], displayName: '数据查询', name: 'database', description: '通过数据库查询数据', icon: 'lucide:database-zap', iconColor: '#64dc34', inputs: [NodeConnectionTypes.main], outputs: [NodeConnectionTypes.main], validate: (data: any) => { return !data?.table && '请选择数据表!' }, // 业务数据 schema: { appAgentId: '', parentId: '', position: { x: 20, y: 30 }, width: 96, height: 96, selected: false, nodeType: 'database', zIndex: 1, data: {} } }