Skip to content

The only tool you need to know what is happening and how to fix it.

349 B
Raw Blame
CREATE TABLE IF NOT EXISTS project_dashboards (
    id SERIAL PRIMARY KEY,
    project_id UUID NOT NULL REFERENCES projects(id) ON DELETE CASCADE,
    dashboard_id INT NOT NULL REFERENCES dashboards(id) ON DELETE CASCADE,
    position INT NOT NULL DEFAULT 0,
    created_at TIMESTAMPTZ NOT NULL DEFAULT NOW(),
    UNIQUE(project_id, dashboard_id)
)