-
Notifications
You must be signed in to change notification settings - Fork 79
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
62 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 30 additions & 0 deletions
30
docker/supabase/migrations/20241214133549_flow_deployment.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
CREATE TABLE flow_deployments ( | ||
user_id UUID NOT NULL, | ||
id UUID NOT NULL, | ||
entrypoint INTEGER NOT NULL, | ||
start_permission TEXT NOT NULL | ||
); | ||
|
||
-- All wallets used in the deployment | ||
CREATE TABLE flow_deployments_wallets ( | ||
user_id UUID NOT NULL, | ||
deployment_id UUID NOT NULL, | ||
wallet_id BIGINT NOT NULL | ||
); | ||
|
||
-- All flows used in the deployment | ||
CREATE TABLE flow_deployments_flows ( | ||
user_id UUID NOT NULL, | ||
deployment_id UUID NOT NULL, | ||
flow_id INTEGER NOT NULL, | ||
nodes JSONB [] NOT NULL, | ||
edges JSONB [] NOT NULL, | ||
environment JSONB NOT NULL, | ||
current_network JSONB NOT NULL, | ||
instructions_bundling JSONB NOT NULL, | ||
is_public BOOLEAN NOT NULL, | ||
start_shared BOOLEAN NOT NULL, | ||
start_unverified BOOLEAN NOT NULL | ||
); | ||
|
||
CREATE TABLE flow_deployments_tags (flow_id INTEGER, tag TEXT, deployment_id UUID); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters