Aller au contenu

Table: collection_acls

Ce contenu n’est pas encore disponible dans votre langue.

This table references:

ColumnTypeNullableNotes
collection_iduuidnoReferences collections(id)
principal_typetextno
principal_idtextno
permissiontextno
granted_attimestampnoDefault now()
granted_by_user_refbigintyes
expires_attimestampyes
  • 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])))
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.