Add Banned usernames model database.

This commit is contained in:
Shigero Toura 2020-11-21 15:06:49 +01:00
parent 5539f6f77f
commit a84189df40
2 changed files with 18 additions and 0 deletions

18
models/bannedUsernames.js Normal file
View File

@ -0,0 +1,18 @@
const Errors = require('../lib/errors')
module.exports = (sequelize, DataTypes) =>{
let bannedUsernames;
bannedUsernames = sequelize.define('bannedUsernames', {
// Model attributes are defined here
username: {
type: DataTypes.STRING,
allowNull: false
},
createdAt: sequelize.DATE,
UpdatedAt: sequelize.DATE,
}, {
// Other model options go here
});
return bannedUsernames;
}

View File