import type { PoolClient } from 'pg'; /** * `contact_submission` — durable storage for the `contact_form` widget. * * The row is the source of truth; the notification email is best-effort. The * submit service commits this row BEFORE attempting to send, so a missing email * service, an unset store email, or an SMTP failure can never destroy a * visitor's message after the form has already told them it was received. * `email_sent` / `email_error` carry the outcome so a broken mail setup is * visible in the admin grid rather than silent. * * `widget_instance_id` is ON DELETE SET NULL on purpose: removing the widget * from a page must not delete the history of what people sent through it. The * FK is safe here because `widget_instance` is a cms table — same module, so * migration order is guaranteed (blog omits cross-module FKs for that reason). * * `status` is a string enum (`unread` | `read` | `spam`) following the * `blog_comment` convention rather than the older `smallint 0|1` one, because * these are named states rather than an on/off flag. */ declare const _default: (connection: PoolClient) => Promise; export default _default;