Spaces:
Running
Running
Download scripts/init-databases.sql from Benaah/MicProtocol: direct link, hf CLI and curl.
- Browser
- Download file 1.7 kB
-
https://huggingface.co/spaces/Benaah/MicProtocol/resolve/main/scripts/init-databases.sql
- Command line
-
hf download hf://spaces/Benaah/MicProtocol/scripts/init-databases.sql
-
curl -L -o init-databases.sql https://huggingface.co/spaces/Benaah/MicProtocol/resolve/main/scripts/init-databases.sql
1.7 kB
| -- βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ | |
| -- MicProtocol - Database initialization | |
| -- Creates one DB per self-hosted integration. The MicProtocol | |
| -- API itself uses POSTGRES_DB (mirroring POSTGRES_USER) which is | |
| -- created automatically by the postgres image; these scripts add | |
| -- the rest. | |
| -- βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ | |
| -- Core extension used by MicProtocol itself. | |
| CREATE EXTENSION IF NOT EXISTS pgcrypto; | |
| -- pgvector is required by Chatwoot AND Formbricks. The image | |
| -- pgvector/pgvector:pg16 ships the extension; just enable it. | |
| CREATE EXTENSION IF NOT EXISTS vector; | |
| -- βββ MicProtocol integration DBs (each owns its own schema) β | |
| CREATE DATABASE chatwoot; | |
| CREATE DATABASE calcom; | |
| CREATE DATABASE documenso; | |
| CREATE DATABASE formbricks; | |
| CREATE DATABASE listmonk; | |
| CREATE DATABASE umami; | |
| -- βββ Per-DB extensions βββββββββββββββββββββββββββββββββββββ | |
| -- pgvector has to be enabled inside each database that needs it. | |
| \c chatwoot | |
| CREATE EXTENSION IF NOT EXISTS vector; | |
| CREATE EXTENSION IF NOT EXISTS pgcrypto; | |
| \c formbricks | |
| CREATE EXTENSION IF NOT EXISTS vector; | |
| CREATE EXTENSION IF NOT EXISTS pgcrypto; | |
| \c calcom | |
| CREATE EXTENSION IF NOT EXISTS pgcrypto; | |
| \c documenso | |
| CREATE EXTENSION IF NOT EXISTS pgcrypto; | |
| \c umami | |
| CREATE EXTENSION IF NOT EXISTS pgcrypto; | |
| \c listmonk | |
| CREATE EXTENSION IF NOT EXISTS pgcrypto; | |