mirror of
https://github.com/veganhacktivists/arabot.git
synced 2025-05-19 00:44:16 +02:00
12 lines
344 B
SQL
12 lines
344 B
SQL
-- CreateTable
|
|
CREATE TABLE "Counting" (
|
|
"id" SERIAL NOT NULL,
|
|
"userId" TEXT NOT NULL,
|
|
"number" INTEGER NOT NULL,
|
|
|
|
CONSTRAINT "Counting_pkey" PRIMARY KEY ("id")
|
|
);
|
|
|
|
-- AddForeignKey
|
|
ALTER TABLE "Counting" ADD CONSTRAINT "Counting_userId_fkey" FOREIGN KEY ("userId") REFERENCES "User"("id") ON DELETE RESTRICT ON UPDATE CASCADE;
|