liens publics pour voter pour les participants
This commit is contained in:
@@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user