From f16def20dd7cc9468e230f01e513ed7e762aa2cb Mon Sep 17 00:00:00 2001 From: motechFR Date: Mon, 2 Dec 2024 16:53:23 +0100 Subject: [PATCH] Add builderNFT type --- .../migrations/20241202155232_buildernft_type/migration.sql | 5 +++++ src/prisma/schema.prisma | 5 +++++ 2 files changed, 10 insertions(+) create mode 100644 src/prisma/migrations/20241202155232_buildernft_type/migration.sql diff --git a/src/prisma/migrations/20241202155232_buildernft_type/migration.sql b/src/prisma/migrations/20241202155232_buildernft_type/migration.sql new file mode 100644 index 00000000..39c5cbc8 --- /dev/null +++ b/src/prisma/migrations/20241202155232_buildernft_type/migration.sql @@ -0,0 +1,5 @@ +-- CreateEnum +CREATE TYPE "BuilderNftType" AS ENUM ('season_1_starter_pack'); + +-- AlterTable +ALTER TABLE "BuilderNft" ADD COLUMN "nftType" "BuilderNftType"; diff --git a/src/prisma/schema.prisma b/src/prisma/schema.prisma index e14ed2ff..2f90af49 100644 --- a/src/prisma/schema.prisma +++ b/src/prisma/schema.prisma @@ -3080,6 +3080,10 @@ model UserAllTimeStats { @@index([userId]) } +enum BuilderNftType { + season_1_starter_pack +} + model BuilderNft { id String @id @default(uuid()) @db.Uuid createdAt DateTime @default(now()) @@ -3087,6 +3091,7 @@ model BuilderNft { builder Scout @relation(fields: [builderId], references: [id], onDelete: Cascade) chainId Int season String + nftType BuilderNftType? currentPrice BigInt contractAddress String tokenId Int