Refactoring - Version stable
This commit is contained in:
@@ -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
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user