This commit is contained in:
les 2019-09-05 14:41:40 +02:00
parent cd95c7eb3b
commit 5ecee0b9a1

View file

@ -9,7 +9,7 @@ module.exports = (sequelize, DataTypes) => {
const user = sequelize.define('user', {
username: {
type: DataTypes.STRING,
unique: { msg: 'error.username_taken' },
unique: { msg: 'error.nick_taken' },
index: true,
allowNull: false
},