Table: collection_acls
Esta página aún no está disponible en tu idioma.
Connected to
Section titled “Connected to”This table references:
collections(id) via columncollection_id
Columns
Section titled “Columns”| Column | Type | Nullable | Notes |
|---|---|---|---|
collection_id | uuid | no | References collections(id) |
principal_type | text | no | — |
principal_id | text | no | — |
permission | text | no | — |
granted_at | timestamp | no | Default now() |
granted_by_user_ref | bigint | yes | — |
expires_at | timestamp | yes | — |
Constraints
Section titled “Constraints”CONSTRAINT collection_acls_permission_check CHECK ((permission = ANY (ARRAY['read'::text, 'write'::text, 'admin'::text])))CONSTRAINT collection_acls_principal_type_check CHECK ((principal_type = ANY (ARRAY['user'::text, 'role'::text, 'team'::text])))
Full DDL
Section titled “Full DDL”CREATE TABLE public.collection_acls ( collection_id uuid NOT NULL, principal_type text NOT NULL, principal_id text NOT NULL, permission text NOT NULL, granted_at timestamp with time zone DEFAULT now() NOT NULL, granted_by_user_ref bigint, expires_at timestamp with time zone, CONSTRAINT collection_acls_permission_check CHECK ((permission = ANY (ARRAY['read'::text, 'write'::text, 'admin'::text]))), CONSTRAINT collection_acls_principal_type_check CHECK ((principal_type = ANY (ARRAY['user'::text, 'role'::text, 'team'::text]))));Please see the schema overview for context. This document was last regenerated on 2026-07-26T08:25:29.520Z.