Merge pull request #365 from Ashutosh-Bhadauriya/feat/add-attribute-archive

Feature: Add ability to archive attributes
This commit is contained in:
Johannes
2023-06-13 06:05:28 -05:00
committed by GitHub
8 changed files with 48 additions and 8 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