Restructure the monorepo into clear top-level directories: - backend/: Go module root (cmd, internal, pkg, configs, migrations, docs/swagger, scripts, tests, go.mod, Makefile, .air.toml) - deploy/: Docker (Dockerfile, docker-compose*), quickstart, fluentd - docs/: project documentation + reports/ (moved from repo root) - AGENTS.md: new AI coding-agent guide at repo root Update all references to the new layout: - Dockerfile: COPY backend/go.mod, COPY backend/ (context = repo root) - docker-compose files: context ../.., dockerfile deploy/docker/Dockerfile, env_file ../../.env, volume mounts ../../backend:/app - deploy/quickstart/compose.yaml: dockerfile deploy/docker/Dockerfile - CI: working-directory: backend for go commands, file deploy/docker/Dockerfile, coverage path backend/coverage.out, health_check backend/scripts/ - backend/Makefile: docker target uses -f ../deploy/docker/Dockerfile ../ - README: architecture tree, quickstart, config paths updated Move root stray scripts (rename_models.*, run_m11_tests.sh, verify_build.sh, gorm_bool_main.go) to backend/scripts/legacy/. All moves via git mv to preserve history. Build, vet, SQLite tests, and docker compose config verified.
22 lines
805 B
SQL
22 lines
805 B
SQL
DROP TABLE IF EXISTS channel_whatsapps;
|
|
DROP TABLE IF EXISTS channel_facebook_pages;
|
|
DROP TABLE IF EXISTS channel_web_widgets;
|
|
DROP TABLE IF EXISTS channel_telegrams;
|
|
DROP TABLE IF EXISTS channels;
|
|
DROP TABLE IF EXISTS dashboard_apps;
|
|
DROP TABLE IF EXISTS reporting_events_rollups;
|
|
DROP TABLE IF EXISTS reporting_events;
|
|
DROP TABLE IF EXISTS platform_apps;
|
|
DROP TABLE IF EXISTS notification_preferences;
|
|
DROP TABLE IF EXISTS notifications;
|
|
DROP TABLE IF EXISTS attachments;
|
|
DROP TABLE IF EXISTS messages;
|
|
DROP TABLE IF EXISTS conversations;
|
|
DROP TABLE IF EXISTS inbox_members;
|
|
DROP TABLE IF EXISTS contact_inboxes;
|
|
DROP TABLE IF EXISTS inboxes;
|
|
DROP TABLE IF EXISTS contacts;
|
|
DROP TABLE IF EXISTS custom_roles;
|
|
DROP TABLE IF EXISTS account_users;
|
|
DROP TABLE IF EXISTS users;
|
|
DROP TABLE IF EXISTS accounts; |