- Add slug/short_id fields to database with auto-generation

- Create migration script for existing data
- Update admin interface to show only short URLs
- Implement redirect system to avoid code duplication
- Maintain backward compatibility with old URLs
This commit is contained in:
Yannick Le Duc
2025-08-26 22:28:11 +02:00
parent bd4f63b99c
commit caf0478e02
12 changed files with 1040 additions and 110 deletions

View File

@@ -7,6 +7,7 @@ export interface Campaign {
status: CampaignStatus;
budget_per_user: number;
spending_tiers: string; // Montants séparés par des virgules
slug?: string; // Slug unique pour les liens courts
created_at: string;
updated_at: string;
}
@@ -35,6 +36,7 @@ export interface Participant {
first_name: string;
last_name: string;
email: string;
short_id?: string; // Identifiant court unique pour les liens de vote
created_at: string;
}