Documentation
¶
Overview ¶
Package foundation carries the schema the notify module's tables need.
One migration, creating the five notification tables. It is the one set with a dependency outside its own module: an inbox line names an account, so rig_notification_recipient references rig_account, which github.com/simonjanss/rig/auth/foundation's tenancy migration creates. That set has to be applied first, and a project with notifications and no authentication still needs it — which is why auth/foundation imports nothing but the standard library, so reaching it costs the SQL and none of rig/auth's code.
Not sessions, though. Reading your own inbox needs claims, and where those come from is not this schema's business.
The set is append-only — see github.com/simonjanss/rig/runtime/dbschema for what that means and why.
Index ¶
Constants ¶
const Table = "rig_notify_migrations"
Table is where this set records how far it has been applied. Its own table, so that notify can be released without agreeing a migration number with auth or files.
Variables ¶
This section is empty.
Functions ¶
Types ¶
This section is empty.