Aller au contenu

Table: resource_request

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

This table references:

  • user(ref) via column requester_user_ref
  • capabilities(code) via column requested_capability
  • user(ref) via column decided_by_user_ref

Referenced by:

ColumnTypeNullableNotes
iduuidnoDefault gen_random_uuid()
requester_user_refbigintnoReferences user(ref)
target_asset_iduuidno
requested_capabilitytextnoReferences capabilities(code)
reasontextnoDefault ''::text
statetextnoDefault 'pending'::text
decided_attimestampyes
decided_by_user_refbigintyesReferences user(ref)
decision_reasontextnoDefault ''::text
expires_attimestampyes
requested_attimestampnoDefault now()
  • CONSTRAINT resource_request_state_check CHECK ((state = ANY (ARRAY['pending'::text, 'granted'::text, 'denied'::text, 'expired'::text])))
CREATE TABLE public.resource_request (
id uuid DEFAULT gen_random_uuid() NOT NULL,
requester_user_ref bigint NOT NULL,
target_asset_id uuid NOT NULL,
requested_capability text NOT NULL,
reason text DEFAULT ''::text NOT NULL,
state text DEFAULT 'pending'::text NOT NULL,
decided_at timestamp with time zone,
decided_by_user_ref bigint,
decision_reason text DEFAULT ''::text NOT NULL,
expires_at timestamp with time zone,
requested_at timestamp with time zone DEFAULT now() NOT NULL,
CONSTRAINT resource_request_state_check CHECK ((state = ANY (ARRAY['pending'::text, 'granted'::text, 'denied'::text, 'expired'::text])))
);

Please see the schema overview for context. This document was last regenerated on 2026-07-26T08:25:29.520Z.