Skip to content

Commit

Permalink
Hum prisma migration was .gitignore
Browse files Browse the repository at this point in the history
  • Loading branch information
chuck-dbos committed Jun 7, 2024
1 parent 1fa62ae commit ba79f7d
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Logs
**/.DS_Store
**/prisma/migrations/*
#**/prisma/migrations/*

logs
*.log
Expand Down
2 changes: 1 addition & 1 deletion bank/bank-backend/prisma/.env
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"
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")
);
3 changes: 3 additions & 0 deletions bank/bank-backend/prisma/migrations/migration_lock.toml
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"

0 comments on commit ba79f7d

Please sign in to comment.