A source is keyed by a uuid, owned by the organisation or one person, and labelled within that scope. The webhook path is a separate unique column, so renaming either leaves stored events, event types, triggers, groups, mappings and drafts alone. Delivery policies, sealed secrets and group keys use the id.
Migrations
One ordered series for the whole binary, applied once at boot by the owner role
under an advisory lock. Each module's schema starts from one baseline file,
NNNNN_<module>.sql. Until the first release, change a module's schema by
editing its baseline and recreating the database. After the first release, add
a file named NNNNN_<module>_<change>.sql and never edit one that has shipped.