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>
16 lines
626 B
SQL
16 lines
626 B
SQL
CREATE TABLE IF NOT EXISTS cluster_namespaces (
|
|
cluster_id uuid NOT NULL,
|
|
name varchar NOT NULL,
|
|
hash varchar NOT NULL,
|
|
deleted_at timestamp WITH time zone,
|
|
type varchar not null,
|
|
namespace jsonb not null,
|
|
conditions jsonb not null default '[]'::jsonb,
|
|
status jsonb not null default '{}'::jsonb
|
|
);
|
|
|
|
ALTER TABLE ONLY cluster_namespaces ADD CONSTRAINT cluster_namespaces_pkey PRIMARY KEY (cluster_id, name);
|
|
|
|
ALTER TABLE ONLY cluster_namespaces
|
|
ADD CONSTRAINT cluster_project_cluster_cluster_id_fkey FOREIGN KEY (cluster_id)
|
|
REFERENCES cluster_clusters(id) DEFERRABLE INITIALLY DEFERRED; |