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

@@ -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
);