Feat: Add ability to archive attributes

This commit is contained in:
Ashutosh-Bhadauriya
2023-06-13 15:16:57 +05:30
parent 97263a66cc
commit 46fadf9df0
7 changed files with 47 additions and 7 deletions
@@ -0,0 +1,2 @@
-- AlterTable
ALTER TABLE "AttributeClass" ADD COLUMN "archived" BOOLEAN NOT NULL DEFAULT false;
+1
View File
@@ -64,6 +64,7 @@ model AttributeClass {
updatedAt DateTime @updatedAt @map(name: "updated_at")
name String
description String?
archived Boolean @default(false)
type AttributeType
environment Environment @relation(fields: [environmentId], references: [id], onDelete: Cascade)
environmentId String