You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
371 B
13 lines
371 B
-- CreateTable
|
|
CREATE TABLE "Link" (
|
|
"id" SERIAL NOT NULL,
|
|
"remoteAddress" TEXT NOT NULL,
|
|
"location" TEXT NOT NULL,
|
|
"authorId" INTEGER NOT NULL,
|
|
|
|
CONSTRAINT "Link_pkey" PRIMARY KEY ("id")
|
|
);
|
|
|
|
-- AddForeignKey
|
|
ALTER TABLE "Link" ADD CONSTRAINT "Link_authorId_fkey" FOREIGN KEY ("authorId") REFERENCES "User"("id") ON DELETE RESTRICT ON UPDATE CASCADE;
|