mirror of
https://github.com/wasp-lang/wasp.git
synced 2024-11-29 12:53:32 +03:00
20 lines
502 B
MySQL
20 lines
502 B
MySQL
|
-- CreateTable
|
||
|
CREATE TABLE "User" (
|
||
|
"id" SERIAL NOT NULL,
|
||
|
|
||
|
CONSTRAINT "User_pkey" PRIMARY KEY ("id")
|
||
|
);
|
||
|
|
||
|
-- CreateTable
|
||
|
CREATE TABLE "SocialLogin" (
|
||
|
"id" TEXT NOT NULL,
|
||
|
"provider" TEXT NOT NULL,
|
||
|
"providerId" TEXT NOT NULL,
|
||
|
"userId" INTEGER NOT NULL,
|
||
|
|
||
|
CONSTRAINT "SocialLogin_pkey" PRIMARY KEY ("id")
|
||
|
);
|
||
|
|
||
|
-- AddForeignKey
|
||
|
ALTER TABLE "SocialLogin" ADD CONSTRAINT "SocialLogin_userId_fkey" FOREIGN KEY ("userId") REFERENCES "User"("id") ON DELETE RESTRICT ON UPDATE CASCADE;
|