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

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

parent 854e35b9
Branches
No related tags found
No related merge requests found
...@@ -7,7 +7,6 @@ class Participant extends Sequelize.Model { ...@@ -7,7 +7,6 @@ class Participant extends Sequelize.Model {
name: { name: {
type: Sequelize.STRING(10), type: Sequelize.STRING(10),
allowNull: false, allowNull: false,
unique: true,
}, },
password: { password: {
type: Sequelize.STRING(100), type: Sequelize.STRING(100),
...@@ -27,6 +26,9 @@ class Participant extends Sequelize.Model { ...@@ -27,6 +26,9 @@ class Participant extends Sequelize.Model {
paranoid: false, paranoid: false,
charset: 'utf8mb4', charset: 'utf8mb4',
collate: 'utf8mb4_general_ci', 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