mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-14 23:01:09 +02:00
Backend: Hono/Bun service on port 3042 with JMAP client for Stalwart, account provisioning (@mana.how addresses on user registration), thread/message/send/label API endpoints, and JWT + service-key auth. Frontend: Mail module with 3-column inbox UI (mailboxes, thread list, detail/compose), local-first encrypted drafts in Dexie, and API-driven thread fetching. Scoped CSS with theme tokens. Integration: Dexie v11 schema, mail pgSchema in mana_platform, mana-auth fire-and-forget hook for account provisioning, getManaMailUrl() in API config, app registry + branding update. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
28 lines
953 B
Bash
Executable file
28 lines
953 B
Bash
Executable file
#!/bin/bash
|
|
# Create schemas within mana_platform database
|
|
# Docker entrypoint runs .sh files after .sql files
|
|
|
|
set -e
|
|
|
|
psql -v ON_ERROR_STOP=1 --username "$POSTGRES_USER" --dbname mana_platform <<-EOSQL
|
|
-- Core service schemas
|
|
CREATE SCHEMA IF NOT EXISTS auth;
|
|
CREATE SCHEMA IF NOT EXISTS credits;
|
|
CREATE SCHEMA IF NOT EXISTS gifts;
|
|
CREATE SCHEMA IF NOT EXISTS subscriptions;
|
|
CREATE SCHEMA IF NOT EXISTS feedback;
|
|
CREATE SCHEMA IF NOT EXISTS usr;
|
|
CREATE SCHEMA IF NOT EXISTS media;
|
|
|
|
-- App server-side schemas
|
|
CREATE SCHEMA IF NOT EXISTS todo;
|
|
CREATE SCHEMA IF NOT EXISTS traces;
|
|
CREATE SCHEMA IF NOT EXISTS presi;
|
|
CREATE SCHEMA IF NOT EXISTS uload;
|
|
CREATE SCHEMA IF NOT EXISTS cards;
|
|
CREATE SCHEMA IF NOT EXISTS mail;
|
|
|
|
-- Grant schema usage
|
|
GRANT ALL ON SCHEMA auth, credits, gifts, subscriptions, feedback, usr, media,
|
|
todo, traces, presi, uload, cards, mail TO mana;
|
|
EOSQL
|