>>>pipeline_explain.txt
=== AddChatMessage
ID:          default_catalog.default_database.AddChatMessage
Type:        stream
Stage:       flink
Primary key: _uuid
Timestamp:   event_time
Row count:   ~1e8
---
Schema:
 - _uuid: VARCHAR(2147483647) CHARACTER SET "UTF-16LE" NOT NULL
 - role: VARCHAR(2147483647) CHARACTER SET "UTF-16LE" NOT NULL
 - content: VARCHAR(2147483647) CHARACTER SET "UTF-16LE" NOT NULL
 - name: VARCHAR(2147483647) CHARACTER SET "UTF-16LE"
 - context: RecordType:peek_no_expand(INTEGER customerid) NOT NULL
 - event_time: TIMESTAMP_LTZ(3) *ROWTIME*
Inputs:
 - default_catalog.default_database.AddChatMessage__base
Annotations:
 - features: DENORMALIZE (feature)
 - stream-root: AddChatMessage

=== ApplicationAlert
ID:          default_catalog.default_database.ApplicationAlert
Type:        stream
Stage:       flink
Primary key: _uuid
Timestamp:   -
Row count:   ~4e6
---
Schema:
 - _uuid: VARCHAR(2147483647) CHARACTER SET "UTF-16LE" NOT NULL
 - id: BIGINT NOT NULL
 - customer_id: BIGINT NOT NULL
 - loan_type_id: BIGINT NOT NULL
 - max_amount: DOUBLE NOT NULL
 - min_amount: DOUBLE NOT NULL
 - amount: DOUBLE NOT NULL
Inputs:
 - default_catalog.default_database.ApplicationStatus
Annotations:
 - stream-root: ApplicationUpdates

=== ApplicationStatus
ID:          default_catalog.default_database.ApplicationStatus
Type:        stream
Stage:       flink
Primary key: _uuid
Timestamp:   event_time
Row count:   ~8e7
---
Schema:
 - _uuid: VARCHAR(2147483647) CHARACTER SET "UTF-16LE" NOT NULL
 - status: VARCHAR(2147483647) CHARACTER SET "UTF-16LE" NOT NULL
 - message: VARCHAR(2147483647) CHARACTER SET "UTF-16LE"
 - event_time: TIMESTAMP_LTZ(3) *ROWTIME*
 - id: BIGINT NOT NULL
 - customer_id: BIGINT NOT NULL
 - loan_type_id: BIGINT NOT NULL
 - amount: DOUBLE NOT NULL
 - duration: BIGINT NOT NULL
 - max_amount: DOUBLE NOT NULL
 - min_amount: DOUBLE NOT NULL
Inputs:
 - default_catalog.default_database.ApplicationUpdates
 - default_catalog.default_database.Applications
 - default_catalog.default_database.LoanTypes
Annotations:
 - stream-root: ApplicationUpdates

=== ApplicationUpdates
ID:          default_catalog.default_database.ApplicationUpdates
Type:        stream
Stage:       flink
Primary key: _uuid
Timestamp:   event_time
Row count:   ~1e8
---
Schema:
 - _uuid: VARCHAR(2147483647) CHARACTER SET "UTF-16LE" NOT NULL
 - loan_application_id: BIGINT NOT NULL
 - status: VARCHAR(2147483647) CHARACTER SET "UTF-16LE" NOT NULL
 - message: VARCHAR(2147483647) CHARACTER SET "UTF-16LE"
 - event_time: TIMESTAMP_LTZ(3) *ROWTIME*
Inputs:
 - default_catalog.default_database.ApplicationUpdates__base
Annotations:
 - stream-root: ApplicationUpdates

=== Applications
ID:          default_catalog.default_database.Applications
Type:        state
Stage:       flink
Primary key: id
Timestamp:   updated_at
Row count:   ~2e7
---
Schema:
 - id: BIGINT NOT NULL
 - customer_id: BIGINT NOT NULL
 - loan_type_id: BIGINT NOT NULL
 - amount: DOUBLE NOT NULL
 - duration: BIGINT NOT NULL
 - application_date: TIMESTAMP_WITH_LOCAL_TIME_ZONE(3) NOT NULL
 - updated_at: TIMESTAMP_LTZ(3) *ROWTIME* NOT NULL
Inputs:
 - default_catalog.default_database.ApplicationsStream
Annotations:
 - mostRecentDistinct: true
 - stream-root: ApplicationsStream

=== ApplicationsStream
ID:          default_catalog.default_database.ApplicationsStream
Type:        stream
Stage:       flink
Primary key: id, updated_at
Timestamp:   updated_at
Row count:   ~1e8
---
Schema:
 - id: BIGINT NOT NULL
 - customer_id: BIGINT NOT NULL
 - loan_type_id: BIGINT NOT NULL
 - amount: DOUBLE NOT NULL
 - duration: BIGINT NOT NULL
 - application_date: TIMESTAMP_WITH_LOCAL_TIME_ZONE(3) NOT NULL
 - updated_at: TIMESTAMP_LTZ(3) *ROWTIME* NOT NULL
Inputs:
 - default_catalog.sources.ApplicationsStream
Annotations:
 - stream-root: ApplicationsStream

=== CustomerChatMessage
ID:          default_catalog.default_database.CustomerChatMessage
Type:        stream
Stage:       flink
Primary key: uuid
Timestamp:   timestamp
Row count:   ~1e8
---
Schema:
 - role: VARCHAR(2147483647) CHARACTER SET "UTF-16LE" NOT NULL
 - content: VARCHAR(2147483647) CHARACTER SET "UTF-16LE" NOT NULL
 - name: VARCHAR(2147483647) CHARACTER SET "UTF-16LE"
 - customerid: INTEGER
 - timestamp: TIMESTAMP_LTZ(3) *ROWTIME*
 - uuid: VARCHAR(2147483647) CHARACTER SET "UTF-16LE" NOT NULL
Inputs:
 - default_catalog.default_database.AddChatMessage
Annotations:
 - stream-root: AddChatMessage
 - sort: [4 DESC-nulls-last]

=== Customers
ID:          default_catalog.default_database.Customers
Type:        state
Stage:       flink
Primary key: id
Timestamp:   updated_at
Row count:   ~2e7
---
Schema:
 - id: BIGINT NOT NULL
 - first_name: VARCHAR(2147483647) CHARACTER SET "UTF-16LE" NOT NULL
 - last_name: VARCHAR(2147483647) CHARACTER SET "UTF-16LE" NOT NULL
 - email: VARCHAR(2147483647) CHARACTER SET "UTF-16LE" NOT NULL
 - phone: VARCHAR(2147483647) CHARACTER SET "UTF-16LE" NOT NULL
 - address: VARCHAR(2147483647) CHARACTER SET "UTF-16LE" NOT NULL
 - date_of_birth: VARCHAR(2147483647) CHARACTER SET "UTF-16LE" NOT NULL
 - updated_at: TIMESTAMP_LTZ(3) *ROWTIME* NOT NULL
Inputs:
 - default_catalog.default_database.CustomersStream
Annotations:
 - mostRecentDistinct: true
 - stream-root: CustomersStream

=== CustomersStream
ID:          default_catalog.default_database.CustomersStream
Type:        stream
Stage:       flink
Primary key: id, updated_at
Timestamp:   updated_at
Row count:   ~1e8
---
Schema:
 - id: BIGINT NOT NULL
 - first_name: VARCHAR(2147483647) CHARACTER SET "UTF-16LE" NOT NULL
 - last_name: VARCHAR(2147483647) CHARACTER SET "UTF-16LE" NOT NULL
 - email: VARCHAR(2147483647) CHARACTER SET "UTF-16LE" NOT NULL
 - phone: VARCHAR(2147483647) CHARACTER SET "UTF-16LE" NOT NULL
 - address: VARCHAR(2147483647) CHARACTER SET "UTF-16LE" NOT NULL
 - date_of_birth: VARCHAR(2147483647) CHARACTER SET "UTF-16LE" NOT NULL
 - updated_at: TIMESTAMP_LTZ(3) *ROWTIME* NOT NULL
Inputs:
 - default_catalog.sources.CustomersStream
Annotations:
 - stream-root: CustomersStream

=== LoanTypes
ID:          default_catalog.default_database.LoanTypes
Type:        state
Stage:       flink
Primary key: id
Timestamp:   updated_at
Row count:   ~2e7
---
Schema:
 - id: BIGINT NOT NULL
 - name: VARCHAR(2147483647) CHARACTER SET "UTF-16LE" NOT NULL
 - description: VARCHAR(2147483647) CHARACTER SET "UTF-16LE" NOT NULL
 - interest_rate: DOUBLE NOT NULL
 - max_amount: DOUBLE NOT NULL
 - min_amount: DOUBLE NOT NULL
 - max_duration: BIGINT NOT NULL
 - min_duration: BIGINT NOT NULL
 - updated_at: TIMESTAMP_LTZ(3) *ROWTIME* NOT NULL
Inputs:
 - default_catalog.default_database.LoanTypesStream
Annotations:
 - mostRecentDistinct: true
 - stream-root: LoanTypesStream

=== LoanTypesStream
ID:          default_catalog.default_database.LoanTypesStream
Type:        stream
Stage:       flink
Primary key: id, updated_at
Timestamp:   updated_at
Row count:   ~1e8
---
Schema:
 - id: BIGINT NOT NULL
 - name: VARCHAR(2147483647) CHARACTER SET "UTF-16LE" NOT NULL
 - description: VARCHAR(2147483647) CHARACTER SET "UTF-16LE" NOT NULL
 - interest_rate: DOUBLE NOT NULL
 - max_amount: DOUBLE NOT NULL
 - min_amount: DOUBLE NOT NULL
 - max_duration: BIGINT NOT NULL
 - min_duration: BIGINT NOT NULL
 - updated_at: TIMESTAMP_LTZ(3) *ROWTIME* NOT NULL
Inputs:
 - default_catalog.sources.LoanTypesStream
Annotations:
 - stream-root: LoanTypesStream

=== ApplicationsStream
ID:          default_catalog.sources.ApplicationsStream
Type:        stream
Stage:       flink
Primary key: id, updated_at
Timestamp:   updated_at
Row count:   ~1e8
---
Schema:
 - id: BIGINT NOT NULL
 - customer_id: BIGINT NOT NULL
 - loan_type_id: BIGINT NOT NULL
 - amount: DOUBLE NOT NULL
 - duration: BIGINT NOT NULL
 - application_date: TIMESTAMP_WITH_LOCAL_TIME_ZONE(3) NOT NULL
 - updated_at: TIMESTAMP_LTZ(3) *ROWTIME* NOT NULL
Inputs:
 - default_catalog.sources.ApplicationsStream__base
Annotations:
 - stream-root: ApplicationsStream

=== CustomersStream
ID:          default_catalog.sources.CustomersStream
Type:        stream
Stage:       flink
Primary key: id, updated_at
Timestamp:   updated_at
Row count:   ~1e8
---
Schema:
 - id: BIGINT NOT NULL
 - first_name: VARCHAR(2147483647) CHARACTER SET "UTF-16LE" NOT NULL
 - last_name: VARCHAR(2147483647) CHARACTER SET "UTF-16LE" NOT NULL
 - email: VARCHAR(2147483647) CHARACTER SET "UTF-16LE" NOT NULL
 - phone: VARCHAR(2147483647) CHARACTER SET "UTF-16LE" NOT NULL
 - address: VARCHAR(2147483647) CHARACTER SET "UTF-16LE" NOT NULL
 - date_of_birth: VARCHAR(2147483647) CHARACTER SET "UTF-16LE" NOT NULL
 - updated_at: TIMESTAMP_LTZ(3) *ROWTIME* NOT NULL
Inputs:
 - default_catalog.sources.CustomersStream__base
Annotations:
 - stream-root: CustomersStream

=== LoanTypesStream
ID:          default_catalog.sources.LoanTypesStream
Type:        stream
Stage:       flink
Primary key: id, updated_at
Timestamp:   updated_at
Row count:   ~1e8
---
Schema:
 - id: BIGINT NOT NULL
 - name: VARCHAR(2147483647) CHARACTER SET "UTF-16LE" NOT NULL
 - description: VARCHAR(2147483647) CHARACTER SET "UTF-16LE" NOT NULL
 - interest_rate: DOUBLE NOT NULL
 - max_amount: DOUBLE NOT NULL
 - min_amount: DOUBLE NOT NULL
 - max_duration: BIGINT NOT NULL
 - min_duration: BIGINT NOT NULL
 - updated_at: TIMESTAMP_LTZ(3) *ROWTIME* NOT NULL
Inputs:
 - default_catalog.sources.LoanTypesStream__base
Annotations:
 - stream-root: LoanTypesStream

>>>flink-sql-no-functions.sql
CREATE DATABASE IF NOT EXISTS `sources`;
USE `sources`;
CREATE TEMPORARY TABLE `CustomersStream__schema` (
  `id` BIGINT NOT NULL,
  `first_name` VARCHAR(2147483647) CHARACTER SET `UTF-16LE` NOT NULL,
  `last_name` VARCHAR(2147483647) CHARACTER SET `UTF-16LE` NOT NULL,
  `email` VARCHAR(2147483647) CHARACTER SET `UTF-16LE` NOT NULL,
  `phone` VARCHAR(2147483647) CHARACTER SET `UTF-16LE` NOT NULL,
  `address` VARCHAR(2147483647) CHARACTER SET `UTF-16LE` NOT NULL,
  `date_of_birth` VARCHAR(2147483647) CHARACTER SET `UTF-16LE` NOT NULL,
  `updated_at` TIMESTAMP(3) WITH LOCAL TIME ZONE NOT NULL
)
WITH (
  'connector' = 'datagen'
);
CREATE TABLE `CustomersStream` (
  PRIMARY KEY (`id`, `updated_at`) NOT ENFORCED,
  WATERMARK FOR `updated_at` AS `updated_at` - INTERVAL '0.001' SECOND
)
WITH (
  'format' = 'flexible-json',
  'path' = '${DATA_PATH}/customers.jsonl',
  'source.monitor-interval' = '10 sec',
  'connector' = 'filesystem'
)
LIKE `CustomersStream__schema`;
CREATE TEMPORARY TABLE `ApplicationUpdates__schema` (
  `loan_application_id` BIGINT NOT NULL,
  `status` VARCHAR(2147483647) CHARACTER SET `UTF-16LE` NOT NULL,
  `message` VARCHAR(2147483647) CHARACTER SET `UTF-16LE` NOT NULL,
  `event_time` TIMESTAMP(3) WITH LOCAL TIME ZONE NOT NULL
)
WITH (
  'connector' = 'filesystem',
  'format' = 'flexible-json',
  'path' = '${DATA_PATH}/application_updates.jsonl'
);
CREATE TABLE `ApplicationUpdates` (
  WATERMARK FOR `event_time` AS `event_time` - INTERVAL '0.001' SECOND
)
LIKE `ApplicationUpdates__schema`;
CREATE TEMPORARY TABLE `ApplicationsStream__schema` (
  `id` BIGINT NOT NULL,
  `customer_id` BIGINT NOT NULL,
  `loan_type_id` BIGINT NOT NULL,
  `amount` DOUBLE NOT NULL,
  `duration` BIGINT NOT NULL,
  `application_date` TIMESTAMP(3) WITH LOCAL TIME ZONE NOT NULL,
  `updated_at` TIMESTAMP(3) WITH LOCAL TIME ZONE NOT NULL
)
WITH (
  'connector' = 'datagen'
);
CREATE TABLE `ApplicationsStream` (
  PRIMARY KEY (`id`, `updated_at`) NOT ENFORCED,
  WATERMARK FOR `updated_at` AS `updated_at` - INTERVAL '0.001' SECOND
)
WITH (
  'format' = 'flexible-json',
  'path' = '${DATA_PATH}/applications.jsonl',
  'source.monitor-interval' = '10 sec',
  'connector' = 'filesystem'
)
LIKE `ApplicationsStream__schema`;
CREATE TEMPORARY TABLE `LoanTypesStream__schema` (
  `id` BIGINT NOT NULL,
  `name` VARCHAR(2147483647) CHARACTER SET `UTF-16LE` NOT NULL,
  `description` VARCHAR(2147483647) CHARACTER SET `UTF-16LE` NOT NULL,
  `interest_rate` DOUBLE NOT NULL,
  `max_amount` DOUBLE NOT NULL,
  `min_amount` DOUBLE NOT NULL,
  `max_duration` BIGINT NOT NULL,
  `min_duration` BIGINT NOT NULL,
  `updated_at` TIMESTAMP(3) WITH LOCAL TIME ZONE NOT NULL
)
WITH (
  'connector' = 'datagen'
);
CREATE TABLE `LoanTypesStream` (
  PRIMARY KEY (`id`, `updated_at`) NOT ENFORCED,
  WATERMARK FOR `updated_at` AS `updated_at` - INTERVAL '0.001' SECOND
)
WITH (
  'format' = 'flexible-json',
  'path' = '${DATA_PATH}/loan_types.jsonl',
  'source.monitor-interval' = '10 sec',
  'connector' = 'filesystem'
)
LIKE `LoanTypesStream__schema`;
USE CATALOG `default_catalog`;
CREATE DATABASE IF NOT EXISTS `default_database`;
USE `default_database`;
CREATE TABLE `ApplicationUpdates` (
  `_uuid` STRING NOT NULL,
  `loan_application_id` BIGINT NOT NULL,
  `status` STRING NOT NULL,
  `message` STRING,
  `event_time` TIMESTAMP_LTZ(3) METADATA FROM 'timestamp',
  WATERMARK FOR `event_time` AS `event_time` - INTERVAL '0.0' SECOND
)
WITH (
  'connector' = 'kafka',
  'format' = 'flexible-json',
  'properties.auto.offset.reset' = 'earliest',
  'properties.bootstrap.servers' = '${KAFKA_BOOTSTRAP_SERVERS}',
  'properties.compression.type' = 'zstd',
  'properties.group.id' = '${KAFKA_GROUP_ID}',
  'properties.isolation.level' = 'read_committed',
  'topic' = 'ApplicationUpdates'
);
CREATE TABLE `AddChatMessage` (
  `_uuid` STRING NOT NULL,
  `role` STRING NOT NULL,
  `content` STRING NOT NULL,
  `name` STRING,
  `context` ROW(`customerid` INTEGER) NOT NULL,
  `event_time` TIMESTAMP_LTZ(3) METADATA FROM 'timestamp',
  WATERMARK FOR `event_time` AS `event_time` - INTERVAL '0.0' SECOND
)
WITH (
  'connector' = 'kafka',
  'format' = 'flexible-json',
  'properties.auto.offset.reset' = 'earliest',
  'properties.bootstrap.servers' = '${KAFKA_BOOTSTRAP_SERVERS}',
  'properties.compression.type' = 'zstd',
  'properties.group.id' = '${KAFKA_GROUP_ID}',
  'topic' = 'AddChatMessage'
);
CREATE VIEW `CustomersStream`
AS
SELECT *
FROM `sources`.`CustomersStream`;
CREATE VIEW `ApplicationsStream`
AS
SELECT *
FROM `sources`.`ApplicationsStream`;
CREATE VIEW `LoanTypesStream`
AS
SELECT *
FROM `sources`.`LoanTypesStream`;
CREATE VIEW `Customers`
AS
SELECT `id`, `first_name`, `last_name`, `email`, `phone`, `address`, `date_of_birth`, `updated_at`
FROM (SELECT `id`, `first_name`, `last_name`, `email`, `phone`, `address`, `date_of_birth`, `updated_at`, ROW_NUMBER() OVER (PARTITION BY `id` ORDER BY `updated_at` DESC NULLS LAST) AS `__sqrlinternal_rownum`
  FROM `default_catalog`.`default_database`.`CustomersStream`) AS `t`
WHERE `__sqrlinternal_rownum` = 1;
CREATE VIEW `Applications`
AS
SELECT `id`, `customer_id`, `loan_type_id`, `amount`, `duration`, `application_date`, `updated_at`
FROM (SELECT `id`, `customer_id`, `loan_type_id`, `amount`, `duration`, `application_date`, `updated_at`, ROW_NUMBER() OVER (PARTITION BY `id` ORDER BY `updated_at` DESC NULLS LAST) AS `__sqrlinternal_rownum`
  FROM `default_catalog`.`default_database`.`ApplicationsStream`) AS `t`
WHERE `__sqrlinternal_rownum` = 1;
CREATE VIEW `LoanTypes`
AS
SELECT `id`, `name`, `description`, `interest_rate`, `max_amount`, `min_amount`, `max_duration`, `min_duration`, `updated_at`
FROM (SELECT `id`, `name`, `description`, `interest_rate`, `max_amount`, `min_amount`, `max_duration`, `min_duration`, `updated_at`, ROW_NUMBER() OVER (PARTITION BY `id` ORDER BY `updated_at` DESC NULLS LAST) AS `__sqrlinternal_rownum`
  FROM `default_catalog`.`default_database`.`LoanTypesStream`) AS `t`
WHERE `__sqrlinternal_rownum` = 1;
CREATE VIEW `ApplicationStatus`
AS
SELECT `u`.`_uuid`, `u`.`status`, `u`.`message`, `u`.`event_time`, `a`.`id`, `a`.`customer_id`, `a`.`loan_type_id`, `a`.`amount`, `a`.`duration`, `t`.`max_amount`, `t`.`min_amount`
FROM `ApplicationUpdates` AS `u`
 INNER JOIN `Applications` FOR SYSTEM_TIME AS OF `u`.`event_time` AS `a` ON `a`.`id` = `u`.`loan_application_id`
 INNER JOIN `LoanTypes` FOR SYSTEM_TIME AS OF `u`.`event_time` AS `t` ON `t`.`id` = `a`.`loan_type_id`;
CREATE VIEW `ApplicationAlert`
AS
SELECT `_uuid`, `id`, `customer_id`, `loan_type_id`, `max_amount`, `min_amount`, `amount`
FROM `ApplicationStatus` AS `a`
WHERE `status` = 'underwriting' AND (`amount` > `max_amount` OR `amount` < `min_amount`);
CREATE VIEW `CustomerChatMessage`
AS
SELECT `role`, `content`, `name`, `c`.`context`.`customerid`, `event_time` AS `timestamp`, `_uuid` AS `uuid`
FROM `AddChatMessage` AS `c`;
CREATE TABLE `AddChatMessage_1` (
  `_uuid` VARCHAR(2147483647) CHARACTER SET `UTF-16LE` NOT NULL,
  `role` VARCHAR(2147483647) CHARACTER SET `UTF-16LE` NOT NULL,
  `content` VARCHAR(2147483647) CHARACTER SET `UTF-16LE` NOT NULL,
  `name` VARCHAR(2147483647) CHARACTER SET `UTF-16LE`,
  `context` RAW('com.datasqrl.flinkrunner.stdlib.json.FlinkJsonType', 'AERjb20uZGF0YXNxcmwuZmxpbmtydW5uZXIuc3RkbGliLmpzb24uRmxpbmtKc29uVHlwZVNlcmlhbGl6ZXJTbmFwc2hvdAAAAAM='),
  `event_time` TIMESTAMP(3) WITH LOCAL TIME ZONE,
  PRIMARY KEY (`_uuid`) NOT ENFORCED
)
WITH (
  'connector' = 'jdbc-sqrl',
  'driver' = 'org.postgresql.Driver',
  'password' = '${POSTGRES_PASSWORD}',
  'sink.on-conflict.action' = 'IGNORE',
  'table-name' = 'AddChatMessage',
  'url' = 'jdbc:postgresql://${POSTGRES_AUTHORITY}',
  'username' = '${POSTGRES_USERNAME}'
);
CREATE TABLE `ApplicationAlert_2` (
  `_uuid` VARCHAR(2147483647) CHARACTER SET `UTF-16LE` NOT NULL,
  `id` BIGINT NOT NULL,
  `customer_id` BIGINT NOT NULL,
  `loan_type_id` BIGINT NOT NULL,
  `max_amount` DOUBLE NOT NULL,
  `min_amount` DOUBLE NOT NULL,
  `amount` DOUBLE NOT NULL,
  PRIMARY KEY (`_uuid`) NOT ENFORCED
)
WITH (
  'connector' = 'jdbc-sqrl',
  'driver' = 'org.postgresql.Driver',
  'password' = '${POSTGRES_PASSWORD}',
  'sink.on-conflict.action' = 'IGNORE',
  'table-name' = 'ApplicationAlert',
  'url' = 'jdbc:postgresql://${POSTGRES_AUTHORITY}',
  'username' = '${POSTGRES_USERNAME}'
);
CREATE TABLE `ApplicationStatus_3` (
  `_uuid` VARCHAR(2147483647) CHARACTER SET `UTF-16LE` NOT NULL,
  `status` VARCHAR(2147483647) CHARACTER SET `UTF-16LE` NOT NULL,
  `message` VARCHAR(2147483647) CHARACTER SET `UTF-16LE`,
  `event_time` TIMESTAMP(3) WITH LOCAL TIME ZONE,
  `id` BIGINT NOT NULL,
  `customer_id` BIGINT NOT NULL,
  `loan_type_id` BIGINT NOT NULL,
  `amount` DOUBLE NOT NULL,
  `duration` BIGINT NOT NULL,
  `max_amount` DOUBLE NOT NULL,
  `min_amount` DOUBLE NOT NULL,
  PRIMARY KEY (`_uuid`) NOT ENFORCED
)
WITH (
  'connector' = 'jdbc-sqrl',
  'driver' = 'org.postgresql.Driver',
  'password' = '${POSTGRES_PASSWORD}',
  'sink.on-conflict.action' = 'IGNORE',
  'table-name' = 'ApplicationStatus',
  'url' = 'jdbc:postgresql://${POSTGRES_AUTHORITY}',
  'username' = '${POSTGRES_USERNAME}'
);
CREATE TABLE `ApplicationUpdates_4` (
  `_uuid` VARCHAR(2147483647) CHARACTER SET `UTF-16LE` NOT NULL,
  `loan_application_id` BIGINT NOT NULL,
  `status` VARCHAR(2147483647) CHARACTER SET `UTF-16LE` NOT NULL,
  `message` VARCHAR(2147483647) CHARACTER SET `UTF-16LE`,
  `event_time` TIMESTAMP(3) WITH LOCAL TIME ZONE,
  PRIMARY KEY (`_uuid`) NOT ENFORCED
)
WITH (
  'connector' = 'jdbc-sqrl',
  'driver' = 'org.postgresql.Driver',
  'password' = '${POSTGRES_PASSWORD}',
  'sink.on-conflict.action' = 'IGNORE',
  'table-name' = 'ApplicationUpdates',
  'url' = 'jdbc:postgresql://${POSTGRES_AUTHORITY}',
  'username' = '${POSTGRES_USERNAME}'
);
CREATE TABLE `Applications_5` (
  `id` BIGINT NOT NULL,
  `customer_id` BIGINT NOT NULL,
  `loan_type_id` BIGINT NOT NULL,
  `amount` DOUBLE NOT NULL,
  `duration` BIGINT NOT NULL,
  `application_date` TIMESTAMP(3) WITH LOCAL TIME ZONE NOT NULL,
  `updated_at` TIMESTAMP(3) WITH LOCAL TIME ZONE NOT NULL,
  PRIMARY KEY (`id`) NOT ENFORCED
)
WITH (
  'connector' = 'jdbc-sqrl',
  'driver' = 'org.postgresql.Driver',
  'password' = '${POSTGRES_PASSWORD}',
  'sink.on-conflict.action' = 'TIMESTAMP',
  'sink.on-conflict.timestamp-column' = 'updated_at',
  'table-name' = 'Applications',
  'url' = 'jdbc:postgresql://${POSTGRES_AUTHORITY}',
  'username' = '${POSTGRES_USERNAME}'
);
CREATE TABLE `ApplicationsStream_6` (
  `id` BIGINT NOT NULL,
  `customer_id` BIGINT NOT NULL,
  `loan_type_id` BIGINT NOT NULL,
  `amount` DOUBLE NOT NULL,
  `duration` BIGINT NOT NULL,
  `application_date` TIMESTAMP(3) WITH LOCAL TIME ZONE NOT NULL,
  `updated_at` TIMESTAMP(3) WITH LOCAL TIME ZONE NOT NULL,
  PRIMARY KEY (`id`, `updated_at`) NOT ENFORCED
)
WITH (
  'connector' = 'jdbc-sqrl',
  'driver' = 'org.postgresql.Driver',
  'password' = '${POSTGRES_PASSWORD}',
  'sink.on-conflict.action' = 'IGNORE',
  'table-name' = 'ApplicationsStream',
  'url' = 'jdbc:postgresql://${POSTGRES_AUTHORITY}',
  'username' = '${POSTGRES_USERNAME}'
);
CREATE TABLE `CustomerChatMessage_7` (
  `role` VARCHAR(2147483647) CHARACTER SET `UTF-16LE` NOT NULL,
  `content` VARCHAR(2147483647) CHARACTER SET `UTF-16LE` NOT NULL,
  `name` VARCHAR(2147483647) CHARACTER SET `UTF-16LE`,
  `customerid` INTEGER,
  `timestamp` TIMESTAMP(3) WITH LOCAL TIME ZONE,
  `uuid` VARCHAR(2147483647) CHARACTER SET `UTF-16LE` NOT NULL,
  PRIMARY KEY (`uuid`) NOT ENFORCED
)
WITH (
  'connector' = 'jdbc-sqrl',
  'driver' = 'org.postgresql.Driver',
  'password' = '${POSTGRES_PASSWORD}',
  'sink.on-conflict.action' = 'IGNORE',
  'table-name' = 'CustomerChatMessage',
  'url' = 'jdbc:postgresql://${POSTGRES_AUTHORITY}',
  'username' = '${POSTGRES_USERNAME}'
);
CREATE TABLE `Customers_8` (
  `id` BIGINT NOT NULL,
  `first_name` VARCHAR(2147483647) CHARACTER SET `UTF-16LE` NOT NULL,
  `last_name` VARCHAR(2147483647) CHARACTER SET `UTF-16LE` NOT NULL,
  `email` VARCHAR(2147483647) CHARACTER SET `UTF-16LE` NOT NULL,
  `phone` VARCHAR(2147483647) CHARACTER SET `UTF-16LE` NOT NULL,
  `address` VARCHAR(2147483647) CHARACTER SET `UTF-16LE` NOT NULL,
  `date_of_birth` VARCHAR(2147483647) CHARACTER SET `UTF-16LE` NOT NULL,
  `updated_at` TIMESTAMP(3) WITH LOCAL TIME ZONE NOT NULL,
  PRIMARY KEY (`id`) NOT ENFORCED
)
WITH (
  'connector' = 'jdbc-sqrl',
  'driver' = 'org.postgresql.Driver',
  'password' = '${POSTGRES_PASSWORD}',
  'sink.on-conflict.action' = 'TIMESTAMP',
  'sink.on-conflict.timestamp-column' = 'updated_at',
  'table-name' = 'Customers',
  'url' = 'jdbc:postgresql://${POSTGRES_AUTHORITY}',
  'username' = '${POSTGRES_USERNAME}'
);
CREATE TABLE `CustomersStream_9` (
  `id` BIGINT NOT NULL,
  `first_name` VARCHAR(2147483647) CHARACTER SET `UTF-16LE` NOT NULL,
  `last_name` VARCHAR(2147483647) CHARACTER SET `UTF-16LE` NOT NULL,
  `email` VARCHAR(2147483647) CHARACTER SET `UTF-16LE` NOT NULL,
  `phone` VARCHAR(2147483647) CHARACTER SET `UTF-16LE` NOT NULL,
  `address` VARCHAR(2147483647) CHARACTER SET `UTF-16LE` NOT NULL,
  `date_of_birth` VARCHAR(2147483647) CHARACTER SET `UTF-16LE` NOT NULL,
  `updated_at` TIMESTAMP(3) WITH LOCAL TIME ZONE NOT NULL,
  PRIMARY KEY (`id`, `updated_at`) NOT ENFORCED
)
WITH (
  'connector' = 'jdbc-sqrl',
  'driver' = 'org.postgresql.Driver',
  'password' = '${POSTGRES_PASSWORD}',
  'sink.on-conflict.action' = 'IGNORE',
  'table-name' = 'CustomersStream',
  'url' = 'jdbc:postgresql://${POSTGRES_AUTHORITY}',
  'username' = '${POSTGRES_USERNAME}'
);
CREATE TABLE `LoanTypes_10` (
  `id` BIGINT NOT NULL,
  `name` VARCHAR(2147483647) CHARACTER SET `UTF-16LE` NOT NULL,
  `description` VARCHAR(2147483647) CHARACTER SET `UTF-16LE` NOT NULL,
  `interest_rate` DOUBLE NOT NULL,
  `max_amount` DOUBLE NOT NULL,
  `min_amount` DOUBLE NOT NULL,
  `max_duration` BIGINT NOT NULL,
  `min_duration` BIGINT NOT NULL,
  `updated_at` TIMESTAMP(3) WITH LOCAL TIME ZONE NOT NULL,
  PRIMARY KEY (`id`) NOT ENFORCED
)
WITH (
  'connector' = 'jdbc-sqrl',
  'driver' = 'org.postgresql.Driver',
  'password' = '${POSTGRES_PASSWORD}',
  'sink.on-conflict.action' = 'TIMESTAMP',
  'sink.on-conflict.timestamp-column' = 'updated_at',
  'table-name' = 'LoanTypes',
  'url' = 'jdbc:postgresql://${POSTGRES_AUTHORITY}',
  'username' = '${POSTGRES_USERNAME}'
);
CREATE TABLE `LoanTypesStream_11` (
  `id` BIGINT NOT NULL,
  `name` VARCHAR(2147483647) CHARACTER SET `UTF-16LE` NOT NULL,
  `description` VARCHAR(2147483647) CHARACTER SET `UTF-16LE` NOT NULL,
  `interest_rate` DOUBLE NOT NULL,
  `max_amount` DOUBLE NOT NULL,
  `min_amount` DOUBLE NOT NULL,
  `max_duration` BIGINT NOT NULL,
  `min_duration` BIGINT NOT NULL,
  `updated_at` TIMESTAMP(3) WITH LOCAL TIME ZONE NOT NULL,
  PRIMARY KEY (`id`, `updated_at`) NOT ENFORCED
)
WITH (
  'connector' = 'jdbc-sqrl',
  'driver' = 'org.postgresql.Driver',
  'password' = '${POSTGRES_PASSWORD}',
  'sink.on-conflict.action' = 'IGNORE',
  'table-name' = 'LoanTypesStream',
  'url' = 'jdbc:postgresql://${POSTGRES_AUTHORITY}',
  'username' = '${POSTGRES_USERNAME}'
);
EXECUTE STATEMENT SET BEGIN
INSERT INTO `default_catalog`.`default_database`.`AddChatMessage_1`
SELECT `_uuid`, `role`, `content`, `name`, `to_jsonb`(`context`) AS `context`, `event_time`
 FROM `default_catalog`.`default_database`.`AddChatMessage`
;
INSERT INTO `default_catalog`.`default_database`.`ApplicationAlert_2`
 SELECT *
  FROM `default_catalog`.`default_database`.`ApplicationAlert`
 ;
 INSERT INTO `default_catalog`.`default_database`.`ApplicationStatus_3`
  SELECT *
   FROM `default_catalog`.`default_database`.`ApplicationStatus`
  ;
  INSERT INTO `default_catalog`.`default_database`.`ApplicationUpdates_4`
   SELECT *
    FROM `default_catalog`.`default_database`.`ApplicationUpdates`
   ;
   INSERT INTO `default_catalog`.`default_database`.`Applications_5`
    SELECT *
     FROM `default_catalog`.`default_database`.`ApplicationsStream`
    ;
    INSERT INTO `default_catalog`.`default_database`.`ApplicationsStream_6`
     SELECT *
      FROM `default_catalog`.`default_database`.`ApplicationsStream`
     ;
     INSERT INTO `default_catalog`.`default_database`.`CustomerChatMessage_7`
      SELECT *
       FROM `default_catalog`.`default_database`.`CustomerChatMessage`
      ;
      INSERT INTO `default_catalog`.`default_database`.`Customers_8`
       SELECT *
        FROM `default_catalog`.`default_database`.`CustomersStream`
       ;
       INSERT INTO `default_catalog`.`default_database`.`CustomersStream_9`
        SELECT *
         FROM `default_catalog`.`default_database`.`CustomersStream`
        ;
        INSERT INTO `default_catalog`.`default_database`.`LoanTypes_10`
         SELECT *
          FROM `default_catalog`.`default_database`.`LoanTypesStream`
         ;
         INSERT INTO `default_catalog`.`default_database`.`LoanTypesStream_11`
          SELECT *
           FROM `default_catalog`.`default_database`.`LoanTypesStream`
          ;
          END
>>>kafka.json
{
  "topics" : [
    {
      "topicName" : "AddChatMessage",
      "tableName" : "AddChatMessage",
      "format" : "flexible-json",
      "numPartitions" : 1,
      "replicationFactor" : 3,
      "type" : "MUTATION",
      "messageKeys" : [ ],
      "messageSchema" : "",
      "config" : { }
    },
    {
      "topicName" : "ApplicationUpdates",
      "tableName" : "ApplicationUpdates",
      "format" : "flexible-json",
      "numPartitions" : 1,
      "replicationFactor" : 3,
      "type" : "MUTATION",
      "messageKeys" : [ ],
      "messageSchema" : "",
      "config" : { }
    }
  ],
  "testRunnerTopics" : [ ]
}
>>>postgres-schema.sql
CREATE TABLE IF NOT EXISTS "AddChatMessage" ("_uuid" TEXT NOT NULL, "role" TEXT NOT NULL, "content" TEXT NOT NULL, "name" TEXT, "context" JSONB, "event_time" TIMESTAMP WITH TIME ZONE, PRIMARY KEY ("_uuid"));
CREATE TABLE IF NOT EXISTS "ApplicationAlert" ("_uuid" TEXT NOT NULL, "id" BIGINT NOT NULL, "customer_id" BIGINT NOT NULL, "loan_type_id" BIGINT NOT NULL, "max_amount" DOUBLE PRECISION NOT NULL, "min_amount" DOUBLE PRECISION NOT NULL, "amount" DOUBLE PRECISION NOT NULL, PRIMARY KEY ("_uuid"));
CREATE TABLE IF NOT EXISTS "ApplicationStatus" ("_uuid" TEXT NOT NULL, "status" TEXT NOT NULL, "message" TEXT, "event_time" TIMESTAMP WITH TIME ZONE, "id" BIGINT NOT NULL, "customer_id" BIGINT NOT NULL, "loan_type_id" BIGINT NOT NULL, "amount" DOUBLE PRECISION NOT NULL, "duration" BIGINT NOT NULL, "max_amount" DOUBLE PRECISION NOT NULL, "min_amount" DOUBLE PRECISION NOT NULL, PRIMARY KEY ("_uuid"));
CREATE TABLE IF NOT EXISTS "ApplicationUpdates" ("_uuid" TEXT NOT NULL, "loan_application_id" BIGINT NOT NULL, "status" TEXT NOT NULL, "message" TEXT, "event_time" TIMESTAMP WITH TIME ZONE, PRIMARY KEY ("_uuid"));
CREATE TABLE IF NOT EXISTS "Applications" ("id" BIGINT NOT NULL, "customer_id" BIGINT NOT NULL, "loan_type_id" BIGINT NOT NULL, "amount" DOUBLE PRECISION NOT NULL, "duration" BIGINT NOT NULL, "application_date" TIMESTAMP WITH TIME ZONE NOT NULL, "updated_at" TIMESTAMP WITH TIME ZONE NOT NULL, PRIMARY KEY ("id"));
CREATE TABLE IF NOT EXISTS "ApplicationsStream" ("id" BIGINT NOT NULL, "customer_id" BIGINT NOT NULL, "loan_type_id" BIGINT NOT NULL, "amount" DOUBLE PRECISION NOT NULL, "duration" BIGINT NOT NULL, "application_date" TIMESTAMP WITH TIME ZONE NOT NULL, "updated_at" TIMESTAMP WITH TIME ZONE NOT NULL, PRIMARY KEY ("id","updated_at"));
CREATE TABLE IF NOT EXISTS "CustomerChatMessage" ("role" TEXT NOT NULL, "content" TEXT NOT NULL, "name" TEXT, "customerid" INTEGER, "timestamp" TIMESTAMP WITH TIME ZONE, "uuid" TEXT NOT NULL, PRIMARY KEY ("uuid"));
CREATE TABLE IF NOT EXISTS "Customers" ("id" BIGINT NOT NULL, "first_name" TEXT NOT NULL, "last_name" TEXT NOT NULL, "email" TEXT NOT NULL, "phone" TEXT NOT NULL, "address" TEXT NOT NULL, "date_of_birth" TEXT NOT NULL, "updated_at" TIMESTAMP WITH TIME ZONE NOT NULL, PRIMARY KEY ("id"));
CREATE TABLE IF NOT EXISTS "CustomersStream" ("id" BIGINT NOT NULL, "first_name" TEXT NOT NULL, "last_name" TEXT NOT NULL, "email" TEXT NOT NULL, "phone" TEXT NOT NULL, "address" TEXT NOT NULL, "date_of_birth" TEXT NOT NULL, "updated_at" TIMESTAMP WITH TIME ZONE NOT NULL, PRIMARY KEY ("id","updated_at"));
CREATE TABLE IF NOT EXISTS "LoanTypes" ("id" BIGINT NOT NULL, "name" TEXT NOT NULL, "description" TEXT NOT NULL, "interest_rate" DOUBLE PRECISION NOT NULL, "max_amount" DOUBLE PRECISION NOT NULL, "min_amount" DOUBLE PRECISION NOT NULL, "max_duration" BIGINT NOT NULL, "min_duration" BIGINT NOT NULL, "updated_at" TIMESTAMP WITH TIME ZONE NOT NULL, PRIMARY KEY ("id"));
CREATE TABLE IF NOT EXISTS "LoanTypesStream" ("id" BIGINT NOT NULL, "name" TEXT NOT NULL, "description" TEXT NOT NULL, "interest_rate" DOUBLE PRECISION NOT NULL, "max_amount" DOUBLE PRECISION NOT NULL, "min_amount" DOUBLE PRECISION NOT NULL, "max_duration" BIGINT NOT NULL, "min_duration" BIGINT NOT NULL, "updated_at" TIMESTAMP WITH TIME ZONE NOT NULL, PRIMARY KEY ("id","updated_at"));

CREATE INDEX IF NOT EXISTS "ApplicationUpdates_hash_c1" ON "ApplicationUpdates" USING hash ("loan_application_id");
CREATE INDEX IF NOT EXISTS "Applications_hash_c1" ON "Applications" USING hash ("customer_id")
>>>postgres-views.sql

>>>vertx.json
{
  "models" : {
    "v1" : {
      "queries" : [
        {
          "type" : "args",
          "parentType" : "Query",
          "fieldName" : "AddChatMessage",
          "exec" : {
            "arguments" : [
              {
                "type" : "variable",
                "path" : "limit"
              },
              {
                "type" : "variable",
                "path" : "offset"
              }
            ],
            "query" : {
              "type" : "SqlQuery",
              "sql" : "SELECT *\nFROM \"AddChatMessage\"",
              "parameters" : [ ],
              "pagination" : "LIMIT_AND_OFFSET",
              "cacheDurationMs" : 0,
              "database" : "POSTGRES"
            }
          }
        },
        {
          "type" : "args",
          "parentType" : "Query",
          "fieldName" : "ApplicationAlert",
          "exec" : {
            "arguments" : [
              {
                "type" : "variable",
                "path" : "limit"
              },
              {
                "type" : "variable",
                "path" : "offset"
              }
            ],
            "query" : {
              "type" : "SqlQuery",
              "sql" : "SELECT *\nFROM \"ApplicationAlert\"",
              "parameters" : [ ],
              "pagination" : "LIMIT_AND_OFFSET",
              "cacheDurationMs" : 0,
              "database" : "POSTGRES"
            }
          }
        },
        {
          "type" : "args",
          "parentType" : "Query",
          "fieldName" : "ApplicationStatus",
          "exec" : {
            "arguments" : [
              {
                "type" : "variable",
                "path" : "limit"
              },
              {
                "type" : "variable",
                "path" : "offset"
              }
            ],
            "query" : {
              "type" : "SqlQuery",
              "sql" : "SELECT *\nFROM \"ApplicationStatus\"",
              "parameters" : [ ],
              "pagination" : "LIMIT_AND_OFFSET",
              "cacheDurationMs" : 0,
              "database" : "POSTGRES"
            }
          }
        },
        {
          "type" : "args",
          "parentType" : "Query",
          "fieldName" : "ApplicationUpdates",
          "exec" : {
            "arguments" : [
              {
                "type" : "variable",
                "path" : "limit"
              },
              {
                "type" : "variable",
                "path" : "offset"
              }
            ],
            "query" : {
              "type" : "SqlQuery",
              "sql" : "SELECT *\nFROM \"ApplicationUpdates\"",
              "parameters" : [ ],
              "pagination" : "LIMIT_AND_OFFSET",
              "cacheDurationMs" : 0,
              "database" : "POSTGRES"
            }
          }
        },
        {
          "type" : "args",
          "parentType" : "ApplicationUpdates",
          "fieldName" : "application",
          "exec" : {
            "arguments" : [
              {
                "type" : "variable",
                "path" : "limit"
              },
              {
                "type" : "variable",
                "path" : "offset"
              }
            ],
            "query" : {
              "type" : "SqlQuery",
              "sql" : "SELECT *\nFROM \"Applications\"\nWHERE $1 = \"id\"",
              "parameters" : [
                {
                  "type" : "source",
                  "key" : "loan_application_id"
                }
              ],
              "pagination" : "LIMIT_AND_OFFSET",
              "cacheDurationMs" : 0,
              "database" : "POSTGRES"
            }
          }
        },
        {
          "type" : "args",
          "parentType" : "Applications",
          "fieldName" : "loanType",
          "exec" : {
            "arguments" : [
              {
                "type" : "variable",
                "path" : "limit"
              },
              {
                "type" : "variable",
                "path" : "offset"
              }
            ],
            "query" : {
              "type" : "SqlQuery",
              "sql" : "SELECT *\nFROM \"LoanTypes\"\nWHERE $1 = \"id\"",
              "parameters" : [
                {
                  "type" : "source",
                  "key" : "loan_type_id"
                }
              ],
              "pagination" : "LIMIT_AND_OFFSET",
              "cacheDurationMs" : 0,
              "database" : "POSTGRES"
            }
          }
        },
        {
          "type" : "args",
          "parentType" : "Applications",
          "fieldName" : "updates",
          "exec" : {
            "arguments" : [
              {
                "type" : "variable",
                "path" : "limit"
              },
              {
                "type" : "variable",
                "path" : "offset"
              }
            ],
            "query" : {
              "type" : "SqlQuery",
              "sql" : "SELECT *\nFROM \"ApplicationUpdates\"\nWHERE $1 = \"loan_application_id\"\nORDER BY \"event_time\" NULLS FIRST",
              "parameters" : [
                {
                  "type" : "source",
                  "key" : "id"
                }
              ],
              "pagination" : "LIMIT_AND_OFFSET",
              "cacheDurationMs" : 0,
              "database" : "POSTGRES"
            }
          }
        },
        {
          "type" : "args",
          "parentType" : "Query",
          "fieldName" : "Applications",
          "exec" : {
            "arguments" : [
              {
                "type" : "variable",
                "path" : "limit"
              },
              {
                "type" : "variable",
                "path" : "offset"
              }
            ],
            "query" : {
              "type" : "SqlQuery",
              "sql" : "SELECT *\nFROM \"Applications\"",
              "parameters" : [ ],
              "pagination" : "LIMIT_AND_OFFSET",
              "cacheDurationMs" : 0,
              "database" : "POSTGRES"
            }
          }
        },
        {
          "type" : "args",
          "parentType" : "Query",
          "fieldName" : "ApplicationsStream",
          "exec" : {
            "arguments" : [
              {
                "type" : "variable",
                "path" : "limit"
              },
              {
                "type" : "variable",
                "path" : "offset"
              }
            ],
            "query" : {
              "type" : "SqlQuery",
              "sql" : "SELECT *\nFROM \"ApplicationsStream\"",
              "parameters" : [ ],
              "pagination" : "LIMIT_AND_OFFSET",
              "cacheDurationMs" : 0,
              "database" : "POSTGRES"
            }
          }
        },
        {
          "type" : "args",
          "parentType" : "Query",
          "fieldName" : "CustomerChatMessage",
          "exec" : {
            "arguments" : [
              {
                "type" : "variable",
                "path" : "limit"
              },
              {
                "type" : "variable",
                "path" : "offset"
              }
            ],
            "query" : {
              "type" : "SqlQuery",
              "sql" : "SELECT *\nFROM (SELECT \"role\", \"content\", \"name\", \"customerid\", \"timestamp\", \"uuid\"\n  FROM \"CustomerChatMessage\"\n  ORDER BY \"timestamp\" DESC NULLS LAST) AS \"t\"",
              "parameters" : [ ],
              "pagination" : "LIMIT_AND_OFFSET",
              "cacheDurationMs" : 0,
              "database" : "POSTGRES"
            }
          }
        },
        {
          "type" : "args",
          "parentType" : "Query",
          "fieldName" : "Customers",
          "exec" : {
            "arguments" : [
              {
                "type" : "variable",
                "path" : "limit"
              },
              {
                "type" : "variable",
                "path" : "offset"
              }
            ],
            "query" : {
              "type" : "SqlQuery",
              "sql" : "SELECT *\nFROM \"Customers\"",
              "parameters" : [ ],
              "pagination" : "LIMIT_AND_OFFSET",
              "cacheDurationMs" : 0,
              "database" : "POSTGRES"
            }
          }
        },
        {
          "type" : "args",
          "parentType" : "Customers",
          "fieldName" : "applications",
          "exec" : {
            "arguments" : [
              {
                "type" : "variable",
                "path" : "limit"
              },
              {
                "type" : "variable",
                "path" : "offset"
              }
            ],
            "query" : {
              "type" : "SqlQuery",
              "sql" : "SELECT *\nFROM \"Applications\"\nWHERE $1 = \"customer_id\"\nORDER BY \"application_date\" NULLS FIRST",
              "parameters" : [
                {
                  "type" : "source",
                  "key" : "id"
                }
              ],
              "pagination" : "LIMIT_AND_OFFSET",
              "cacheDurationMs" : 0,
              "database" : "POSTGRES"
            }
          }
        },
        {
          "type" : "args",
          "parentType" : "Customers",
          "fieldName" : "overview",
          "exec" : {
            "arguments" : [
              {
                "type" : "variable",
                "path" : "limit"
              },
              {
                "type" : "variable",
                "path" : "offset"
              }
            ],
            "query" : {
              "type" : "SqlQuery",
              "sql" : "SELECT \"loan_type_id\", SUM(\"amount\") AS \"total_amount\", COUNT(*) AS \"total_loans\"\nFROM \"Applications\"\nWHERE $1 = \"customer_id\"\nGROUP BY \"loan_type_id\"",
              "parameters" : [
                {
                  "type" : "source",
                  "key" : "id"
                }
              ],
              "pagination" : "LIMIT_AND_OFFSET",
              "cacheDurationMs" : 0,
              "database" : "POSTGRES"
            }
          }
        },
        {
          "type" : "args",
          "parentType" : "Query",
          "fieldName" : "CustomersStream",
          "exec" : {
            "arguments" : [
              {
                "type" : "variable",
                "path" : "limit"
              },
              {
                "type" : "variable",
                "path" : "offset"
              }
            ],
            "query" : {
              "type" : "SqlQuery",
              "sql" : "SELECT *\nFROM \"CustomersStream\"",
              "parameters" : [ ],
              "pagination" : "LIMIT_AND_OFFSET",
              "cacheDurationMs" : 0,
              "database" : "POSTGRES"
            }
          }
        },
        {
          "type" : "args",
          "parentType" : "Query",
          "fieldName" : "LoanTypes",
          "exec" : {
            "arguments" : [
              {
                "type" : "variable",
                "path" : "limit"
              },
              {
                "type" : "variable",
                "path" : "offset"
              }
            ],
            "query" : {
              "type" : "SqlQuery",
              "sql" : "SELECT *\nFROM \"LoanTypes\"",
              "parameters" : [ ],
              "pagination" : "LIMIT_AND_OFFSET",
              "cacheDurationMs" : 0,
              "database" : "POSTGRES"
            }
          }
        },
        {
          "type" : "args",
          "parentType" : "Query",
          "fieldName" : "LoanTypesStream",
          "exec" : {
            "arguments" : [
              {
                "type" : "variable",
                "path" : "limit"
              },
              {
                "type" : "variable",
                "path" : "offset"
              }
            ],
            "query" : {
              "type" : "SqlQuery",
              "sql" : "SELECT *\nFROM \"LoanTypesStream\"",
              "parameters" : [ ],
              "pagination" : "LIMIT_AND_OFFSET",
              "cacheDurationMs" : 0,
              "database" : "POSTGRES"
            }
          }
        }
      ],
      "mutations" : [
        {
          "type" : "kafka",
          "fieldName" : "AddChatMessage",
          "returnList" : false,
          "topic" : "AddChatMessage",
          "keyColumns" : [ ],
          "computedColumns" : {
            "_uuid" : {
              "metadataType" : "UUID",
              "name" : "",
              "required" : true
            },
            "event_time" : {
              "metadataType" : "TIMESTAMP",
              "name" : "",
              "required" : false
            }
          },
          "transactional" : false,
          "sinkConfig" : { }
        },
        {
          "type" : "kafka",
          "fieldName" : "ApplicationUpdates",
          "returnList" : true,
          "topic" : "ApplicationUpdates",
          "keyColumns" : [ ],
          "computedColumns" : {
            "_uuid" : {
              "metadataType" : "UUID",
              "name" : "",
              "required" : true
            },
            "event_time" : {
              "metadataType" : "TIMESTAMP",
              "name" : "",
              "required" : false
            }
          },
          "transactional" : true,
          "sinkConfig" : { }
        }
      ],
      "subscriptions" : [ ],
      "operations" : [
        {
          "function" : {
            "name" : "ApplicationStatusSpecialMcp",
            "description" : "",
            "parameters" : {
              "type" : "object",
              "properties" : { },
              "required" : [ ]
            }
          },
          "format" : "JSON",
          "apiQuery" : {
            "query" : "query ApplicationStatusSpecialMcp @api(rest: NONE, mcp: TOOL) {\n    ApplicationStatus(limit: 10, offset: 0) {\n        status\n        message\n        customer_id\n        loan_type_id\n        amount\n        duration\n        max_amount\n        min_amount\n    }\n}\n",
            "queryName" : "ApplicationStatusSpecialMcp",
            "operationType" : "QUERY"
          },
          "mcpMethod" : "TOOL",
          "restMethod" : "NONE",
          "uriTemplate" : "queries/ApplicationStatusSpecialMcp"
        },
        {
          "function" : {
            "name" : "GetAddChatMessage",
            "parameters" : {
              "type" : "object",
              "properties" : {
                "offset" : {
                  "type" : "integer"
                },
                "limit" : {
                  "type" : "integer"
                }
              },
              "required" : [ ]
            }
          },
          "format" : "JSON",
          "apiQuery" : {
            "query" : "query AddChatMessage($limit: Int = 10, $offset: Int = 0) {\nAddChatMessage(limit: $limit, offset: $offset) {\nrole\ncontent\nname\ncontext {\ncustomerid\n}\nevent_time\n}\n\n}",
            "queryName" : "AddChatMessage",
            "operationType" : "QUERY"
          },
          "mcpMethod" : "TOOL",
          "restMethod" : "GET",
          "uriTemplate" : "queries/AddChatMessage{?offset,limit}"
        },
        {
          "function" : {
            "name" : "GetApplicationAlert",
            "parameters" : {
              "type" : "object",
              "properties" : {
                "offset" : {
                  "type" : "integer"
                },
                "limit" : {
                  "type" : "integer"
                }
              },
              "required" : [ ]
            }
          },
          "format" : "JSON",
          "apiQuery" : {
            "query" : "query ApplicationAlert($limit: Int = 10, $offset: Int = 0) {\nApplicationAlert(limit: $limit, offset: $offset) {\nid\ncustomer_id\nloan_type_id\nmax_amount\nmin_amount\namount\n}\n\n}",
            "queryName" : "ApplicationAlert",
            "operationType" : "QUERY"
          },
          "mcpMethod" : "TOOL",
          "restMethod" : "GET",
          "uriTemplate" : "queries/ApplicationAlert{?offset,limit}"
        },
        {
          "function" : {
            "name" : "GetApplicationStatus",
            "parameters" : {
              "type" : "object",
              "properties" : {
                "offset" : {
                  "type" : "integer"
                },
                "limit" : {
                  "type" : "integer"
                }
              },
              "required" : [ ]
            }
          },
          "format" : "JSON",
          "apiQuery" : {
            "query" : "query ApplicationStatus($limit: Int = 10, $offset: Int = 0) {\nApplicationStatus(limit: $limit, offset: $offset) {\nstatus\nmessage\nevent_time\nid\ncustomer_id\nloan_type_id\namount\nduration\nmax_amount\nmin_amount\n}\n\n}",
            "queryName" : "ApplicationStatus",
            "operationType" : "QUERY"
          },
          "mcpMethod" : "TOOL",
          "restMethod" : "GET",
          "uriTemplate" : "queries/ApplicationStatus{?offset,limit}"
        },
        {
          "function" : {
            "name" : "GetApplicationUpdates",
            "parameters" : {
              "type" : "object",
              "properties" : {
                "application_limit" : {
                  "type" : "integer"
                },
                "application_offset" : {
                  "type" : "integer"
                },
                "offset" : {
                  "type" : "integer"
                },
                "application_loanType_limit" : {
                  "type" : "integer"
                },
                "limit" : {
                  "type" : "integer"
                },
                "application_loanType_offset" : {
                  "type" : "integer"
                }
              },
              "required" : [ ]
            }
          },
          "format" : "JSON",
          "apiQuery" : {
            "query" : "query ApplicationUpdates($limit: Int = 10, $offset: Int = 0$application_limit: Int = 10, $application_offset: Int = 0$application_loanType_limit: Int = 10, $application_loanType_offset: Int = 0) {\nApplicationUpdates(limit: $limit, offset: $offset) {\nloan_application_id\nstatus\nmessage\nevent_time\napplication(limit: $application_limit, offset: $application_offset) {\nid\ncustomer_id\nloan_type_id\namount\nduration\napplication_date\nupdated_at\nloanType(limit: $application_loanType_limit, offset: $application_loanType_offset) {\nid\nname\ndescription\ninterest_rate\nmax_amount\nmin_amount\nmax_duration\nmin_duration\nupdated_at\n}\n}\n}\n\n}",
            "queryName" : "ApplicationUpdates",
            "operationType" : "QUERY"
          },
          "mcpMethod" : "TOOL",
          "restMethod" : "GET",
          "uriTemplate" : "queries/ApplicationUpdates{?application_limit,application_offset,offset,application_loanType_limit,limit,application_loanType_offset}"
        },
        {
          "function" : {
            "name" : "GetApplications",
            "parameters" : {
              "type" : "object",
              "properties" : {
                "offset" : {
                  "type" : "integer"
                },
                "limit" : {
                  "type" : "integer"
                },
                "loanType_limit" : {
                  "type" : "integer"
                },
                "updates_offset" : {
                  "type" : "integer"
                },
                "loanType_offset" : {
                  "type" : "integer"
                },
                "updates_limit" : {
                  "type" : "integer"
                }
              },
              "required" : [ ]
            }
          },
          "format" : "JSON",
          "apiQuery" : {
            "query" : "query Applications($limit: Int = 10, $offset: Int = 0$loanType_limit: Int = 10, $loanType_offset: Int = 0$updates_limit: Int = 10, $updates_offset: Int = 0) {\nApplications(limit: $limit, offset: $offset) {\nid\ncustomer_id\nloan_type_id\namount\nduration\napplication_date\nupdated_at\nloanType(limit: $loanType_limit, offset: $loanType_offset) {\nid\nname\ndescription\ninterest_rate\nmax_amount\nmin_amount\nmax_duration\nmin_duration\nupdated_at\n}\nupdates(limit: $updates_limit, offset: $updates_offset) {\nloan_application_id\nstatus\nmessage\nevent_time\n}\n}\n\n}",
            "queryName" : "Applications",
            "operationType" : "QUERY"
          },
          "mcpMethod" : "TOOL",
          "restMethod" : "GET",
          "uriTemplate" : "queries/Applications{?offset,limit,loanType_limit,updates_offset,loanType_offset,updates_limit}"
        },
        {
          "function" : {
            "name" : "GetApplicationsStream",
            "parameters" : {
              "type" : "object",
              "properties" : {
                "offset" : {
                  "type" : "integer"
                },
                "limit" : {
                  "type" : "integer"
                }
              },
              "required" : [ ]
            }
          },
          "format" : "JSON",
          "apiQuery" : {
            "query" : "query ApplicationsStream($limit: Int = 10, $offset: Int = 0) {\nApplicationsStream(limit: $limit, offset: $offset) {\nid\ncustomer_id\nloan_type_id\namount\nduration\napplication_date\nupdated_at\n}\n\n}",
            "queryName" : "ApplicationsStream",
            "operationType" : "QUERY"
          },
          "mcpMethod" : "TOOL",
          "restMethod" : "GET",
          "uriTemplate" : "queries/ApplicationsStream{?offset,limit}"
        },
        {
          "function" : {
            "name" : "GetCustomerChatMessage",
            "parameters" : {
              "type" : "object",
              "properties" : {
                "offset" : {
                  "type" : "integer"
                },
                "limit" : {
                  "type" : "integer"
                }
              },
              "required" : [ ]
            }
          },
          "format" : "JSON",
          "apiQuery" : {
            "query" : "query CustomerChatMessage($limit: Int = 10, $offset: Int = 0) {\nCustomerChatMessage(limit: $limit, offset: $offset) {\nrole\ncontent\nname\ncustomerid\ntimestamp\nuuid\n}\n\n}",
            "queryName" : "CustomerChatMessage",
            "operationType" : "QUERY"
          },
          "mcpMethod" : "TOOL",
          "restMethod" : "GET",
          "uriTemplate" : "queries/CustomerChatMessage{?offset,limit}"
        },
        {
          "function" : {
            "name" : "GetCustomers",
            "parameters" : {
              "type" : "object",
              "properties" : {
                "applications_loanType_limit" : {
                  "type" : "integer"
                },
                "applications_updates_offset" : {
                  "type" : "integer"
                },
                "overview_limit" : {
                  "type" : "integer"
                },
                "overview_offset" : {
                  "type" : "integer"
                },
                "offset" : {
                  "type" : "integer"
                },
                "applications_updates_limit" : {
                  "type" : "integer"
                },
                "limit" : {
                  "type" : "integer"
                },
                "applications_limit" : {
                  "type" : "integer"
                },
                "applications_loanType_offset" : {
                  "type" : "integer"
                },
                "applications_offset" : {
                  "type" : "integer"
                }
              },
              "required" : [ ]
            }
          },
          "format" : "JSON",
          "apiQuery" : {
            "query" : "query Customers($limit: Int = 10, $offset: Int = 0$applications_limit: Int = 10, $applications_offset: Int = 0$applications_loanType_limit: Int = 10, $applications_loanType_offset: Int = 0$applications_updates_limit: Int = 10, $applications_updates_offset: Int = 0$overview_limit: Int = 10, $overview_offset: Int = 0) {\nCustomers(limit: $limit, offset: $offset) {\nid\nfirst_name\nlast_name\nemail\nphone\naddress\ndate_of_birth\nupdated_at\napplications(limit: $applications_limit, offset: $applications_offset) {\nid\ncustomer_id\nloan_type_id\namount\nduration\napplication_date\nupdated_at\nloanType(limit: $applications_loanType_limit, offset: $applications_loanType_offset) {\nid\nname\ndescription\ninterest_rate\nmax_amount\nmin_amount\nmax_duration\nmin_duration\nupdated_at\n}\nupdates(limit: $applications_updates_limit, offset: $applications_updates_offset) {\nloan_application_id\nstatus\nmessage\nevent_time\n}\n}\noverview(limit: $overview_limit, offset: $overview_offset) {\nloan_type_id\ntotal_amount\ntotal_loans\n}\n}\n\n}",
            "queryName" : "Customers",
            "operationType" : "QUERY"
          },
          "mcpMethod" : "TOOL",
          "restMethod" : "GET",
          "uriTemplate" : "queries/Customers{?applications_loanType_limit,applications_updates_offset,overview_limit,overview_offset,offset,applications_updates_limit,limit,applications_limit,applications_loanType_offset,applications_offset}"
        },
        {
          "function" : {
            "name" : "GetCustomersStream",
            "parameters" : {
              "type" : "object",
              "properties" : {
                "offset" : {
                  "type" : "integer"
                },
                "limit" : {
                  "type" : "integer"
                }
              },
              "required" : [ ]
            }
          },
          "format" : "JSON",
          "apiQuery" : {
            "query" : "query CustomersStream($limit: Int = 10, $offset: Int = 0) {\nCustomersStream(limit: $limit, offset: $offset) {\nid\nfirst_name\nlast_name\nemail\nphone\naddress\ndate_of_birth\nupdated_at\n}\n\n}",
            "queryName" : "CustomersStream",
            "operationType" : "QUERY"
          },
          "mcpMethod" : "TOOL",
          "restMethod" : "GET",
          "uriTemplate" : "queries/CustomersStream{?offset,limit}"
        },
        {
          "function" : {
            "name" : "GetLoanTypes",
            "parameters" : {
              "type" : "object",
              "properties" : {
                "offset" : {
                  "type" : "integer"
                },
                "limit" : {
                  "type" : "integer"
                }
              },
              "required" : [ ]
            }
          },
          "format" : "JSON",
          "apiQuery" : {
            "query" : "query LoanTypes($limit: Int = 10, $offset: Int = 0) {\nLoanTypes(limit: $limit, offset: $offset) {\nid\nname\ndescription\ninterest_rate\nmax_amount\nmin_amount\nmax_duration\nmin_duration\nupdated_at\n}\n\n}",
            "queryName" : "LoanTypes",
            "operationType" : "QUERY"
          },
          "mcpMethod" : "TOOL",
          "restMethod" : "GET",
          "uriTemplate" : "queries/LoanTypes{?offset,limit}"
        },
        {
          "function" : {
            "name" : "GetLoanTypesStream",
            "parameters" : {
              "type" : "object",
              "properties" : {
                "offset" : {
                  "type" : "integer"
                },
                "limit" : {
                  "type" : "integer"
                }
              },
              "required" : [ ]
            }
          },
          "format" : "JSON",
          "apiQuery" : {
            "query" : "query LoanTypesStream($limit: Int = 10, $offset: Int = 0) {\nLoanTypesStream(limit: $limit, offset: $offset) {\nid\nname\ndescription\ninterest_rate\nmax_amount\nmin_amount\nmax_duration\nmin_duration\nupdated_at\n}\n\n}",
            "queryName" : "LoanTypesStream",
            "operationType" : "QUERY"
          },
          "mcpMethod" : "TOOL",
          "restMethod" : "GET",
          "uriTemplate" : "queries/LoanTypesStream{?offset,limit}"
        },
        {
          "function" : {
            "name" : "AddAddChatMessage",
            "parameters" : {
              "type" : "object",
              "properties" : {
                "role" : {
                  "type" : "string"
                },
                "name" : {
                  "type" : "string"
                },
                "context" : {
                  "type" : "object",
                  "properties" : {
                    "customerid" : {
                      "type" : "integer"
                    }
                  },
                  "required" : [ ]
                },
                "content" : {
                  "type" : "string"
                }
              },
              "required" : [
                "role",
                "content",
                "context"
              ]
            }
          },
          "format" : "JSON",
          "apiQuery" : {
            "query" : "mutation AddChatMessage($role: String!, $content: String!, $name: String, $context: AddChatMessage_contextInput!) {\nAddChatMessage(event: { role: $role, content: $content, name: $name, context: $context }) {\nrole\ncontent\nname\ncontext {\ncustomerid\n}\nevent_time\n}\n\n}",
            "queryName" : "AddChatMessage",
            "operationType" : "MUTATION"
          },
          "mcpMethod" : "NONE",
          "restMethod" : "POST",
          "uriTemplate" : "mutations/AddChatMessage"
        },
        {
          "function" : {
            "name" : "AddApplicationUpdates",
            "parameters" : {
              "type" : "object",
              "properties" : {
                "event" : {
                  "type" : "array",
                  "items" : {
                    "type" : "object",
                    "properties" : {
                      "loan_application_id" : {
                        "type" : "integer"
                      },
                      "message" : {
                        "type" : "string"
                      },
                      "status" : {
                        "type" : "string"
                      }
                    },
                    "required" : [
                      "loan_application_id",
                      "status"
                    ]
                  }
                }
              },
              "required" : [
                "event"
              ]
            }
          },
          "format" : "JSON",
          "apiQuery" : {
            "query" : "mutation ApplicationUpdates($event: [ApplicationUpdatesInput!]!) {\nApplicationUpdates(event: $event) {\nloan_application_id\nstatus\nmessage\nevent_time\n}\n\n}",
            "queryName" : "ApplicationUpdates",
            "operationType" : "MUTATION"
          },
          "mcpMethod" : "NONE",
          "restMethod" : "POST",
          "uriTemplate" : "mutations/ApplicationUpdates"
        }
      ],
      "schema" : {
        "type" : "string",
        "schema" : "type AddChatMessage {\n  role: String!\n  content: String!\n  name: String\n  context: AddChatMessage_contextOutput!\n  event_time: DateTime\n}\n\ninput AddChatMessageInput {\n  role: String!\n  content: String!\n  name: String\n  context: AddChatMessage_contextInput!\n}\n\ntype AddChatMessageResultOutput {\n  role: String!\n  content: String!\n  name: String\n  context: AddChatMessageResult_contextOutput!\n  event_time: DateTime\n}\n\ntype AddChatMessageResult_contextOutput {\n  customerid: Int\n}\n\ninput AddChatMessage_contextInput {\n  customerid: Int\n}\n\ntype AddChatMessage_contextOutput {\n  customerid: Int\n}\n\ntype ApplicationAlert {\n  id: Long!\n  customer_id: Long!\n  loan_type_id: Long!\n  max_amount: Float!\n  min_amount: Float!\n  amount: Float!\n}\n\ntype ApplicationStatus {\n  status: String!\n  message: String\n  event_time: DateTime\n  id: Long!\n  customer_id: Long!\n  loan_type_id: Long!\n  amount: Float!\n  duration: Long!\n  max_amount: Float!\n  min_amount: Float!\n}\n\ntype ApplicationUpdates {\n  loan_application_id: Long!\n  status: String!\n  message: String\n  event_time: DateTime\n  application(limit: Int = 10, offset: Int = 0): [Applications!]\n}\n\ninput ApplicationUpdatesInput {\n  loan_application_id: Long!\n  status: String!\n  message: String\n}\n\ntype ApplicationUpdatesResultOutput {\n  loan_application_id: Long!\n  status: String!\n  message: String\n  event_time: DateTime\n}\n\ntype Applications {\n  id: Long!\n  customer_id: Long!\n  loan_type_id: Long!\n  amount: Float!\n  duration: Long!\n  application_date: DateTime!\n  updated_at: DateTime!\n  loanType(limit: Int = 10, offset: Int = 0): [LoanTypes!]\n  updates(limit: Int = 10, offset: Int = 0): [ApplicationUpdates!]\n}\n\ntype ApplicationsStream {\n  id: Long!\n  customer_id: Long!\n  loan_type_id: Long!\n  amount: Float!\n  duration: Long!\n  application_date: DateTime!\n  updated_at: DateTime!\n}\n\ntype CustomerChatMessage {\n  role: String!\n  content: String!\n  name: String\n  customerid: Int\n  timestamp: DateTime\n  uuid: String!\n}\n\ntype Customers {\n  id: Long!\n  first_name: String!\n  last_name: String!\n  email: String!\n  phone: String!\n  address: String!\n  date_of_birth: String!\n  updated_at: DateTime!\n  applications(limit: Int = 10, offset: Int = 0): [Applications!]\n  overview(limit: Int = 10, offset: Int = 0): [Customers_overview!]\n}\n\ntype CustomersStream {\n  id: Long!\n  first_name: String!\n  last_name: String!\n  email: String!\n  phone: String!\n  address: String!\n  date_of_birth: String!\n  updated_at: DateTime!\n}\n\ntype Customers_overview {\n  loan_type_id: Long!\n  total_amount: Float!\n  total_loans: Long!\n}\n\n\"An RFC-3339 compliant DateTime Scalar\"\nscalar DateTime\n\n\"A 64-bit signed integer\"\nscalar Long\n\ntype LoanTypes {\n  id: Long!\n  name: String!\n  description: String!\n  interest_rate: Float!\n  max_amount: Float!\n  min_amount: Float!\n  max_duration: Long!\n  min_duration: Long!\n  updated_at: DateTime!\n}\n\ntype LoanTypesStream {\n  id: Long!\n  name: String!\n  description: String!\n  interest_rate: Float!\n  max_amount: Float!\n  min_amount: Float!\n  max_duration: Long!\n  min_duration: Long!\n  updated_at: DateTime!\n}\n\ntype Mutation {\n  AddChatMessage(event: AddChatMessageInput!): AddChatMessageResultOutput!\n  ApplicationUpdates(event: [ApplicationUpdatesInput!]!): [ApplicationUpdatesResultOutput!]!\n}\n\ntype Query {\n  AddChatMessage(limit: Int = 10, offset: Int = 0): [AddChatMessage!]\n  ApplicationAlert(limit: Int = 10, offset: Int = 0): [ApplicationAlert!]\n  ApplicationStatus(limit: Int = 10, offset: Int = 0): [ApplicationStatus!]\n  ApplicationUpdates(limit: Int = 10, offset: Int = 0): [ApplicationUpdates!]\n  Applications(limit: Int = 10, offset: Int = 0): [Applications!]\n  ApplicationsStream(limit: Int = 10, offset: Int = 0): [ApplicationsStream!]\n  CustomerChatMessage(limit: Int = 10, offset: Int = 0): [CustomerChatMessage!]\n  Customers(limit: Int = 10, offset: Int = 0): [Customers!]\n  CustomersStream(limit: Int = 10, offset: Int = 0): [CustomersStream!]\n  LoanTypes(limit: Int = 10, offset: Int = 0): [LoanTypes!]\n  LoanTypesStream(limit: Int = 10, offset: Int = 0): [LoanTypesStream!]\n}\n\nenum _McpMethodType { NONE, TOOL, RESOURCE }\nenum _RestMethodType { NONE, GET, POST }\ndirective @api(\n  mcp: _McpMethodType,\n  rest: _RestMethodType,\n  uri: String\n) on FIELD_DEFINITION | QUERY | MUTATION\n"
      }
    }
  }
}
