-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1fa62ae
commit ba79f7d
Showing
4 changed files
with
27 additions
and
2 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
# Logs | ||
**/.DS_Store | ||
**/prisma/migrations/* | ||
#**/prisma/migrations/* | ||
|
||
logs | ||
*.log | ||
|
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 |
---|---|---|
@@ -1 +1 @@ | ||
DATABASE_URL="postgresql://bank:postgres@localhost:5432/bank?schema=public" | ||
DATABASE_URL="postgresql://bank:postgres@localhost:5432/bank?schema=public" |
22 changes: 22 additions & 0 deletions
22
bank/bank-backend/prisma/migrations/20240606225203_bank_initial/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,22 @@ | ||
-- CreateTable | ||
CREATE TABLE "AccountInfo" ( | ||
"accountId" BIGSERIAL NOT NULL, | ||
"ownerName" TEXT NOT NULL, | ||
"type" TEXT NOT NULL, | ||
"balance" BIGINT NOT NULL, | ||
|
||
CONSTRAINT "AccountInfo_pkey" PRIMARY KEY ("accountId") | ||
); | ||
|
||
-- CreateTable | ||
CREATE TABLE "TransactionHistory" ( | ||
"txnId" BIGSERIAL NOT NULL, | ||
"fromAccountId" BIGINT NOT NULL, | ||
"fromLocation" TEXT NOT NULL, | ||
"toAccountId" BIGINT NOT NULL, | ||
"toLocation" TEXT NOT NULL, | ||
"amount" INTEGER NOT NULL, | ||
"timestamp" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP, | ||
|
||
CONSTRAINT "TransactionHistory_pkey" PRIMARY KEY ("txnId") | ||
); |
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,3 @@ | ||
# Please do not edit this file manually | ||
# It should be added in your version-control system (i.e. Git) | ||
provider = "postgresql" |