import { type PikkuSchema } from './pikku-schema.types.js'; /** * Scopes, roles and the grants that bind them to users. * * `pikkuUserRole` and `pikkuUserScope` reference `user.id`, which Better Auth * owns. Auth is a prerequisite rather than an optional companion: a grant is * made to a user, so without the table the user lives in there is nothing to * grant to, and the cascade that revokes grants when a user is deleted has * nothing to hang off. * * `userId` takes its type from `user.id` rather than declaring one, because * that type is Better Auth's to decide: `text` by default, `uuid` under * `generateId: 'uuid'`, an identity `integer` under `'serial'`. The old * hand-written DDL said `text`, and postgres rejects a `text` column * referencing either of the others — so the whole statement failed and projects * wrote these tables by hand instead. */ export declare const scopeSchema: PikkuSchema;