From 4b30c3f5b89529238e80e128f8cb62a2ad09ff96 Mon Sep 17 00:00:00 2001 From: pearl-truss Date: Fri, 17 May 2024 15:56:04 -0400 Subject: [PATCH] Create table for state programs --- .../migration.sql | 14 ++++++++++++++ services/app-api/prisma/schema.prisma | 10 ++++++++++ 2 files changed, 24 insertions(+) create mode 100644 services/app-api/prisma/migrations/20240517195439_create_state_program_table/migration.sql diff --git a/services/app-api/prisma/migrations/20240517195439_create_state_program_table/migration.sql b/services/app-api/prisma/migrations/20240517195439_create_state_program_table/migration.sql new file mode 100644 index 0000000000..d22f45fa3f --- /dev/null +++ b/services/app-api/prisma/migrations/20240517195439_create_state_program_table/migration.sql @@ -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; diff --git a/services/app-api/prisma/schema.prisma b/services/app-api/prisma/schema.prisma index 612dc88034..8c14616f70 100644 --- a/services/app-api/prisma/schema.prisma +++ b/services/app-api/prisma/schema.prisma @@ -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())