- 5 reversible migrations: extensions/enums, tables, indexes, views, config seed - Tables: event, user, session, upload, hashtag, upload_hashtag, comment, comment_hashtag, like, export_job, config - Views: v_feed (uploads with like/comment counts), v_hashtag_counts - Indexes optimised for feed queries, session lookup, hashtag filtering - Config table seeded with default rate limits and quotas - db.rs module: PgPool creation with auto-migration on startup - docker-compose.override.yml: expose db port 5432 for local dev - Fix crate names: async_zip, tower_governor (underscore, not hyphen) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
11 lines
434 B
SQL
11 lines
434 B
SQL
DROP INDEX IF EXISTS idx_export_job_event_type;
|
|
DROP INDEX IF EXISTS idx_user_event_name;
|
|
DROP INDEX IF EXISTS idx_session_expires;
|
|
DROP INDEX IF EXISTS idx_session_token_hash;
|
|
DROP INDEX IF EXISTS idx_hashtag_event_tag;
|
|
DROP INDEX IF EXISTS idx_upload_hashtag_hashtag;
|
|
DROP INDEX IF EXISTS idx_like_upload;
|
|
DROP INDEX IF EXISTS idx_comment_upload;
|
|
DROP INDEX IF EXISTS idx_upload_user;
|
|
DROP INDEX IF EXISTS idx_upload_event_created;
|