From 28bdcc63d8f9806f124fc79bd90f9954c242b2e0 Mon Sep 17 00:00:00 2001 From: Thomas Kaul <4159106+dtslvr@users.noreply.github.com> Date: Thu, 25 Sep 2025 07:50:26 +0200 Subject: [PATCH] Feature/add settings to Access model (#5573) * Add settings * Update changelog --- CHANGELOG.md | 6 ++++++ .../20250924210446_added_settings_to_access/migration.sql | 2 ++ prisma/schema.prisma | 1 + 3 files changed, 9 insertions(+) create mode 100644 prisma/migrations/20250924210446_added_settings_to_access/migration.sql diff --git a/CHANGELOG.md b/CHANGELOG.md index 026d511be..c4caf3625 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## Unreleased + +### Added + +- Added `settings` to the `Access` model + ## 2.201.0 - 2025-09-24 ### Added diff --git a/prisma/migrations/20250924210446_added_settings_to_access/migration.sql b/prisma/migrations/20250924210446_added_settings_to_access/migration.sql new file mode 100644 index 000000000..e6b1c4ac1 --- /dev/null +++ b/prisma/migrations/20250924210446_added_settings_to_access/migration.sql @@ -0,0 +1,2 @@ +-- AlterTable +ALTER TABLE "public"."Access" ADD COLUMN "settings" JSONB NOT NULL DEFAULT '{}'; diff --git a/prisma/schema.prisma b/prisma/schema.prisma index 67ca81682..7a3c613ca 100644 --- a/prisma/schema.prisma +++ b/prisma/schema.prisma @@ -16,6 +16,7 @@ model Access { granteeUserId String? id String @id @default(uuid()) permissions AccessPermission[] @default([READ_RESTRICTED]) + settings Json @default("{}") updatedAt DateTime @updatedAt userId String user User @relation("accessGive", fields: [userId], onDelete: Cascade, references: [id])