forked from ONDC-Official/deeplink-resolver-server
-
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.
* Baseline for Master (ONDC-Official#12) * Working on Github Actions. * Working on Deployment. * Fix: Github Actions. * Fixed username. * Working on deployment. * Update clone-and-setup.yml * Update clone-and-setup.yml * Update clone-and-setup.yml * sanity commit. * snaity commit. * s. * sc. * logging. * Update app-deployment.yml * Update app-deployment.yml * Update db-operations.yml * Update db-operations.yml * Update db-operations.yml * Update db-operations.yml * Update db-operations.yml * Removing unused classes. * Update db-operations.yml * Update db-operations.yml * Update app-deployment.yml * Update app-deployment.yml * Working on deployment. * Update db-operations.yml * Update db-operations.yml * Update package.json * Working on Deployment migration runner. * Fixing docker network. * sc * Working on UI fixes. * Working on QR Download and schema changes. * Working on decoupling action from formData. * Minor changes. * Logging the migrations. * Debugging. * changing env name. * Update app-deployment.yml * Resolved bug; consolidated migrations.
- Loading branch information
Showing
17 changed files
with
110 additions
and
181 deletions.
There are no files selected for viewing
42 changes: 0 additions & 42 deletions
42
deeplink-generator/prisma/migrations/20241213065301_init/migration.sql
This file was deleted.
Oops, something went wrong.
49 changes: 0 additions & 49 deletions
49
deeplink-generator/prisma/migrations/20241216062431_making/migration.sql
This file was deleted.
Oops, something went wrong.
12 changes: 0 additions & 12 deletions
12
deeplink-generator/prisma/migrations/20241216063510_ynuque/migration.sql
This file was deleted.
Oops, something went wrong.
2 changes: 0 additions & 2 deletions
2
deeplink-generator/prisma/migrations/20241218052010_qr/migration.sql
This file was deleted.
Oops, something went wrong.
19 changes: 0 additions & 19 deletions
19
deeplink-generator/prisma/migrations/20241224045445_tuncate_uuid/migration.sql
This file was deleted.
Oops, something went wrong.
7 changes: 0 additions & 7 deletions
7
deeplink-generator/prisma/migrations/20241224045549_desc/migration.sql
This file was deleted.
Oops, something went wrong.
5 changes: 0 additions & 5 deletions
5
deeplink-generator/prisma/migrations/20241227074217_xyz/migration.sql
This file was deleted.
Oops, something went wrong.
17 changes: 0 additions & 17 deletions
17
deeplink-generator/prisma/migrations/20250106065259_category_sub/migration.sql
This file was deleted.
Oops, something went wrong.
5 changes: 0 additions & 5 deletions
5
deeplink-generator/prisma/migrations/20250106084158_dev/migration.sql
This file was deleted.
Oops, something went wrong.
77 changes: 77 additions & 0 deletions
77
deeplink-generator/prisma/migrations/20250113062321_init_13_01_25/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,77 @@ | ||
-- CreateEnum | ||
CREATE TYPE "TemplateStage" AS ENUM ('DRAFT', 'REVIEW', 'SUBMITTED', 'PUBLISHED'); | ||
|
||
-- CreateEnum | ||
CREATE TYPE "UsecaseStage" AS ENUM ('DRAFT', 'REVIEW', 'SUBMITTED', 'PUBLISHED'); | ||
|
||
-- CreateTable | ||
CREATE TABLE "Template" ( | ||
"id" TEXT NOT NULL DEFAULT substr(gen_random_uuid()::text, 1, 16), | ||
"name" TEXT, | ||
"description" TEXT, | ||
"createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP, | ||
"updatedAt" TIMESTAMP(3) NOT NULL, | ||
"value" JSONB NOT NULL, | ||
"templateStage" "TemplateStage" NOT NULL, | ||
"usecaseCategoryId" TEXT, | ||
"usecaseSubcategoryId" TEXT, | ||
|
||
CONSTRAINT "Template_pkey" PRIMARY KEY ("id") | ||
); | ||
|
||
-- CreateTable | ||
CREATE TABLE "Usecase" ( | ||
"id" TEXT NOT NULL DEFAULT substr(gen_random_uuid()::text, 1, 16), | ||
"createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP, | ||
"updatedAt" TIMESTAMP(3) NOT NULL, | ||
"value" JSONB NOT NULL, | ||
"templateId" TEXT NOT NULL, | ||
"name" TEXT, | ||
"description" TEXT, | ||
"creatorName" TEXT, | ||
"qrPdfLink" TEXT, | ||
"usecaseStage" "UsecaseStage" NOT NULL, | ||
|
||
CONSTRAINT "Usecase_pkey" PRIMARY KEY ("id") | ||
); | ||
|
||
-- CreateTable | ||
CREATE TABLE "UsecaseCategory" ( | ||
"id" TEXT NOT NULL, | ||
"name" TEXT NOT NULL, | ||
|
||
CONSTRAINT "UsecaseCategory_pkey" PRIMARY KEY ("id") | ||
); | ||
|
||
-- CreateTable | ||
CREATE TABLE "UsecaseSubcategory" ( | ||
"id" TEXT NOT NULL, | ||
"name" TEXT NOT NULL, | ||
"usecaseCategoryId" TEXT NOT NULL, | ||
|
||
CONSTRAINT "UsecaseSubcategory_pkey" PRIMARY KEY ("id") | ||
); | ||
|
||
-- CreateIndex | ||
CREATE INDEX "Template_usecaseCategoryId_usecaseSubcategoryId_idx" ON "Template"("usecaseCategoryId", "usecaseSubcategoryId"); | ||
|
||
-- CreateIndex | ||
CREATE UNIQUE INDEX "Template_usecaseCategoryId_usecaseSubcategoryId_key" ON "Template"("usecaseCategoryId", "usecaseSubcategoryId"); | ||
|
||
-- CreateIndex | ||
CREATE UNIQUE INDEX "UsecaseCategory_name_key" ON "UsecaseCategory"("name"); | ||
|
||
-- CreateIndex | ||
CREATE UNIQUE INDEX "UsecaseSubcategory_name_key" ON "UsecaseSubcategory"("name"); | ||
|
||
-- AddForeignKey | ||
ALTER TABLE "Template" ADD CONSTRAINT "Template_usecaseCategoryId_fkey" FOREIGN KEY ("usecaseCategoryId") REFERENCES "UsecaseCategory"("id") ON DELETE SET NULL ON UPDATE CASCADE; | ||
|
||
-- AddForeignKey | ||
ALTER TABLE "Template" ADD CONSTRAINT "Template_usecaseSubcategoryId_fkey" FOREIGN KEY ("usecaseSubcategoryId") REFERENCES "UsecaseSubcategory"("id") ON DELETE SET NULL ON UPDATE CASCADE; | ||
|
||
-- AddForeignKey | ||
ALTER TABLE "Usecase" ADD CONSTRAINT "Usecase_templateId_fkey" FOREIGN KEY ("templateId") REFERENCES "Template"("id") ON DELETE RESTRICT ON UPDATE CASCADE; | ||
|
||
-- AddForeignKey | ||
ALTER TABLE "UsecaseSubcategory" ADD CONSTRAINT "UsecaseSubcategory_usecaseCategoryId_fkey" FOREIGN KEY ("usecaseCategoryId") REFERENCES "UsecaseCategory"("id") ON DELETE RESTRICT 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
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
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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