Skip to content

Commit

Permalink
fix: medatada fields optional
Browse files Browse the repository at this point in the history
  • Loading branch information
HungLV46 committed Aug 15, 2024
1 parent bc168af commit 5511440
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
-- AlterTable
ALTER TABLE "collections" ALTER COLUMN "metadata" DROP NOT NULL;

-- AlterTable
ALTER TABLE "products" ALTER COLUMN "metadata" DROP NOT NULL;
4 changes: 2 additions & 2 deletions prisma/schema.prisma
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ model Product {
description String
avatar_img String
banner_img String
metadata Json
metadata Json?
owner_id Int
featured_at DateTime?
created_at DateTime @default(now())
Expand Down Expand Up @@ -89,7 +89,7 @@ model Collection {
name String?
chain_id String
contract_address String
metadata Json
metadata Json?
nfts Nft[]
product_collections ProductCollection[]
Expand Down

0 comments on commit 5511440

Please sign in to comment.