Skip to content

Commit

Permalink
Create table for state programs
Browse files Browse the repository at this point in the history
  • Loading branch information
pearl-truss committed May 17, 2024
1 parent c4c29e7 commit 4b30c3f
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
BEGIN;
-- CreateTable
CREATE TABLE "StateProgram" (
"id" TEXT NOT NULL,
"createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
"updatedAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
"fullName" TEXT NOT NULL,
"name" TEXT NOT NULL,
"stateCode" TEXT NOT NULL,
"isRateProgram" BOOLEAN NOT NULL,

CONSTRAINT "StateProgram_pkey" PRIMARY KEY ("id")
);
COMMIT;
10 changes: 10 additions & 0 deletions services/app-api/prisma/schema.prisma
Original file line number Diff line number Diff line change
Expand Up @@ -306,6 +306,16 @@ model State {
rates RateTable[]
}

model StateProgram {
id String @id @default(uuid())
createdAt DateTime @default(now())
updatedAt DateTime @default(now()) @updatedAt
fullName String
name String
stateCode String
isRateProgram Boolean
}

model User {
id String @id @default(uuid())
createdAt DateTime @default(now())
Expand Down

0 comments on commit 4b30c3f

Please sign in to comment.