sqlData.js 1.47 KB
/*
 * @Date: 2025-03-12 21:23:48
 * @LastEditors: hookehuyr hookehuyr@gmail.com
 * @LastEditTime: 2025-03-12 23:15:14
 * @FilePath: /logic-flow2/src/views/adv-node/anchor/sqlData.js
 * @Description: 文件描述
 */
const data = {
  nodes: [
    {
      id: 'node_id_1',
      type: 'sql-node',
      x: 100,
      y: 100,
      properties: {
        tableName: 'Users',
        fields: [
          {
            key: 'id',
            type: 'string',
          },
          {
            key: 'name',
            type: 'string',
          },
          {
            key: 'age',
            type: 'integer',
          },
        ],
      },
    },
    {
      id: 'node_id_2',
      type: 'sql-node',
      x: 400,
      y: 200,
      properties: {
        tableName: 'Settings',
        fields: [
          {
            key: 'id',
            type: 'string',
          },
          {
            key: 'key',
            type: 'integer',
          },
          {
            key: 'value',
            type: 'string',
          },
        ],
      },
    },
    {
      id: 'node_id_3',
      type: 'sql-node',
      x: 400,
      y: 400,
      properties: {
        tableName: 'Settings',
        fields: [
          {
            key: 'id',
            type: 'string',
          },
          {
            key: 'key',
            type: 'integer',
          },
          {
            key: 'value',
            type: 'string',
          },
        ],
      },
    },
  ],
  edges: [],
};
export default data;