liens publics pour voter pour les participants

This commit is contained in:
Yannick Le Duc
2025-08-25 15:04:27 +02:00
parent 30a228e14f
commit 06bfe11dcc
8 changed files with 583 additions and 17 deletions

View File

@@ -38,6 +38,25 @@ export interface Participant {
created_at: string;
}
export interface Vote {
id: string;
campaign_id: string;
participant_id: string;
proposition_id: string;
amount: number;
created_at: string;
updated_at: string;
}
export interface PropositionWithVote extends Proposition {
vote?: Vote;
}
export interface ParticipantWithVoteStatus extends Participant {
has_voted: boolean;
total_voted_amount?: number;
}
export interface Database {
public: {
Tables: {