Skip to content

Interface: RbacMigrationOptions ​

Defined in: packages/kysely/src/schema.ts:5

Extends ​

Properties ​

PropertyTypeDescriptionInherited fromDefined in
dialect?RbacDialectDialect family. Detected from the Kysely instance when omitted.-packages/kysely/src/schema.ts:7
expiry?booleancreateRbacTables only: also create the nullable expires_at column of model_has_roles and model_has_permissions, needed by kyselyAdapter(db, { expiry: true }). Default: false (the 1.1 tables). For tables that already exist, use addRbacExpiryColumns / rbacExpiryMigration instead.-packages/kysely/src/schema.ts:13
prefix?stringPrepended to every table, constraint and index name, e.g. 'rbac_' → rbac_permissions. Default: ''.RbacTableOptions.prefixpackages/kysely/src/tables.ts:70

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