feat: WebSocket temps réel + Finance Workflow + corrections
- Task #6: WebSocket /ws/dashboard + Kafka events (5 topics) * Backend: KafkaEventProducer, KafkaEventConsumer * Mobile: WebSocketService (reconnection, heartbeat, typed events) * DashboardBloc: Auto-refresh depuis WebSocket events - Finance Workflow: approbations + budgets (backend + mobile) * Backend: entities, services, resources, migrations Flyway V6 * Mobile: features finance_workflow complète avec BLoC - Corrections DI: interfaces IRepository partout * IProfileRepository, IOrganizationRepository, IMembreRepository * GetIt configuré avec @injectable - Spec-Kit: constitution + templates mis à jour * .specify/memory/constitution.md enrichie * Templates agent, plan, spec, tasks, checklist - Nettoyage: fichiers temporaires supprimés Signed-off-by: lions dev Team
This commit is contained in:
138
unionflow/scripts/create-organisations.sql
Normal file
138
unionflow/scripts/create-organisations.sql
Normal file
@@ -0,0 +1,138 @@
|
||||
-- Script de création des organisations de test MUKEFI et MESKA
|
||||
-- UnionFlow - Configuration initiale
|
||||
|
||||
-- ============================================================================
|
||||
-- 1. CRÉATION DE L'ORGANISATION MUKEFI (Mutuelle d'épargne et de crédit)
|
||||
-- ============================================================================
|
||||
|
||||
-- Supprimer l'organisation si elle existe déjà
|
||||
DELETE FROM organisation WHERE code = 'MUKEFI';
|
||||
|
||||
-- Créer MUKEFI
|
||||
INSERT INTO organisation (
|
||||
id,
|
||||
code,
|
||||
nom,
|
||||
sigle,
|
||||
type_organisation,
|
||||
email,
|
||||
telephone,
|
||||
adresse,
|
||||
ville,
|
||||
pays,
|
||||
date_creation,
|
||||
date_modification,
|
||||
cree_par,
|
||||
modifie_par,
|
||||
version,
|
||||
actif
|
||||
) VALUES (
|
||||
gen_random_uuid(),
|
||||
'MUKEFI',
|
||||
'Mutuelle d''Épargne et de Crédit des Fonctionnaires et Indépendants',
|
||||
'MUKEFI',
|
||||
'MUTUELLE_EPARGNE_CREDIT',
|
||||
'contact@mukefi.org',
|
||||
'+225 07 00 00 00 01',
|
||||
'01 BP 1234 Abidjan 01',
|
||||
'Abidjan',
|
||||
'Côte d''Ivoire',
|
||||
CURRENT_TIMESTAMP,
|
||||
CURRENT_TIMESTAMP,
|
||||
'superadmin@unionflow.test',
|
||||
'superadmin@unionflow.test',
|
||||
0,
|
||||
true
|
||||
);
|
||||
|
||||
-- Activer les modules pour MUKEFI
|
||||
-- Note: Vous devrez adapter cette partie selon votre schéma de table module_organisation
|
||||
|
||||
COMMENT ON TABLE organisation IS 'MUKEFI - Mutuelle créée pour tests avec modules: Cotisations, Épargne/Crédit, Comptabilité, Documents, Notifications';
|
||||
|
||||
|
||||
-- ============================================================================
|
||||
-- 2. CRÉATION DE L'ORGANISATION MESKA (Association)
|
||||
-- ============================================================================
|
||||
|
||||
-- Supprimer l'organisation si elle existe déjà
|
||||
DELETE FROM organisation WHERE code = 'MESKA';
|
||||
|
||||
-- Créer MESKA
|
||||
INSERT INTO organisation (
|
||||
id,
|
||||
code,
|
||||
nom,
|
||||
sigle,
|
||||
type_organisation,
|
||||
email,
|
||||
telephone,
|
||||
adresse,
|
||||
ville,
|
||||
pays,
|
||||
date_creation,
|
||||
date_modification,
|
||||
cree_par,
|
||||
modifie_par,
|
||||
version,
|
||||
actif
|
||||
) VALUES (
|
||||
gen_random_uuid(),
|
||||
'MESKA',
|
||||
'Mouvement d''Entraide et de Solidarité de Koumassi et Adjamé',
|
||||
'MESKA',
|
||||
'ASSOCIATION',
|
||||
'contact@meska.org',
|
||||
'+225 07 00 00 00 02',
|
||||
'Commune de Koumassi, Abidjan',
|
||||
'Abidjan',
|
||||
'Côte d''Ivoire',
|
||||
CURRENT_TIMESTAMP,
|
||||
CURRENT_TIMESTAMP,
|
||||
'superadmin@unionflow.test',
|
||||
'superadmin@unionflow.test',
|
||||
0,
|
||||
true
|
||||
);
|
||||
|
||||
-- Activer les modules pour MESKA
|
||||
COMMENT ON TABLE organisation IS 'MESKA - Association créée pour tests avec modules: Cotisations, Événements, Solidarité, Documents, Notifications';
|
||||
|
||||
|
||||
-- ============================================================================
|
||||
-- 3. VÉRIFICATION
|
||||
-- ============================================================================
|
||||
|
||||
-- Lister les organisations créées
|
||||
SELECT
|
||||
code,
|
||||
nom,
|
||||
sigle,
|
||||
type_organisation,
|
||||
email,
|
||||
ville,
|
||||
actif
|
||||
FROM organisation
|
||||
WHERE code IN ('MUKEFI', 'MESKA')
|
||||
ORDER BY code;
|
||||
|
||||
-- Afficher les IDs pour référence
|
||||
\echo '==================================================================='
|
||||
\echo 'Organisations créées:'
|
||||
\echo '==================================================================='
|
||||
SELECT
|
||||
'MUKEFI' as organisation,
|
||||
id,
|
||||
nom,
|
||||
email
|
||||
FROM organisation
|
||||
WHERE code = 'MUKEFI'
|
||||
UNION ALL
|
||||
SELECT
|
||||
'MESKA' as organisation,
|
||||
id,
|
||||
nom,
|
||||
email
|
||||
FROM organisation
|
||||
WHERE code = 'MESKA';
|
||||
\echo '==================================================================='
|
||||
Reference in New Issue
Block a user