mirror of
https://github.com/paralus/paralus.git
synced 2026-08-24 15:47:19 +00:00
Signed-off-by: niravparikh05 <nir.parikh05@gmail.com> Signed-off-by: Nirav Parikh <52062717+niravparikh05@users.noreply.github.com> Co-authored-by: Akshay Gaikwad <akshay196@users.noreply.github.com>
11 lines
479 B
SQL
11 lines
479 B
SQL
CREATE TABLE IF NOT EXISTS cluster_project_cluster (
|
|
project_id uuid NOT NULL,
|
|
cluster_id uuid NOT NULL,
|
|
trash boolean NOT NULL default false
|
|
);
|
|
|
|
CREATE INDEX cluster_project_cluster_project_id_cluster_id_key ON cluster_project_cluster USING btree (project_id, cluster_id);
|
|
|
|
ALTER TABLE ONLY cluster_project_cluster
|
|
ADD CONSTRAINT cluster_project_cluster_cluster_id_fkey FOREIGN KEY (cluster_id)
|
|
REFERENCES cluster_clusters(id) DEFERRABLE INITIALLY DEFERRED; |