
\connect tasks;

CREATE TABLE task_manager.sprint(
  "id" SERIAL PRIMARY KEY UNIQUE,
  "id_project" INTEGER NOT NULL,
  "name" TEXT NOT NULL UNIQUE,
  "description" TEXT NOT NULL,
  "date" TEXT NOT NULL,
  "duration" INTEGER,
   FOREIGN KEY (id_project) REFERENCES task_manager.project(id) ON DELETE CASCADE
);