Skip to content
Snippets Groups Projects
Commit 32293490 authored by Wo-ogie's avatar Wo-ogie
Browse files

fix: 잘못 설정된 참가자 unique constraints 수정

parent 854e35b9
No related branches found
No related tags found
No related merge requests found
......@@ -7,7 +7,6 @@ class Participant extends Sequelize.Model {
name: {
type: Sequelize.STRING(10),
allowNull: false,
unique: true,
},
password: {
type: Sequelize.STRING(100),
......@@ -27,6 +26,9 @@ class Participant extends Sequelize.Model {
paranoid: false,
charset: 'utf8mb4',
collate: 'utf8mb4_general_ci',
uniqueKeys: {
uniqueNameMeetingId: { fields: ['name', 'meeting_id'] },
},
},
);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment