Adventure Labs Logo
Scout Docs

Herd_allowed_domains

Email domains allowlisted for herd invitations and membership

Column NameData TypeConstraints
idbigintNOT NULL
herd_idbigintNOT NULL
domaintextNOT NULL
created_attimestamp with time zoneDEFAULT timezone('utc'::text, now()) NOT NULL
lifecyclepublic.entity_lifecycle (active, retired, deleted)DEFAULT active NOT NULL
lifecycle_changed_attimestamp with time zoneDEFAULT timezone('utc'::text, now()) NOT NULL
lifecycle_changed_byuuid
lifecycle_reasontext

Domains are stored lowercase without @ (e.g. example.com). Invitee emails must match the domain exactly (subdomains do not match a parent domain). Only lifecycle = active domains permit invites and acceptance.

Security Policies (RLS)

RLS enabled. Herd scope: Herd from herd_allowed_domains.herd_id.

Operationhas_herd_ability ability keyOther paths
SELECTherd_allowed_domains.read—
INSERTherd_allowed_domains.write—
UPDATEherd_allowed_domains.write—
DELETEherd_allowed_domains.write—

Platform superadmin: FOR ALL bypass where defined.

On this page