-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: introduced irl gathering v2 changes
- added location based events - added guest visit multiple events
- Loading branch information
1 parent
13147c7
commit ff86ab9
Showing
17 changed files
with
1,308 additions
and
298 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
38 changes: 38 additions & 0 deletions
38
apps/web-api/prisma/migrations/20240920050707_irl_gathering_v2/migration.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
/* | ||
Warnings: | ||
- You are about to drop the column `location` on the `PLEvent` table. All the data in the column will be lost. | ||
*/ | ||
-- AlterTable | ||
ALTER TABLE "PLEvent" DROP COLUMN "location", | ||
ADD COLUMN "locationUid" TEXT; | ||
|
||
-- AlterTable | ||
ALTER TABLE "PLEventGuest" ADD COLUMN "isHost" BOOLEAN NOT NULL DEFAULT false, | ||
ADD COLUMN "isSpeaker" BOOLEAN NOT NULL DEFAULT false; | ||
|
||
-- CreateTable | ||
CREATE TABLE "PLEventLocation" ( | ||
"id" SERIAL NOT NULL, | ||
"uid" TEXT NOT NULL, | ||
"location" TEXT NOT NULL, | ||
"timezone" TEXT NOT NULL, | ||
"latitude" TEXT, | ||
"longitude" TEXT, | ||
"flag" TEXT, | ||
"icon" TEXT, | ||
"resources" JSONB[], | ||
"additionalInfo" JSONB, | ||
"priority" INTEGER, | ||
"createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP, | ||
"updatedAt" TIMESTAMP(3) NOT NULL, | ||
|
||
CONSTRAINT "PLEventLocation_pkey" PRIMARY KEY ("id") | ||
); | ||
|
||
-- CreateIndex | ||
CREATE UNIQUE INDEX "PLEventLocation_uid_key" ON "PLEventLocation"("uid"); | ||
|
||
-- AddForeignKey | ||
ALTER TABLE "PLEvent" ADD CONSTRAINT "PLEvent_locationUid_fkey" FOREIGN KEY ("locationUid") REFERENCES "PLEventLocation"("uid") ON DELETE SET NULL ON UPDATE CASCADE; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.