forked from Samagra-Development/workflow
-
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.
refactor: change table col names to snake_case
- Loading branch information
1 parent
6cd825b
commit d2b8fdb
Showing
5 changed files
with
96 additions
and
89 deletions.
There are no files selected for viewing
34 changes: 0 additions & 34 deletions
34
packages/bff/prisma/migrations/20231204094144_ste/migration.sql
This file was deleted.
Oops, something went wrong.
37 changes: 37 additions & 0 deletions
37
packages/bff/prisma/migrations/20231204115049_ste/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,37 @@ | ||
-- CreateTable | ||
CREATE TABLE "scheme_transaction" ( | ||
"id" SERIAL NOT NULL, | ||
"scheme_code" TEXT NOT NULL, | ||
"aadhaar_number" VARCHAR(12) NOT NULL, | ||
"aadhaar_reference_number" VARCHAR(13) NOT NULL, | ||
"unique_beneficiary_id" VARCHAR(127) NOT NULL, | ||
"financial_year" VARCHAR(15) NOT NULL, | ||
"transaction_type" VARCHAR(127) NOT NULL, | ||
"transaction_amount" INTEGER NOT NULL, | ||
"in_kind_benefit_detail" VARCHAR(127) NOT NULL, | ||
"transaction_date" VARCHAR(15) NOT NULL, | ||
"remarks" TEXT, | ||
"department_data" JSONB, | ||
"user_id" UUID NOT NULL, | ||
|
||
CONSTRAINT "scheme_transaction_pkey" PRIMARY KEY ("id") | ||
); | ||
|
||
-- CreateTable | ||
CREATE TABLE "transaction_history_table" ( | ||
"id" UUID NOT NULL DEFAULT gen_random_uuid(), | ||
"request_body" JSONB[], | ||
"total_records" INTEGER NOT NULL, | ||
"valid_records" INTEGER NOT NULL, | ||
"invalid_records" INTEGER NOT NULL, | ||
"contain_errors" BOOLEAN NOT NULL DEFAULT false, | ||
"valid_records_saved" BOOLEAN NOT NULL DEFAULT false, | ||
"errors" JSONB NOT NULL, | ||
"user_id" UUID NOT NULL, | ||
"transaction_start_time" TIMESTAMP(3) NOT NULL, | ||
"transaction_end_time" TIMESTAMP(3) NOT NULL, | ||
"created_at" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP, | ||
"updated_at" TIMESTAMP(3) NOT NULL, | ||
|
||
CONSTRAINT "transaction_history_table_pkey" PRIMARY KEY ("id") | ||
); |
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