Skip to content

Interface: PrismaAdapterOptions ​

Defined in: packages/prisma/src/index.ts:156

Properties ​

PropertyTypeDescriptionDefined in
expiry?booleanStore an expiry per role assignment and direct permission (assignRole(role, { expiresAt })). Needs the optional expiresAt field on RbacModelHasRole and RbacModelHasPermission (see schema/rbac-expiry.prisma and the upgrade steps). Default: false: the adapter never reads or writes that field, so a 1.1 schema keeps working unchanged.packages/prisma/src/index.ts:169
skipDuplicates?booleanUse createMany({ skipDuplicates: true }) for attach operations (one query, race-free). Supported by PostgreSQL, MySQL/MariaDB and CockroachDB — NOT by SQLite, SQL Server or MongoDB. Default: false (portable: reads existing links first, inserts only the missing ones).packages/prisma/src/index.ts:162

Released under the MIT License. Inspired by spatie/laravel-permission.