ajout envoi smtp (paramètres, test envois, envoi à 1 participant). protège vue mot de passe

- ajout filtre page statistiques
This commit is contained in:
Yannick Le Duc
2025-08-25 18:28:14 +02:00
parent caed358661
commit b0a945f07b
21 changed files with 3523 additions and 30 deletions

View File

@@ -57,6 +57,26 @@ export interface ParticipantWithVoteStatus extends Participant {
total_voted_amount?: number;
}
export interface Setting {
id: string;
key: string;
value: string;
category: string;
description?: string;
created_at: string;
updated_at: string;
}
export interface SmtpSettings {
host: string;
port: number;
username: string;
password: string;
secure: boolean;
from_email: string;
from_name: string;
}
export interface Database {
public: {
Tables: {
@@ -75,6 +95,11 @@ export interface Database {
Insert: Omit<Participant, 'id' | 'created_at'>;
Update: Partial<Omit<Participant, 'id' | 'created_at'>>;
};
settings: {
Row: Setting;
Insert: Omit<Setting, 'id' | 'created_at' | 'updated_at'>;
Update: Partial<Omit<Setting, 'id' | 'created_at' | 'updated_at'>>;
};
};
};
}