Skip to content

Commit

Permalink
Remove categoryId field from Category model
Browse files Browse the repository at this point in the history
  • Loading branch information
assafnoahkoren committed Nov 20, 2023
1 parent ed4d6bc commit b4ad841
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/*
Warnings:
- You are about to drop the column `categoryId` on the `Category` table. All the data in the column will be lost.
*/
-- AlterTable
ALTER TABLE "Category" DROP COLUMN "categoryId";
1 change: 0 additions & 1 deletion services/db/prisma/schema.prisma
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ model Category {
updated_at DateTime? @updatedAt
Product Product[]
sub_categories Category[] @relation("Parent")
categoryId Int?
}

enum OfferType {
Expand Down

0 comments on commit b4ad841

Please sign in to comment.