Cellar は Speakeasy の業務データを管理する PostgreSQL データベースです。パッケージ @speakeasy/cellar として提供され、Drizzle ORM v1.0 beta でスキーマが定義されています。
| # | テーブル名 | 説明 | ドキュメント |
|---|
| 1 | contact | 連絡先 | 連絡先 |
| 2 | contact_purelovers | purelovers 連携データ | 連絡先 |
| 3 | contact_chat_ng | チャットNGステータス | 連絡先 |
| 4 | contact_chat_ng_history | チャットNG変更履歴 | 連絡先 |
| 5 | chat_room | チャットルーム | チャット |
| 6 | chat_message | チャットメッセージ | チャット |
| 7 | user_room_state | ユーザー既読状態 | チャット |
| 8 | chat_attachment | チャット添付ファイル | チャット |
| 9 | shop | 店舗 | 店舗 |
| 10 | shop_line_account | LINE アカウント連携 | 店舗 |
| 11 | shop_transfer | 店舗移管履歴 | 店舗 |
| 12 | shop_purelovers | purelovers 店舗連携 | 店舗 |
| 13 | broadcast | 一括配信 | 一括配信 |
| 14 | contact_tag_filter | 複合検索タグ | 複合検索タグ |
| 15 | shop_notification | 店舗通知BOX | 通知 |
| 16 | notification_setting | 通知設定 | 通知 |
| 17 | shop_notification_setting | 店舗通知チャネル設定 | 通知 |
| 18 | shop_push_subscription | 店舗PUSHサブスクリプション | 通知 |
| 19 | shop_email_recipient | 店舗メール通知先 | 通知 |
| 20 | customer_notification_setting | 顧客通知設定 | 通知 |
| 21 | customer_push_subscription | 顧客PUSHサブスクリプション | 通知 |
| 22 | push_subscription | PUSHサブスクリプション(汎用) | PUSH |
| 23 | push_message | PUSHメッセージログ/予約 | PUSH |
| 24 | domain_blacklist | ドメインブラックリスト | ブラックリスト |
| 25 | global_domain_blacklist | グローバルブラックリスト | ブラックリスト |
import { createDrizzleClient } from '@speakeasy/cellar';
// Hyperdrive 経由でクライアント作成
const db = createDrizzleClient(env.CELLAR_HYPERDRIVE.connectionString);
| サービス | Hyperdrive バインディング | 用途 |
|---|
| Fizz | CELLAR_HYPERDRIVE | チャット・配信データ |
| Vintage | CELLAR_HYPERDRIVE | 連絡先・グループデータ |
| Bell | CELLAR_HYPERDRIVE | 通知設定・PUSHサブスクリプション |
| Base | CELLAR_HYPERDRIVE | 店舗・組織データ |
| Tap | CELLAR_HYPERDRIVE | 外部API経由のデータ操作 |