Skip to content

Commit

Permalink
first commit
Browse files Browse the repository at this point in the history
  • Loading branch information
jorgeantonio21 committed Dec 26, 2024
1 parent 818cbf9 commit 50e0b92
Showing 1 changed file with 0 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@ CREATE TABLE IF NOT EXISTS node_subscriptions (
max_num_compute_units BIGINT NOT NULL,
valid BOOLEAN NOT NULL,
PRIMARY KEY (task_small_id, node_small_id),
FOREIGN KEY (task_small_id)
REFERENCES tasks (task_small_id)
);

CREATE INDEX IF NOT EXISTS idx_node_subscriptions_task_small_id_node_small_id
Expand All @@ -40,8 +38,6 @@ CREATE TABLE IF NOT EXISTS stacks (
total_hash BYTEA NOT NULL,
num_total_messages BIGINT NOT NULL,
CONSTRAINT check_compute_units CHECK (already_computed_units <= num_compute_units),
FOREIGN KEY (selected_node_id, task_small_id)
REFERENCES node_subscriptions (node_small_id, task_small_id)
);

CREATE INDEX IF NOT EXISTS idx_stacks_owner_address
Expand All @@ -58,8 +54,6 @@ CREATE TABLE IF NOT EXISTS stack_attestation_disputes (
original_node_id BIGINT NOT NULL,
original_commitment BYTEA NOT NULL,
PRIMARY KEY (stack_small_id, attestation_node_id),
FOREIGN KEY (stack_small_id)
REFERENCES stacks (stack_small_id)
);

-- Create stack_settlement_tickets table
Expand Down

0 comments on commit 50e0b92

Please sign in to comment.