Browse Source

Feature/add settings to Access model (#5573)

* Add settings

* Update changelog
pull/5509/head
Thomas Kaul 3 weeks ago
committed by GitHub
parent
commit
28bdcc63d8
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 6
      CHANGELOG.md
  2. 2
      prisma/migrations/20250924210446_added_settings_to_access/migration.sql
  3. 1
      prisma/schema.prisma

6
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

2
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 '{}';

1
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])

Loading…
Cancel
Save