sojorn/go-backend/internal/database/migrations
Patrick Britton c6aa867b0c feat: implement comprehensive user appeal system
- Add database schema for violations, appeals, and ban management
- Create violation tiers (hard vs soft violations)
- Implement automatic violation detection and user ban logic
- Add appeal service with monthly limits and deadlines
- Create appeal handler for user and admin interfaces
- Add API routes for violation management and appeals
- Update moderation service to auto-create violations
- Support evidence uploads and appeal context
- Track violation history and patterns for ban decisions

This creates a complete user-facing appeal system where:
- Hard violations (hate speech, slurs) = no appeal
- Soft violations (gray areas) = appealable with limits
- Too many violations = automatic ban
- Users can track violation history in settings
- Admins can review appeals in Directus
2026-02-05 07:55:45 -06:00
..
000001_initial_schema.down.sql Initial commit: Complete threaded conversation system with inline replies 2026-01-30 07:40:19 -06:00
000001_initial_schema.up.sql Initial commit: Complete threaded conversation system with inline replies 2026-01-30 07:40:19 -06:00
000002_e2ee_chat.down.sql Initial commit: Complete threaded conversation system with inline replies 2026-01-30 07:40:19 -06:00
000002_e2ee_chat.up.sql Initial commit: Complete threaded conversation system with inline replies 2026-01-30 07:40:19 -06:00
000003_e2ee_backup_recovery.up.sql Initial commit: Complete threaded conversation system with inline replies 2026-01-30 07:40:19 -06:00
000003_session_persistence.down.sql Initial commit: Complete threaded conversation system with inline replies 2026-01-30 07:40:19 -06:00
000003_session_persistence.up.sql Initial commit: Complete threaded conversation system with inline replies 2026-01-30 07:40:19 -06:00
000010_notification_preferences.down.sql Update terminology, fix search feed, and deploy updates 2026-02-03 21:44:08 -06:00
000010_notification_preferences.up.sql Update terminology, fix search feed, and deploy updates 2026-02-03 21:44:08 -06:00
000011_tagging_system.down.sql Update terminology, fix search feed, and deploy updates 2026-02-03 21:44:08 -06:00
000011_tagging_system.up.sql Update terminology, fix search feed, and deploy updates 2026-02-03 21:44:08 -06:00
000012_privacy_settings.up.sql Update terminology, fix search feed, and deploy updates 2026-02-03 21:44:08 -06:00
000013_privacy_refinement.up.sql Update terminology, fix search feed, and deploy updates 2026-02-03 21:44:08 -06:00
000014_structural_moderation.up.sql Update terminology, fix search feed, and deploy updates 2026-02-03 21:44:08 -06:00
20260126000001_add_official_accounts.down.sql Initial commit: Complete threaded conversation system with inline replies 2026-01-30 07:40:19 -06:00
20260126000001_add_official_accounts.up.sql Initial commit: Complete threaded conversation system with inline replies 2026-01-30 07:40:19 -06:00
20260126000002_auth_revamp_v2.down.sql Initial commit: Complete threaded conversation system with inline replies 2026-01-30 07:40:19 -06:00
20260126000002_auth_revamp_v2.up.sql Initial commit: Complete threaded conversation system with inline replies 2026-01-30 07:40:19 -06:00
20260126000003_create_user_category_settings.down.sql Initial commit: Complete threaded conversation system with inline replies 2026-01-30 07:40:19 -06:00
20260126000003_create_user_category_settings.up.sql Initial commit: Complete threaded conversation system with inline replies 2026-01-30 07:40:19 -06:00
20260126000004_create_users_table.down.sql Initial commit: Complete threaded conversation system with inline replies 2026-01-30 07:40:19 -06:00
20260126000004_create_users_table.up.sql Initial commit: Complete threaded conversation system with inline replies 2026-01-30 07:40:19 -06:00
20260126000005_fix_posts_schema.down.sql Initial commit: Complete threaded conversation system with inline replies 2026-01-30 07:40:19 -06:00
20260126000005_fix_posts_schema.up.sql Initial commit: Complete threaded conversation system with inline replies 2026-01-30 07:40:19 -06:00
20260126000006_profile_onboarding.down.sql Initial commit: Complete threaded conversation system with inline replies 2026-01-30 07:40:19 -06:00
20260126000006_profile_onboarding.up.sql Initial commit: Complete threaded conversation system with inline replies 2026-01-30 07:40:19 -06:00
20260126000007_auth_security.down.sql Initial commit: Complete threaded conversation system with inline replies 2026-01-30 07:40:19 -06:00
20260126000007_auth_security.up.sql Initial commit: Complete threaded conversation system with inline replies 2026-01-30 07:40:19 -06:00
20260126000008_fix_media_urls.down.sql Initial commit: Complete threaded conversation system with inline replies 2026-01-30 07:40:19 -06:00
20260126000008_fix_media_urls.up.sql feat: notification system refinements and api route fixes 2026-02-04 10:51:01 -06:00
20260127000001_add_status_and_privacy.down.sql Initial commit: Complete threaded conversation system with inline replies 2026-01-30 07:40:19 -06:00
20260127000001_add_status_and_privacy.up.sql Initial commit: Complete threaded conversation system with inline replies 2026-01-30 07:40:19 -06:00
20260127000002_optimize_e2ee_schema.up.sql Initial commit: Complete threaded conversation system with inline replies 2026-01-30 07:40:19 -06:00
20260128000001_add_message_header.down.sql Initial commit: Complete threaded conversation system with inline replies 2026-01-30 07:40:19 -06:00
20260128000001_add_message_header.up.sql Initial commit: Complete threaded conversation system with inline replies 2026-01-30 07:40:19 -06:00
20260131000001_add_post_reactions.down.sql Fix UUID casting issues in post, notification, and category repositories 2026-01-31 13:55:59 -06:00
20260131000001_add_post_reactions.up.sql Fix UUID casting issues in post, notification, and category repositories 2026-01-31 13:55:59 -06:00
20260204000001_search_optimization.up.sql feat: notification system refinements and api route fixes 2026-02-04 10:51:01 -06:00
20260204000002_circle_privacy.down.sql Implement social graph, circle privacy, and data export system 2026-02-04 16:19:05 -06:00
20260204000002_circle_privacy.up.sql Implement social graph, circle privacy, and data export system 2026-02-04 16:19:05 -06:00
20260204000003_migrate_to_sojorn_net.down.sql feat: notify archive instead of delete, fix api domain failsafe 2026-02-04 19:38:02 -06:00
20260204000003_migrate_to_sojorn_net.up.sql feat: notify archive instead of delete, fix api domain failsafe 2026-02-04 19:38:02 -06:00
20260205000002_user_appeal_system.up.sql feat: implement comprehensive user appeal system 2026-02-05 07:55:45 -06:00