
\connect tasks;

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