# plugin-tables

`@fayz-ai/plugin-tables` · beta · Partial capability

Restaurants don't run on records — they run on the room. plugin-tables gives the food vertical a real floor plan: zones, tables, and live status (available, occupied, reserved, cleaning), with seat and close flows wired to your own backend. It's the difference between a generic CRM and software a host can actually work a Friday night on.

## Specs

- **Package:** `@fayz-ai/plugin-tables`
- **Version:** 0.3.0
- **Status:** beta
- **Capability:** Partial capability
- **Product type:** Restaurant / food
- **Stable channel:** `^0.3.0`
- **Migrations:** none
- **Factory:** `createTablesPlugin()`

## Data model

No tables of its own — this plugin uses the core / archetype library (same rule: tenant_id + RLS)..

## AI tools

| id | mode | description |
| --- | --- | --- |
| `tables.availability` | read | Returns which tables are available, occupied, reserved, or being cleaned. |
| `tables.seat-guests` | persist | Seats guests at a specific table. |

## Integrations

No hosted connector — external providers come in via the connector spine (`@fayz-ai/core`).

## Integrate

Add the plugin to surfaces.admin.plugins in your app's app.manifest.json and run the doctor to validate:

```json
{ "surfaces": { "admin": { "plugins": [ { "id": "tables", "enabled": true } ] } } }
```

```bash
npx fayz doctor
```
