From 8544fcf43cbccdad4ecd300e90fd0c8eb2a91e62 Mon Sep 17 00:00:00 2001
From: Leonardo Christino <leomilho@gmail.com>
Date: Wed, 7 Jun 2023 18:24:14 +0200
Subject: [PATCH] feat(paohvis): add mock data for story

---
 .../lib/mock-data/schema/simpleAirportRaw.ts  | 43 +++++++++++++++++++
 1 file changed, 43 insertions(+)
 create mode 100644 libs/shared/lib/mock-data/schema/simpleAirportRaw.ts

diff --git a/libs/shared/lib/mock-data/schema/simpleAirportRaw.ts b/libs/shared/lib/mock-data/schema/simpleAirportRaw.ts
new file mode 100644
index 000000000..a8524c549
--- /dev/null
+++ b/libs/shared/lib/mock-data/schema/simpleAirportRaw.ts
@@ -0,0 +1,43 @@
+import { SchemaFromBackend } from '../../schema';
+import { SchemaUtils } from '../../schema/schema-utils';
+
+export const simpleSchemaAirportRaw: SchemaFromBackend = {
+  nodes: [
+    {
+      name: 'airports',
+      attributes: [
+        { name: 'city', type: 'string' },
+        { name: 'country', type: 'string' },
+        { name: 'lat', type: 'float' },
+        { name: 'long', type: 'float' },
+        { name: 'name', type: 'string' },
+        { name: 'state', type: 'string' },
+        { name: 'vip', type: 'bool' },
+      ],
+    }
+  ],
+  edges: [
+    {
+      name: 'flights',
+      from: 'airports',
+      to: 'airports',
+      collection: 'flights',
+      attributes: [
+        { name: 'ArrTime', type: 'int' },
+        { name: 'ArrTimeUTC', type: 'string' },
+        { name: 'Day', type: 'int' },
+        { name: 'DayOfWeek', type: 'int' },
+        { name: 'DepTime', type: 'int' },
+        { name: 'DepTimeUTC', type: 'string' },
+        { name: 'Distance', type: 'int' },
+        { name: 'FlightNum', type: 'int' },
+        { name: 'Month', type: 'int' },
+        { name: 'TailNum', type: 'string' },
+        { name: 'UniqueCarrier', type: 'string' },
+        { name: 'Year', type: 'int' },
+      ],
+    }
+  ],
+};
+
+export const simpleSchemaAirport = SchemaUtils.schemaBackend2Graphology(simpleSchemaAirportRaw);
-- 
GitLab