Refactoring - Version stable

This commit is contained in:
dahoud
2026-03-28 14:21:30 +00:00
parent 00b981c510
commit a740c172ef
4402 changed files with 88517 additions and 1555 deletions

View File

@@ -5,7 +5,7 @@
quarkus.datasource.db-kind=h2
quarkus.datasource.username=sa
quarkus.datasource.password=
quarkus.datasource.jdbc.url=jdbc:h2:mem:test;DB_CLOSE_DELAY=-1;MODE=PostgreSQL
quarkus.datasource.jdbc.url=jdbc:h2:mem:test;DB_CLOSE_DELAY=-1;MODE=PostgreSQL;NON_KEYWORDS=MONTH,YEAR
# Configuration Hibernate pour tests
quarkus.hibernate-orm.database.generation=update
@@ -34,4 +34,15 @@ wave.api.key=test-wave-api-key-for-unit-tests
wave.api.secret=test-wave-api-secret-for-unit-tests
wave.redirect.base.url=http://localhost:8080
# Kafka — in-memory connector pour les tests (pas de broker Kafka requis)
mp.messaging.outgoing.finance-approvals-out.connector=smallrye-in-memory
mp.messaging.outgoing.dashboard-stats-out.connector=smallrye-in-memory
mp.messaging.outgoing.notifications-out.connector=smallrye-in-memory
mp.messaging.outgoing.members-events-out.connector=smallrye-in-memory
mp.messaging.outgoing.contributions-events-out.connector=smallrye-in-memory
mp.messaging.incoming.finance-approvals-in.connector=smallrye-in-memory
mp.messaging.incoming.dashboard-stats-in.connector=smallrye-in-memory
mp.messaging.incoming.notifications-in.connector=smallrye-in-memory
mp.messaging.incoming.members-events-in.connector=smallrye-in-memory
mp.messaging.incoming.contributions-events-in.connector=smallrye-in-memory

View File

@@ -47,7 +47,7 @@ CREATE TABLE conversation_participants (
CONSTRAINT fk_conv_participant_conversation FOREIGN KEY (conversation_id)
REFERENCES conversations(id) ON DELETE CASCADE,
CONSTRAINT fk_conv_participant_membre FOREIGN KEY (membre_id)
REFERENCES membres(id) ON DELETE CASCADE
REFERENCES utilisateurs(id) ON DELETE CASCADE
);
-- Index pour conversation_participants
@@ -86,7 +86,7 @@ CREATE TABLE messages (
CONSTRAINT fk_message_conversation FOREIGN KEY (conversation_id)
REFERENCES conversations(id) ON DELETE CASCADE,
CONSTRAINT fk_message_sender FOREIGN KEY (sender_id)
REFERENCES membres(id) ON DELETE SET NULL,
REFERENCES utilisateurs(id) ON DELETE SET NULL,
CONSTRAINT fk_message_organisation FOREIGN KEY (organisation_id)
REFERENCES organisations(id) ON DELETE SET NULL
);