Docs · Your data and your team
Business CSV exports
Download current business records and reconcile them with your structured backup.
The owner can download current business records at GET /api/business-export/<kind>.csv, using a native owner session. The fixed kinds below include all stored statuses, including drafts, cancelled bookings, resolved queue entries and declined proposals. Optional collections produce a header-only file when absent. There is no subscription, billing check or provider connection required to export or restore supported records. Downloaded files contain private guest information and need private storage.
CSV exports are for inspection and transfer to another system. They are not accepted by the venue backup restore or the guest move-in importer. Use the structured backup to move a supported installation and its import/erasure custody records. CSV downloads read current records without sending messages, approving plans, changing reminder status or recording provider delivery. Separate CSV requests can observe different revisions if staff are editing; use one structured backup when a consistent installation snapshot is required.
CSV format, links and version
Files use UTF-8, comma delimiters, a header row, CRLF record separators and a final CRLF. Every cell is double quoted; quotes inside cells are doubled and embedded newlines are preserved (RFC 4180). A cell whose first non-whitespace character is =, +, - or @ receives a leading apostrophe, including when spaces, tabs, newlines or a byte-order mark precede the character. This protects spreadsheet opening; programmatic readers should use data_json for original scalar values rather than stripping apostrophes indiscriminately. A phone beginning + and a negative number can therefore have this protective prefix in their scalar column.
Every kind has two common columns:
| Column | Meaning |
|---|---|
csv_version | Business CSV schema version, currently 1, independent of the archive version. |
data_json | The complete current record as JSON, after the exclusions and erased-guest treatment below. Contains optional and nested fields, not just the scalar projections. JSON strings retain original content; property order is not a contract. |
Columns ending _json contain JSON for the corresponding property without that suffix. A missing optional property produces an empty CSV cell; explicit JSON null is null in a JSON column. Scalar null and absent properties both produce empty cells; data_json distinguishes them. Booleans use true/false, numbers use their stored numeric value, and JSON arrays retain order. Missing collections are not invented. The exporter does not infer defaults, historical dates, consent, delivery or outcomes.
Column names below match the stored fields, including the snake_case names of diner records. New optional fields can appear in data_json; a breaking change to a column's name or meaning requires a new csv_version. Consumers should read headers and ignore unknown columns. An empty kind has no row version; this document and the exported businessCsvVersion identify its schema. Unknown kind names return 404; filenames cannot select arbitrary tables or fields.
id is the stored stable identifier of that row; keep it as text. guestId joins to guests.id, serviceId to services.id, bookingId to bookings.id, and tableIds entries to tables.id. scheduleId joins to schedules.id. serverId and sectionId join to the servers and sections inside the linked service's staffing_json. combination.id links to combinations.id when the current definition still exists; the booking retains its own exact snapshot. Rooms are connected to tables by tables.area = rooms.name, not a room identifier. Retired/deleted definitions and snapshot references may not have a current matching row.
Actor/owner/preparer/approver identifiers and provenance references remain as recorded; they are not credentials. Native sign-in identities and agent key records are excluded, so their IDs may have no exported directory row. audit.subject identifies the object appropriate to its action (for example a booking, service, queue entry or proposal). Nested proposal plans may refer to several kinds. Unchanged IDs and nested reference fields allow reconciliation without copying access credentials.
Unless stated otherwise, *At values are recorded timestamp strings, normally explicit-offset instants; missing timestamps mean not recorded. Schedule local dates/times and imported guest-history dates retain their original representation. venue.timezone supplies the IANA zone for local interpretation. Counts and durations are people and minutes respectively. Financial amounts are integer USD cents, with 100 meaning $1.00; each charge/request retains currency: usd.
Kind and column definitions
Each row below defines the kind-specific columns in addition to csv_version and data_json.
| Kind | Columns and definitions |
|---|---|
venue | One row. name: venue display name; timezone: IANA time zone; hostIds_json: operator IDs granted host capability; pacingHostIds_json: operator IDs granted pacing override capability; leadIds_json: operator IDs granted the separate seating-lead capability; serverIds_json: operator IDs granted the separate server capability (own-section sheet and kitchen view only); financeIds_json: operator IDs granted the separate finance capability (read-only reconciliation and finance exports); embedOrigins_json: exact https website origins the owner allows to frame the BOOK-002 booking widget. analytics_json: BOOK-002 analytics settings {ga4: {enabled, measurementId, debugMode}, meta: {enabled, datasetId, testEventCode}}; never the GA4 API secret or Meta access token. These are historical identity references/grants, not sign-in credentials. |
rooms | id: room ID; name: named area used by tables; kind: indoor, outdoor or bar. |
tables | id: table ID; label: displayed table label; seats: physical seats; area: room/area name; x, y: floor-plan coordinates; shape: round, square, rectangle or bar; retiredAt: retirement timestamp; accessTags_json: declared access tags. Retired tables remain included. |
allocation-tables | Same columns and meanings as tables, for the optional stored allocation-table inventory. This collection may be absent; it is not an additional set of physical seats to add to current tables. |
combinations | id: approved join ID; tableIds_json: component table IDs; capacity: joined party capacity; accessTags_json: guaranteed tags of the join; setupMinutes: setup duration; enabled: current usability; adjacent: recorded adjacency approval. Disabled definitions remain included. |
services | id: service ID; name: shift name; startAt, endAt: service interval; status: draft/published; version: stored service revision; turnMinutes: default dining duration; coverLimit: service covers cap; publicQueuePaused: online intake pause flag; closedAt, closedBy, closeReason: queue closure time, actor ID and recorded reason; scheduleSource_json: generating schedule ID/version/local date; bookingRules_json: channel rules; turnPolicy_json: turn/reset policy; pacing_json: pacing policy; staffing_json: roster/sections/caps; directInventory_json: protected direct-booking inventory. Nested policy definitions follow below. |
schedules | id: template ID; name: template name; shift: breakfast/lunch/dinner; seasonStart, seasonEnd: inclusive local season dates; startTime, endTime: local HH:mm shift times; startOffset, endOffset: optional explicit offset selections for ambiguous local times; turnMinutes: default turn duration; coverLimit: covers cap; weekdays_json: selected weekday numbers (Sunday 0 through Saturday 6); exceptions_json: local-date overrides/closures; version: template revision; updatedAt, updatedBy: last update time and actor ID. |
service-notes | id, venue-local date, kind (shift/kitchen), history_json (ordered text/actor/at revisions, including empty text after erasure). Dates link to services starting on that venue-local date. |
service-changes | Reviewed closure and private use inventory intervals: id, serviceId, scope, tableIds_json, startAt, endAt, reason, approvedBy, approvedAt; tasks_json retains each impacted booking ID, responsible manager ID, open, failed-contact or resolved status, reason, staff-recorded outcome and last updating actor and time. Tasks also retain reviewed relocation before and after snapshots, reviewer, expiry and guest decision; outreach attempt ID, provider acceptance or guest-opened outcome, actor and time; and explicit cancellation reason with succeeded refund ID and exact integer cents. Provider acceptance alone is not mailbox delivery. Guest capability digests are excluded from CSV and structured archives, so restored offers cannot execute. Guest erasure clears permission, linked free text and personal booking snapshot fields while retaining action accountability. |
bookings | id: reservation ID; serviceId, guestId: service/guest links; partySize: covers; startAt, endAt: committed dining interval; status: booked/seated/completed/cancelled/no-show; source: online, walk-in or waitlist; attribution_json: for online bookings, {door: widget, origin} (the allowed website the widget reported) or {door: booking-page}, absent on older or staff bookings; createdAt: creation time; setupStartAt, cleanupEndAt: protected setup/reset interval bounds; expectedEndAt: recorded expected departure; needsBussing: physical reset required; assignmentLocked: assignment lock; tableIds_json: assigned tables; combination_json: committed join snapshot; requiredArea: guaranteed area; requiredAccessTags_json: guaranteed tags; requests_json: requests, not promises; requestsAcknowledgedAt: acknowledgment time; ruleOverride_json, pacingOverride_json: attributed exceptions; serverId, sectionId, serverName, sectionName: serving assignment IDs and labels; servingHistory_json: assignment change log. |
waitlist | id: queue entry ID; serviceId, guestId, bookingId: linked service, guest and eventual booking; partySize: covers; status: stored queue status (including legacy waiting/cancelled values); source: staff or public; createdAt, seatedAt, resolvedAt: intake/seating/resolution times; priority: recorded priority; owner: responsible actor ID; preferredAt, preferredArea: preferences, not commitments; requiredAccessTags_json: declared access needs; contactConsent: explicit permission to contact about this entry, independent of marketing permission; actualWaitMinutes: recorded elapsed wait or null; quote_json: quoted range and basis; history_json: queue action/consent/preference history; followUps_json: assigned follow-up work. |
guests | id: guest ID; name, email, phone: recorded contact values; notes: current guest notes; erased: erasure marker; profile_json: explicit tags, VIP level, seating preference and field sources; provenance_json: contact/note sources; notesHistory_json: dated note edits; history_json: retained imported visit history. Native reservations are exported separately in bookings; this array does not purport to include every native visit. |
diner-accounts | One row per restaurant account. id: stable account ID; email: verified email, trimmed and lowercase; created_at: account creation instant; updated_at: latest favorite or preference update instant, initially the creation instant; favorite: stored integer 0 or 1 for this restaurant; preferences: saved restaurant-specific text, at most 500 characters, with an empty string meaning no saved text. These facts grant no staff role or marketing, review or group-sharing permission. |
diner-bookings | One row per individually verified account and booking pair. account_id: joins to diner-accounts.id; booking_id: joins to bookings.id; guest_id: recorded guest link to guests.id; verified_at: latest successful explicit verification instant for this pair. The composite key is (account_id, booking_id); this kind has no separate id. Matching email or phone alone does not create a row. |
inquiries | id: inquiry ID; guestId: guest link; ownerId: responsible actor ID; status: open/offered/accepted/converted/closed; partySize: requested covers; serviceId: requested service; requestedStartAt: requested start; requiredArea, requiredAccessTags_json: required commitments; requests_json: unguaranteed preparation/preferences; replyDueAt: reply deadline; createdAt, updatedAt, closedAt: lifecycle times; bookingId: conversion link; acceptedOfferVersion: accepted offer revision; acceptedAt: acceptance receipt time; offer_json: exact offer; messages_json: actual inquiry-page conversation. |
risk-tasks | Stored riskDecisions. id: review/task ID; bookingId: booking link; kind: contact/policy-review; decision: accepted/declined; actor, at, reason: deciding actor, time and reason; dueAt: accepted work deadline; completedAt, completedBy, outcome: completion time, actor and staff-reported outcome; snapshot_json: cited flags and reservation status at decision. These rows do not claim a provider send or authorize a fee/policy change. |
audit | id: audit ID; at: event time; actor: actor ID; source: person, preparation-key or guest-supplied (unknown for older events); action: command/action name; subject: action-specific object ID; reason: recorded reason; before_json, after_json: exact retained change snapshots; changes_json: changed records with kind, ID and detached before/after values (null means absent); pacing_json: attributed pacing exception, if any. |
service-events | id: observation ID; bookingId: booking link; at, actor: observation time and actor ID; source: staff-recorded; reason: observation/correction reason; correctsEventId: prior service-event ID being corrected; before_json, after_json: service/floor/booking states and bussing flags. A paid label is a staff observation, not a payment transaction. |
proposals | id: proposal ID; kind: prepared action kind; status: pending/approved/declined; preparedBy, preparedAt: preparer ID and preparation time; approvedBy, approvedAt: deciding person and decision time where stored (including declines); reason: preparation reason; plan_json: exact retained inputs, snapshots, proposed actions and previews for that kind. Preparation/approval does not prove message delivery. |
reminders | id: reminder record ID; bookingId, guestId: links; message: approved exact text; status: approved/exported; approvedBy, approvedAt: approval actor ID and time. Exported means handed to the venue's own sender, not sent/delivered. This business download includes every retained reminder record and does not change its status; the operational /api/reminders.csv has its own approved-batch eligibility and export behavior. |
performance-reports | One row per retained publication in pm_performance_reports. id: publication ID; serviceId: linked service; publishedAt, publishedBy: publication time and actor ID; floorVersion: venue state revision at publication; report_json: complete immutable published performance snapshot, parsed from the stored JSON. data_json contains these publication fields plus report. Live reports calculated on demand are not separate stored publications. A service-close publication additionally retains report.closure: at, actor and the complete fixed coverReport (the reservation report schema, exact filtered rows and cover denominators at close). It is committed with service closure and exported/restored with the other performance publications. Later observation adjustments are derived from retained service-event IDs and do not mutate this original. |
payment-requests | id: immutable deposit request ID; bookingId: reservation link; amountCents, currency: requested integer USD cents; dueAt: exact deadline; followupOwnerId: responsible staff ID; createdBy, createdAt, reason: creating manager, time and recorded reason; state: stored unpaid/paid/expired/exception observation, without recalculating deadline exceptions during export; providerAttemptAt: first reserved Stripe creation attempt; providerReference: Stripe Checkout Session ID, a reconciliation reference rather than the private hosted link; verifiedAt: last retained server verification time; paidAt: retained verified payment time. An unpaid row past its deadline is an exception on the live floor; the CSV preserves its stored state and deadline separately. Hosted Checkout URLs and installation return URLs are omitted from this CSV. No link delivery is inferred. |
refund-charges | chargeId: Stripe captured-charge reference; bookingId: reservation link; amountCents: captured integer USD cents; importedRefundedCents: refunded cents already observed when the charge was synchronized, consuming its balance; currency: usd; syncedBy, syncedAt: synchronizing owner and time. These immutable imported facts are separate from later Placemat refund records. |
refunds | id: stable Placemat refund ID; requestId: human-submitted idempotent request reference, unique together with actorId; actorId: submitting person; bookingId, chargeId: reservation and exported charge links; amountCents: integer USD cents refunded against that charge; reason: recorded explanation; status: pending/succeeded/failed/canceled; processorId: Stripe refund reference when confirmed; createdAt, updatedAt: reservation and latest update times. Local processing leases are omitted. Pending and succeeded amounts consume the charge balance; failed/canceled records remain available for accountability. |
refund-events | id: stable numeric event ID; refundId: exported refund link; actorId: recorded submitting person; at: event time; before_json, after_json: retained bookingId/chargeId/amountCents/reason/status/processorId snapshots, with null before the first reservation. Every retained refund event also appears in audit as payment.refund, with ID refund-<event id>, the linked booking as subject and a refunds change. Provider-confirmed progress and human reservation snapshots retain their recorded values; this export creates neither a provider event nor a receipt. |
refund-webhooks | Minimal verified-event receipts: id, eventId, refundId, eventType, processorStatus, receivedAt. Raw payloads, signatures, provider bodies and credentials are never stored. The local transaction claim is omitted from CSV and cleared in structured archives. |
refund-followups | refundId, original ownerId, actorId, requestId, open/resolved state, failureStatus, creation/update/resolution times. This record does not submit another refund. Its display reason is read from the original refund, so erasure removes it once without another copy. |
refund-notices | id, refundId, reviewed outcome, immutable amountCents and remainingCents at send, requestedBy, requestedAt, sending/accepted/unconfirmed state, opaque providerId, acceptedAt. No recipient address or message body is retained. Acceptance is not proof of mailbox delivery. |
group-links | id: connected-venue ID; name, origin: the member venue and its https address; ceiling_json: the most any group admin may read there; joinedAt, revokedAt: connection and disconnection times. Link secrets, invitation codes and tokens are never exported. Group connections, grants and tokens are excluded from structured backups, so a restore starts ungrouped and the owner reconnects. |
group-admins | operatorId: the group admin person; venueId: home or a connected-venue ID; rights_json: the read-only rights granted for that venue; grantedBy, grantedAt: the owner's recorded decision. Never restored from a backup. |
Nested JSON definitions
All nested values use their stored field names; data_json contains the same values as their _json columns. They are lossless for currently stored JSON values after the documented exclusions.
| Property | Meaning of retained fields |
|---|---|
Guest profile | tags: explicit labels; vipLevel: none/regular/vip; seatingPreference: recorded preference; provenance: per-profile-field sources. |
Guest provenance, note provenance | source: guest-supplied, staff-observed or imported; actor: source actor ID or null; at: source time or null; reference: original source reference when retained. No source/date is inferred when missing. notesHistory entries pair notes text with this provenance. |
Guest history | Entries contain date, partySize, and status of an imported historical visit, as retained. |
bookingRules | Per online, walk-in or waitlist channel: minParty, maxParty: size bounds; horizonDays: booking horizon; leadMinutes: minimum lead; sameDayCutoff: local cutoff; slotMinutes: slot step; inquiryAbove: inquiry-routing size threshold; blockedStarts: blocked offset instants. Absent policy remains absent, rather than exporting computed default rules. |
turnPolicy | cleanupMinutes: reset duration; lastSeatingAt: latest start; partyTurns: minSize/maxSize/minutes rules; tableTurns, areaTurns: table-ID/area-name keyed dining minutes. |
pacing | intervalMinutes: bucket width; arrivalCovers, arrivalParties, concurrentCovers: limits; areaArrivalCaps: area-name keyed arrival limits. |
staffing | servers: id/name/coverCap/onBreak and optional operatorId (the signed-in server person, who must hold the owner-issued server grant); sections: id/name/serverId/tableIds; kitchenAreaCaps: area-name keyed concurrent kitchen caps. Roster IDs are local to the service. |
directInventory | Each protected inventory entry has id, tableIds, startAt, endAt, partySize. |
Schedule exceptions | Each entry has date, closed, and optional replacements for startTime/endTime/startOffset/endOffset/turnMinutes/coverLimit. |
Booking combination | Exact id/tableIds/capacity/accessTags/setupMinutes plus areas at commitment time. |
requests | occasion, dietaryNotes, allergyNotes, seatingPreference, requestedArea: requested text; stroller, highchair, wheelchair: requested accommodations. These are not guaranteed safety or placement assertions. |
ruleOverride | actor, at, channel, violations, reason: attributed channel-rule exception. |
pacingOverride, audit pacing | actor, at, reason; violations entries contain kind, label, limit, current, projected, excess. |
servingHistory | Entries contain id, at, actor, action, optional reason, and from/to assignments (serverId/serverName/sectionId/sectionName or null). |
Queue quote | minMinutes, maxMinutes: quoted wait range; at, actor, basis: receipt time, quoting actor and basis. |
Queue history | Each event records at, actor, action, from, to, reason, owner and optional details. Details preserve the actual action payload/snapshot, including preference/contactConsent changes or quote references where recorded. |
Queue followUps | id, kind (no-contact/missed-offer/service-close), reason, owner, createdAt, status (open/completed); optional completedAt, completedBy, outcome. |
Inquiry offer | version, serviceId, startAt, endAt, cleanupEndAt, partySize, optional requiredArea, requiredAccessTags, guarantees: exact proposed/accepted commitments. |
Inquiry messages | Entries contain id, author (guest/venue), optional actorId, at, message. These are posts in the inquiry page, not email/SMS delivery receipts. |
Risk snapshot | flags: cited fact labels; status: booking status at review. No predictive probability is stored. |
Audit before/after | Action-specific assignment arrays (bookingId/tableIds/locked and optional serving/setup/combination values), expectedEndAt, or service endAt/version snapshots. |
Service-event before/after | status: service stage; floorStatus: physical stage; bookingStatus: reservation state; needsBussing: reset flag. |
Proposal plan | Kind-specific retained preparation input and output, including nested services/bookings/queues, table moves, snapshot versions, timing/policy previews or reminder drafts. It is evidence of what was prepared; current records remain in their own files. Nested IDs retain the same linking meanings. |
Published report | The exact generated service performance snapshot: generation time, service reference, booking/queue observation rows, numeric duration/wait distributions and recorded coverage/missing-data explanations. Nested booking/queue/table/actor references retain their stored meanings. It preserves facts at publication rather than recalculating against today's state. |
Exclusions, erasure and current limits
Business CSVs include the current venue state, guest records and retained published performance-report snapshots. They exclude native auth accounts/sessions/sign-in links, agent keys, environment/configuration values, provider credentials, transient request/review tokens, rate limits, import staging/journals/original artifacts and erasure identity hashes. Historical import custody is included by the structured archive where retained. No independent attachments are currently modeled by this exporter.
Every JSON object is scrubbed recursively, including proposal snapshots and history details. Property names are normalized to lowercase ASCII alphanumerics; properties whose normalized names contain token, secret, password, credential, bearer, authorization, cookie, apikey, privatekey or session are omitted. Normalized providerurl, providerreturnurl and processinguntil are also omitted. In particular, waitlist managementTokenHash, inquiry tokenHash, hosted Checkout URLs and local refund processing leases are absent from scalar columns, nested JSON and data_json. The dedicated payment-request CSV projects its non-secret Checkout Session identifier as providerReference so that reference remains portable. Their omission does not remove guest IDs or source/reference IDs. The scrubber does not guess whether arbitrary user-written prose contains a secret; retained business text remains business data.
DATA-002 erasure sanitizes guest-linked booking requests, queue preferences/contact permission, inquiry messages/offers, task reasons/outcomes, audit/service reasons and retained proposal copies before export. Audit snapshots linked to the erased guest are replaced with redaction markers, retaining the change kind, record ID, actor, action and time. The CSV generator also independently replaces any erased: true guest object with the canonical tombstone: its id, name Erased guest, empty email/phone/notes, empty history and erased: true. Old profile/provenance/note-history or unexpected extra values on such a guest cannot escape through its direct row or JSON. Anonymous operational times, status, counts and accountability references remain. CSVs cannot retrieve personal values already erased, but erasure cannot revoke a copy someone downloaded earlier.
The financial foundation retains staff deposit requests, their Stripe session references, synchronized captured charges, refund reservations/outcomes and refund audit events. It does not establish complete PAY-010 collection/delivery/waiver or PAY-005 notice/webhook journeys. Card details, ticketed experience/add-on inventory, marketing subscription/preferences ledgers, delivered SMS/email outcomes, voice conversations and stored media attachments remain outside the currently stored records. Queue contact permission is the explicit consent currently stored; it is not marketing consent. Inquiry conversations and approved reminder drafts/export records are the message records currently available. Nonportable card secrets (PAN, CVC, magnetic-stripe/track data, provider card tokens) and provider/API secrets are not collected into this export. New supported domains need their own documented records/exclusions before claiming full DATA-003 coverage.
Diner records, relationships and custody
The two diner CSVs use the common csv_version and data_json columns plus every field defined above. Their structured equivalents are pm_diner_accounts and pm_diner_bookings, with the same six account fields and four link fields, unchanged IDs and timestamp strings. CSV favorite and the archive field both retain integer 0 or 1; the public account API presents a boolean. Account rows are ordered by id in CSV, and link rows by account_id then booking_id. Accounts can have several individually verified links. Counts are account rows and verified pairs, rather than unique guests or reservations; reconcile the two kinds separately against their archive tables and join the link fields to the exported accounts, reservations and guests. The account has no direct guest field.
Staged restore validates unique nonempty account IDs and unique normalized valid email addresses of at most 254 characters, the favorite flag, preference length and parseable creation and update timestamps. Each link must reference an existing account, an existing reservation and that reservation’s non-erased exported guest, have a unique account and booking pair, and have a parseable verification timestamp. Invalid diner records refuse restore before staged product records are applied. These are record-validation checks; opening a restored account still requires new email proof and a new device session, and current booking contact and guest matching are checked again when granting diner access.
pm_diner_challenges, pm_diner_sessions and pm_diner_mail_limits are excluded from structured archives and have no business CSV kind. This excludes live pending proof as well as expired proof: the verification digest, private booking and guest references, email, current-contact digest and expiry do not travel as challenge custody. Device digests, session expiry, management booking reference, current-state fingerprint, preview ID and exact preview data are excluded with the entire session table. Daily mail counters and the public minute-limit counters also remain local. Raw one-use codes and device bearers are never portable business fields. Restoring account and verified-link records restores neither a device session nor a pending send or executable reservation preview, and restore sends nothing.
Preference changes and account forget advance the existing redaction checkpoint. Forget removes the account, all its verified links, pending proofs for its email and all its device sessions while preserving reservations. Guest erasure removes pending proofs for the erased guest, every linked diner account, all sessions for those accounts and their verified links; retained audit facts keep action accountability with personal snapshots redacted. The guest access export includes linked account fields and saved preferences, and retention review includes their latest update. Previously downloaded copies cannot be recalled. A new destination needs a trusted later same-source erasure journal to recognize a later forget or erasure absent from an older archive.
DIST-005 remains PARTIAL. These field definitions describe implemented portability and custody; completion still requires every original acceptance point, both approved rider paragraphs and all DONE-RIDERS rows, including direct public-door proof and landing evidence.
Structured archive version and custody
The owner HTTP backup is a JSON array containing the same manifest/part/closing records used by the CLI archive. CLI .rer packaging is handled by the portability module. The structured manifest uses format: runeditrun-portability, version: 2, and product: hospitality/placemat; this is separate from business CSV version 1. Version 1 archives lack authenticated restoration/erasure binding and are refused by the normal reader.
The manifest records export time, source installation identity, schema identity, table schemas/counts/dependencies, excluded table/column inventory, required configuration names, part count, erasure epoch/journal and, where supplied by the runner, applied migrations. Parts carry ordered rows and checksums; the closing record carries content and archive hashes. These integrity hashes are not guest-management credentials. Restore validates integrity, relationships, compatible schema and erasure fences before applying supported data into an empty destination. It refuses an older known pre-erasure archive; supply a trusted later same-source erasure journal when moving older data to a new installation. See backup and restore for the supported actions.
The archive excludes native oa_*/oc_* auth records, platform-owned transient/bookkeeping tables, pm_agent_keys, pm_public_limits, pm_assertions, pm_analytics_keys (the BOOK-002 GA4 API secret and Meta access token, write-only secrets) and pm_analytics_results (each provider's latest answer). The exact inventory is present in each manifest's excludedTables. Durable import custody and erasure fences travel; archived import originals are subject to erasure withdrawal. Re-enter configuration through setup: OWNER_EMAIL, SESSION_SECRET, SETUP_TOKEN, AUTH_ORIGIN, MAIL_PROVIDER and MAIL_FROM are required configuration names, not exported configuration values. Staff sign-ins and agent keys must be established in the destination. A restore brings back BOOK-002 analytics settings without keys, so the restored venue asks no analytics question and sends nothing until the owner enters the GA4 API secret and Meta access token again.
Financial tables pm_payment_requests, pm_refund_charges, pm_refunds and pm_refund_events travel as supported structured records. Every exported pm_payment_requests.provider_url is replaced with null: a hosted Stripe Checkout URL is a private payment-access link. This canonical row redaction preserves the table's columns and the existing manifest exclusion inventory. The archive retains the Checkout Session ID, exact attempt timestamp and original return URL so an unresolved request can be reconciled without changing its idempotency parameters. Refund processing_until leases reset to zero in the exported records. Worker configuration, including the Stripe secret key and host-PIN peppers, is never archived; configure the original merchant account separately before reconciliation. Restore itself never contacts Stripe, charges, refunds, sends a link or claims delivery. For a restored recorded session, explicitly synchronize it to retrieve its current provider-verified link/status; do not create a replacement session. An unresolved creation attempt outside the provider idempotency guarantee needs owner reconciliation before another attempt.
Restore validates payment/refund integer amounts and USD currency, unique request/provider references, booking relationships, refund-to-charge booking matches, reserved balances, event snapshots and the event chain against each current refund. Recorded actor IDs remain historical references; restore does not recreate their sign-ins or authority. Erasure removes linked financial free-text reasons and hosted URLs while retaining amounts, status, timestamps and references; later archives and CSVs export those sanitized facts, and the existing erasure custody fence applies to restoring earlier copies.
Unlike business CSVs, the current structured archive preserves live waitlist managementTokenHash and inquiry tokenHash inside venue state so existing private links can be restored. It does not contain the original raw bearer tokens. These digests are sensitive restoration data; keep archives private. Guest erasure removes the affected digests before later backups and restore fences protect against bringing erased data back. The CSV generator intentionally applies its stricter credential scrub without changing this restoration policy.
FLOOR-013 adds services.preorderItems_json (immutable item id/name, active publication flag), services.managerPreorders_json (itemId, integer quantity, actor, at) and bookings.preorders_json (itemId, preserved itemName, integer quantity). Item IDs join to the linked service’s list. Quantities are unpaid dish requests, never payment, fulfillment or safety confirmations; guest-supplied booking totals and manager counts remain separate. Note text/history on an erased guest’s booked service dates is cleared with its audit snapshots, because shared instructions can repeat guest facts; booking preorders and needs are removed, while anonymous manager counts and accountability remain. Structured restore validates note dates/history and item/count/booking relationships before any product writes.
SETUP-001: venue setup_json and the structured venue record include legal/trading details, address, US phone, contact channels, the uploaded restaurant logo, USD, editable new-service channel rules, and the owner acknowledgment (actor, instant, version, exact rules). Restore validates these fields before publication. Guest responses expose only trading name, timezone and intentional restaurant contact/branding fields.
GUEST-004 adds guest-merges.csv: id, guestId, duplicateId, status, createdAt/createdBy, unmergedAt/unmergedBy, purgedAt, snapshots_json and pendingAssignment_json. Each snapshot includes original/merged guest values and versions, linked booking/queue/reminder/inquiry before/after records and the pre-merge audit ID baseline. Guest CSV adds mergedInto and contacts_json (kind, value, sourceGuestId, provenance); absorbed aliases remain in complete exports though ordinary guest lists hide them. Queue contactPhone binds permission to the original contact; approved reminders carry contactName/contactEmail/contactPhone. The structured pm_guest_merges journal travels with these records; restore validates identities, alias/journal relationships and original record links. Owner erasure purges all related snapshots, removes original identity values and leaves only journal action accountability; erased journal entries can never be reversed. MSG-008 and GUEST-005 inherit their future consent/POS record coverage.
Refund event, follow-up and notice archives validate their refund relationships, original requester, money, states and timestamps before applying any record. Restore never calls Stripe or sends a notice. These anonymous financial facts retain booking references after guest erasure; no guest contact, request text, signing secret or raw webhook is added to them.
PAY-004 fee policies, evidenced consent, previews, assessments, disputes and attributed events are portable business facts. The five fee-* CSVs exclude the separate execution-credential table. Archives exclude pm_fee_credentials entirely and normalize assessment processing leases to zero; historical consent never restores authority to charge. Guest erasure removes execution credentials and clears consent, decision, dispute and audit evidence/reasons. Service closing snapshots retain only reservation references and fixed integer-cent fee facts.
BOOK-005 staff intake travels in reservations.csv as staffIntake_json and in booking/audit archive records: original phone/concierge/offline source, the recorded contact preference and explicit transactional confirmation permission. This never creates marketing permission or claims delivery.
BOOK-006 checkout holds and recovery capabilities (pm_booking_holds) are named archive exclusions and never restore authority. Before confirmation only a non-personal slot allocation, expiry and salted request digest exist in that table; the raw bearer and contacts never enter it. Completed recovery stores a reservation reference and its non-contact confirmation, and owner guest erasure removes linked recovery rows. Browser recovery keeps only a tab-scoped random request identity and bearer, until the guest explicitly starts another booking, releases it or closes the tab. A restored deposit request with an unresolved processor attempt remains subject to the same authoritative collection-closure guard before its reservation can release capacity.
Stripe merchant and guarantee records add two owner CSVs. card-collections carries the collection ID, booking ID, merchant account reference, creating owner and instant, collection deadline, provider reconciliation reference, recorded state and last server verification time. card-guarantees carries its collection ID, booking and immutable policy links, issuing owner and instant, guest acceptance time, exact reviewed terms and booking snapshot, authority expiry, explicit ending and recollection instants, and maximum permitted fee in integer USD cents. fee-assessments additionally links a guest-captured decision through guest_consent_id. Guest consent and provider observations appear in the financial event CSV and the general audit CSV with their distinct sources.
Both fact tables travel in structured archives with relationship and expiry validation. pm_stripe_merchant and pm_stripe_collection_custody are named exclusions: merchant connection authority, private-link digests, hosted links and customer, setup and payment-method references never restore execution authority. The Stripe credential remains private installation configuration. A restored collection is historical and unprotected until new authorized collection; restore performs no provider request or send. Erasure deletes collection custody and clears guest-linked agreement text and snapshots while retaining anonymous monetary facts, stable references and accountability. DATA-004 retains its pending retention duties for these records.
Private report schedules
Owners download report-schedules and report-deliveries through the existing business CSV door. Schedule rows carry id, owner_id, recipient_id, venues (a JSON array of current group venue IDs), timezone, next_at (UTC), approved_at and enabled. Delivery rows carry id, schedule_id, due_at (UTC or a manual-attempt identifier), inclusive date_from and date_to, state and a generic refusal reason. The recipient contact verifier is excluded. No report body or guest contact is retained in these tables.
pm_report_schedules and pm_report_deliveries are named archive exclusions. Restoring a backup never restores outbound approvals or pending sends; the owner must reconnect venues and approve schedules again. Read-only CSV metadata remains portable to the owner. Existing report audit events remain in the ordinary business journal. Report downloads regenerate from live permitted data, so guest erasure and current group revocation apply to old email links too.
Deposit scope and immutable money facts
payment-requests adds perGuestCents and originalPartySize for explicitly per-person requests; fixed-total legacy requests leave them empty. Restores validate their product against the immutable USD amount.
Owner CSV exports add money-items, money-receipts, money-payouts and money-adjustments. These contain only processor and booking references, minor-unit USD amounts, currency, actor IDs and timestamps. Payout items_json preserves each balance transaction with its source, amount, fee and net. Adjustment rows preserve the original unmatched payout transaction and the owner-selected booking; prior facts remain unchanged. These records travel in structured archives with value and relationship validation. Restore performs no provider request and confers no merchant or execution authority. No guest names, contact details, notes, card credentials, hosted links or arbitrary reason text are copied into this ledger. Erasure keeps the reference-only monetary facts; DATA-004 retains disposal and retention duties.
Manual card authorizations extend the structured pm_card_guarantees row with authorization_cents, authorization_reference, authorization_state, authorization_held_cents, authorization_expires_at and authorization_verified_at. The owner card-guarantees CSV maps those financial facts to hold_amount_cents, hold_reference, hold_state, held_cents, hold_expires_at and hold_verified_at; authorization headers and execution credentials remain excluded by the general credential scrubber. These are immutable original amount and reference scope with separately observed provider state, amount and deadline, retained with the attributable financial event history. A restore preserves historical facts, never an active merchant connection, private collection link, customer or payment-method custody, or execution authority. Current protection requires the original installation's retained custody and matching live scope; a restored held amount is a historical observation and is unprotected. Erasure clears guest-linked agreement text and snapshots and deletes execution custody while preserving only permitted anonymous financial facts and references.
EXP-001 adds experiences: catalog ID and revision, status, name, image data URL with retained uploaded bytes, menu, pricing kind, integer USD cents, linked serviceIds, dining areas, ticket class IDs and guest-cover limits, cancellation rules, dining minutes, cleanup minutes, per-service last-seating instants, creator and updater identities and times, and publication identity and time. The owner CSV includes all fields; nested arrays and maps use JSON columns. Structured restore validates catalog identity, services, areas, class quantities, image format and full-turn fit before any product write.
Reservation experience_json freezes its catalog identity and revision, menu and name, class identity and name, original configured quantity, pricing terms, dates, areas, turn, cleanup, last seating and cancellation rules. Current configured quantity still limits new allocations; historical terms are not rewritten. Restore validates references, full reservation intervals and class totals. Guest erasure preserves these business terms while removing guest contact and personal operational fields. Reservation closureEmailConsent_json retains the guest-supplied closure-email permission time and digest of its authorized address; erasure removes it and permission never migrates to another email address by assumption.
EXP-002 adds zero-charge option definitions to experience CSV and structured records: addOns_json holds stable IDs, names, integer-cent zero prices and per-service stock limits; dietaryChoices_json holds stable published choice IDs and labels. Reservation experienceCart_json retains ticket quantity, immutable selected item IDs and names, integer quantities, zero line amounts and total, USD currency, guest-supplied source and numbered dietary choices. Frozen experience terms retain the original option definitions. Restores validate each choice and item against those terms and aggregate add-on stock across classes on each dated service. Erasure clears personal numbered dietary selections and linked audit snapshots, retains anonymous item quantities and removes checkout recovery. Active holds and checkout capabilities remain excluded from archives. There is no paid order or payment credential in this slice.
Visit feedback
feedback-visits exports visit and guest references, survey acceptance, rating and comment, consent withdrawal, recovery assignee and SLA deadline, assignment attribution, closure outcome and closing manager. feedback-messages exports the linked guest and manager thread, timestamps, actor, idempotent request reference and actual provider acceptance reference. These records restore as history. The installation-local pm_feedback_credentials and pm_feedback_settings tables are declared exclusions: restored history grants no survey access or permission to send, even after feedback is enabled again. Booking CSV records include the separate guest-supplied feedbackEmailConsent with its contact digest and timestamp; that historical consent cannot recreate a previously issued survey. Guest erasure removes feedback, thread and link custody and clears booking permission. Subject access includes only that guest’s feedback; provider follow-up records do not claim remote deletion.
Group guest sharing
The owner CSV group-guest-consent records the local diner account, shared profile reference, group origin, venue binding, separate purpose choices and update time. It contains no diner session or one-use linking code. Group readers cannot download this export or guest contacts.
Structured archives retain these local consent records with all three purpose choices switched off. Restoring records never restores sharing authority: group connections, owner grants, reader tokens, diner sessions and linking codes are excluded. Each venue needs a current connection, a fresh verified diner session and explicit guest choices before sharing again. Guest erasure and account forgetting delete local group links and pending codes; a trusted later erasure journal fences older archives. Other venues recheck current home consent and owner grants before every read and refuse when the home venue cannot answer.