@friggframework/core 2.0.0--canary.497.a3f25f9.0 → 2.0.0--canary.497.285d192.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@friggframework/core",
3
3
  "prettier": "@friggframework/prettier-config",
4
- "version": "2.0.0--canary.497.a3f25f9.0",
4
+ "version": "2.0.0--canary.497.285d192.0",
5
5
  "dependencies": {
6
6
  "@aws-sdk/client-apigatewaymanagementapi": "^3.588.0",
7
7
  "@aws-sdk/client-kms": "^3.588.0",
@@ -38,9 +38,9 @@
38
38
  }
39
39
  },
40
40
  "devDependencies": {
41
- "@friggframework/eslint-config": "2.0.0--canary.497.a3f25f9.0",
42
- "@friggframework/prettier-config": "2.0.0--canary.497.a3f25f9.0",
43
- "@friggframework/test": "2.0.0--canary.497.a3f25f9.0",
41
+ "@friggframework/eslint-config": "2.0.0--canary.497.285d192.0",
42
+ "@friggframework/prettier-config": "2.0.0--canary.497.285d192.0",
43
+ "@friggframework/test": "2.0.0--canary.497.285d192.0",
44
44
  "@prisma/client": "^6.17.0",
45
45
  "@types/lodash": "4.17.15",
46
46
  "@typescript-eslint/eslint-plugin": "^8.0.0",
@@ -80,5 +80,5 @@
80
80
  "publishConfig": {
81
81
  "access": "public"
82
82
  },
83
- "gitHead": "a3f25f90c67236e2079d9ca1caa3a0b29875d232"
83
+ "gitHead": "285d1921b30906c5395d429ce1cc72fc1b643855"
84
84
  }
@@ -0,0 +1,44 @@
1
+ -- CreateTable
2
+ CREATE TABLE "Process" (
3
+ "id" SERIAL NOT NULL,
4
+ "userId" INTEGER NOT NULL,
5
+ "integrationId" INTEGER NOT NULL,
6
+ "name" TEXT NOT NULL,
7
+ "type" TEXT NOT NULL,
8
+ "state" TEXT NOT NULL,
9
+ "context" JSONB NOT NULL DEFAULT '{}',
10
+ "results" JSONB NOT NULL DEFAULT '{}',
11
+ "parentProcessId" INTEGER,
12
+ "createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
13
+ "updatedAt" TIMESTAMP(3) NOT NULL,
14
+
15
+ CONSTRAINT "Process_pkey" PRIMARY KEY ("id")
16
+ );
17
+
18
+ -- CreateIndex
19
+ CREATE INDEX "Process_userId_idx" ON "Process"("userId");
20
+
21
+ -- CreateIndex
22
+ CREATE INDEX "Process_integrationId_idx" ON "Process"("integrationId");
23
+
24
+ -- CreateIndex
25
+ CREATE INDEX "Process_type_idx" ON "Process"("type");
26
+
27
+ -- CreateIndex
28
+ CREATE INDEX "Process_state_idx" ON "Process"("state");
29
+
30
+ -- CreateIndex
31
+ CREATE INDEX "Process_name_idx" ON "Process"("name");
32
+
33
+ -- CreateIndex
34
+ CREATE INDEX "Process_parentProcessId_idx" ON "Process"("parentProcessId");
35
+
36
+ -- AddForeignKey
37
+ ALTER TABLE "Process" ADD CONSTRAINT "Process_userId_fkey" FOREIGN KEY ("userId") REFERENCES "User"("id") ON DELETE CASCADE ON UPDATE CASCADE;
38
+
39
+ -- AddForeignKey
40
+ ALTER TABLE "Process" ADD CONSTRAINT "Process_integrationId_fkey" FOREIGN KEY ("integrationId") REFERENCES "Integration"("id") ON DELETE CASCADE ON UPDATE CASCADE;
41
+
42
+ -- AddForeignKey
43
+ ALTER TABLE "Process" ADD CONSTRAINT "Process_parentProcessId_fkey" FOREIGN KEY ("parentProcessId") REFERENCES "Process"("id") ON DELETE SET NULL ON UPDATE CASCADE;
44
+