Skip to content

Data model

Six Payload collections. All managed via /admin.


Godchildren

One document per godchild.

Field Type Notes
name text Display name
slug text URL slug, e.g. marie
token text 24-char hex, auto-generated on create
patron_saint relation → Saints
theme_color text Liturgical accent color (CSS value)
active boolean false → all URLs return 404
allowed_sources array of text Source keys allowed in reading picker (e.g. st-luc)
push_subscription json Web Push subscription object

Token is generated by a Payload beforeChange hook: crypto.randomBytes(12).toString('hex').


Saints

Field Type Notes
name text
slug text
feast_day text Format: MM-DD
description richtext
image upload (Blob)
prayers array Embedded prayer texts

Prayers

Field Type Notes
title text
content richtext
category select base / chapelet / angelus / intercession / litanie
tags array of text
audio upload (Blob) Optional audio reading

Source of truth for content: recueil.md at repo root.


Mysteries

20 mysteries across 4 mystery types.

Field Type Notes
name text
mystery_type select joyeux / lumineux / douloureux / glorieux
order number 1–5 within the type
fruit text Spiritual fruit of the mystery
introduction richtext Introductory meditation text
days array of select Weekdays this mystery is traditionally prayed
readings array Each reading has source_key + source_label + content
audio_meditation upload (Blob) Optional audio

Reading filter: At render time, readings is filtered to only show sources in godchild.allowed_sources. Managed manually per godchild — no defaults.


Briques

A brique is a short spiritual note pushed to a godchild.

Field Type Notes
title text
content richtext
type select text / audio
audio_file upload (Blob) Required if type is audio
target relation → Godchildren null = visible to all
scheduled_date date When to show it
published boolean Draft/publish toggle

Feedback

Godchildren can react to a brique with an emoji.

Field Type Notes
brique relation → Briques
godchild relation → Godchildren
reaction select 🙏 / ❤️ / ✝️
message text Optional text message
read_at date When the godfather read it