eslint do your thing

Signed-off-by: loicbersier <loic.bersier1@gmail.com>
This commit is contained in:
Loic Bersier 2020-04-30 22:20:07 +02:00 committed by loicbersier
parent 7a3dee516f
commit f5038a45f1
24 changed files with 428 additions and 428 deletions

View file

@ -1,33 +1,33 @@
'use strict'; 'use strict';
module.exports = { module.exports = {
up: (queryInterface, Sequelize) => { up: (queryInterface, Sequelize) => {
return queryInterface.createTable('guessLeaderboards', { return queryInterface.createTable('guessLeaderboards', {
id: { id: {
allowNull: false, allowNull: false,
autoIncrement: true, autoIncrement: true,
primaryKey: true, primaryKey: true,
type: Sequelize.INTEGER type: Sequelize.INTEGER
}, },
memberID: { memberID: {
type: Sequelize.BIGINT type: Sequelize.BIGINT
}, },
try: { try: {
type: Sequelize.INTEGER type: Sequelize.INTEGER
}, },
difficulty: { difficulty: {
type: Sequelize.STRING type: Sequelize.STRING
}, },
createdAt: { createdAt: {
allowNull: false, allowNull: false,
type: Sequelize.DATE type: Sequelize.DATE
}, },
updatedAt: { updatedAt: {
allowNull: false, allowNull: false,
type: Sequelize.DATE type: Sequelize.DATE
} }
}); });
}, },
down: (queryInterface, Sequelize) => { down: (queryInterface, Sequelize) => {
return queryInterface.dropTable('guessLeaderboards'); return queryInterface.dropTable('guessLeaderboards');
} }
}; };

View file

@ -1,30 +1,30 @@
'use strict'; 'use strict';
module.exports = { module.exports = {
up: (queryInterface, Sequelize) => { up: (queryInterface, Sequelize) => {
return queryInterface.createTable('bannedWords', { return queryInterface.createTable('bannedWords', {
id: { id: {
allowNull: false, allowNull: false,
autoIncrement: true, autoIncrement: true,
primaryKey: true, primaryKey: true,
type: Sequelize.INTEGER type: Sequelize.INTEGER
}, },
word: { word: {
type: Sequelize.STRING type: Sequelize.STRING
}, },
serverID: { serverID: {
type: Sequelize.BIGINT type: Sequelize.BIGINT
}, },
createdAt: { createdAt: {
allowNull: false, allowNull: false,
type: Sequelize.DATE type: Sequelize.DATE
}, },
updatedAt: { updatedAt: {
allowNull: false, allowNull: false,
type: Sequelize.DATE type: Sequelize.DATE
} }
}); });
}, },
down: (queryInterface, Sequelize) => { down: (queryInterface, Sequelize) => {
return queryInterface.dropTable('bannedWords'); return queryInterface.dropTable('bannedWords');
} }
}; };

View file

@ -1,30 +1,30 @@
'use strict'; 'use strict';
module.exports = { module.exports = {
up: (queryInterface, Sequelize) => { up: (queryInterface, Sequelize) => {
return queryInterface.createTable('TwitterBlacklists', { return queryInterface.createTable('TwitterBlacklists', {
id: { id: {
allowNull: false, allowNull: false,
autoIncrement: true, autoIncrement: true,
primaryKey: true, primaryKey: true,
type: Sequelize.INTEGER type: Sequelize.INTEGER
}, },
userID: { userID: {
type: Sequelize.BIGINT type: Sequelize.BIGINT
}, },
reason: { reason: {
type: Sequelize.STRING type: Sequelize.STRING
}, },
createdAt: { createdAt: {
allowNull: false, allowNull: false,
type: Sequelize.DATE type: Sequelize.DATE
}, },
updatedAt: { updatedAt: {
allowNull: false, allowNull: false,
type: Sequelize.DATE type: Sequelize.DATE
} }
}); });
}, },
down: (queryInterface, Sequelize) => { down: (queryInterface, Sequelize) => {
return queryInterface.dropTable('TwitterBlacklists'); return queryInterface.dropTable('TwitterBlacklists');
} }
}; };

View file

@ -1,27 +1,27 @@
'use strict'; 'use strict';
module.exports = { module.exports = {
up: (queryInterface, Sequelize) => { up: (queryInterface, Sequelize) => {
return queryInterface.createTable('guildBlacklists', { return queryInterface.createTable('guildBlacklists', {
id: { id: {
allowNull: false, allowNull: false,
autoIncrement: true, autoIncrement: true,
primaryKey: true, primaryKey: true,
type: Sequelize.INTEGER type: Sequelize.INTEGER
}, },
guildID: { guildID: {
type: Sequelize.BIGINT type: Sequelize.BIGINT
}, },
createdAt: { createdAt: {
allowNull: false, allowNull: false,
type: Sequelize.DATE type: Sequelize.DATE
}, },
updatedAt: { updatedAt: {
allowNull: false, allowNull: false,
type: Sequelize.DATE type: Sequelize.DATE
} }
}); });
}, },
down: (queryInterface, Sequelize) => { down: (queryInterface, Sequelize) => {
return queryInterface.dropTable('guildBlacklists'); return queryInterface.dropTable('guildBlacklists');
} }
}; };

View file

@ -1,27 +1,27 @@
'use strict'; 'use strict';
module.exports = { module.exports = {
up: (queryInterface, Sequelize) => { up: (queryInterface, Sequelize) => {
return queryInterface.createTable('userBlacklists', { return queryInterface.createTable('userBlacklists', {
id: { id: {
allowNull: false, allowNull: false,
autoIncrement: true, autoIncrement: true,
primaryKey: true, primaryKey: true,
type: Sequelize.INTEGER type: Sequelize.INTEGER
}, },
userID: { userID: {
type: Sequelize.BIGINT type: Sequelize.BIGINT
}, },
createdAt: { createdAt: {
allowNull: false, allowNull: false,
type: Sequelize.DATE type: Sequelize.DATE
}, },
updatedAt: { updatedAt: {
allowNull: false, allowNull: false,
type: Sequelize.DATE type: Sequelize.DATE
} }
}); });
}, },
down: (queryInterface, Sequelize) => { down: (queryInterface, Sequelize) => {
return queryInterface.dropTable('userBlacklists'); return queryInterface.dropTable('userBlacklists');
} }
}; };

View file

@ -1,33 +1,33 @@
'use strict'; 'use strict';
module.exports = { module.exports = {
up: (queryInterface, Sequelize) => { up: (queryInterface, Sequelize) => {
return queryInterface.createTable('borgars', { return queryInterface.createTable('borgars', {
id: { id: {
allowNull: false, allowNull: false,
autoIncrement: true, autoIncrement: true,
primaryKey: true, primaryKey: true,
type: Sequelize.INTEGER type: Sequelize.INTEGER
}, },
userID: { userID: {
type: Sequelize.BIGINT type: Sequelize.BIGINT
}, },
level: { level: {
type: Sequelize.INTEGER type: Sequelize.INTEGER
}, },
xp: { xp: {
type: Sequelize.INTEGER type: Sequelize.INTEGER
}, },
createdAt: { createdAt: {
allowNull: false, allowNull: false,
type: Sequelize.DATE type: Sequelize.DATE
}, },
updatedAt: { updatedAt: {
allowNull: false, allowNull: false,
type: Sequelize.DATE type: Sequelize.DATE
} }
}); });
}, },
down: (queryInterface, Sequelize) => { down: (queryInterface, Sequelize) => {
return queryInterface.dropTable('borgars'); return queryInterface.dropTable('borgars');
} }
}; };

View file

@ -1,30 +1,30 @@
'use strict'; 'use strict';
module.exports = { module.exports = {
up: (queryInterface, Sequelize) => { up: (queryInterface, Sequelize) => {
return queryInterface.createTable('donators', { return queryInterface.createTable('donators', {
id: { id: {
allowNull: false, allowNull: false,
autoIncrement: true, autoIncrement: true,
primaryKey: true, primaryKey: true,
type: Sequelize.INTEGER type: Sequelize.INTEGER
}, },
userID: { userID: {
type: Sequelize.BIGINT type: Sequelize.BIGINT
}, },
comment: { comment: {
type: Sequelize.STRING type: Sequelize.STRING
}, },
createdAt: { createdAt: {
allowNull: false, allowNull: false,
type: Sequelize.DATE type: Sequelize.DATE
}, },
updatedAt: { updatedAt: {
allowNull: false, allowNull: false,
type: Sequelize.DATE type: Sequelize.DATE
} }
}); });
}, },
down: (queryInterface, Sequelize) => { down: (queryInterface, Sequelize) => {
return queryInterface.dropTable('donators'); return queryInterface.dropTable('donators');
} }
}; };

View file

@ -1,33 +1,33 @@
'use strict'; 'use strict';
module.exports = { module.exports = {
up: (queryInterface, Sequelize) => { up: (queryInterface, Sequelize) => {
return queryInterface.createTable('joinChannels', { return queryInterface.createTable('joinChannels', {
id: { id: {
allowNull: false, allowNull: false,
autoIncrement: true, autoIncrement: true,
primaryKey: true, primaryKey: true,
type: Sequelize.INTEGER type: Sequelize.INTEGER
}, },
channelID: { channelID: {
type: Sequelize.BIGINT type: Sequelize.BIGINT
}, },
guildID: { guildID: {
type: Sequelize.BIGINT type: Sequelize.BIGINT
}, },
message: { message: {
type: Sequelize.STRING type: Sequelize.STRING
}, },
createdAt: { createdAt: {
allowNull: false, allowNull: false,
type: Sequelize.DATE type: Sequelize.DATE
}, },
updatedAt: { updatedAt: {
allowNull: false, allowNull: false,
type: Sequelize.DATE type: Sequelize.DATE
} }
}); });
}, },
down: (queryInterface, Sequelize) => { down: (queryInterface, Sequelize) => {
return queryInterface.dropTable('joinChannels'); return queryInterface.dropTable('joinChannels');
} }
}; };

View file

@ -1,33 +1,33 @@
'use strict'; 'use strict';
module.exports = { module.exports = {
up: (queryInterface, Sequelize) => { up: (queryInterface, Sequelize) => {
return queryInterface.createTable('leaveChannels', { return queryInterface.createTable('leaveChannels', {
id: { id: {
allowNull: false, allowNull: false,
autoIncrement: true, autoIncrement: true,
primaryKey: true, primaryKey: true,
type: Sequelize.INTEGER type: Sequelize.INTEGER
}, },
channelID: { channelID: {
type: Sequelize.BIGINT type: Sequelize.BIGINT
}, },
guildID: { guildID: {
type: Sequelize.BIGINT type: Sequelize.BIGINT
}, },
message: { message: {
type: Sequelize.STRING type: Sequelize.STRING
}, },
createdAt: { createdAt: {
allowNull: false, allowNull: false,
type: Sequelize.DATE type: Sequelize.DATE
}, },
updatedAt: { updatedAt: {
allowNull: false, allowNull: false,
type: Sequelize.DATE type: Sequelize.DATE
} }
}); });
}, },
down: (queryInterface, Sequelize) => { down: (queryInterface, Sequelize) => {
return queryInterface.dropTable('leaveChannels'); return queryInterface.dropTable('leaveChannels');
} }
}; };

View file

@ -1,30 +1,30 @@
'use strict'; 'use strict';
module.exports = { module.exports = {
up: (queryInterface, Sequelize) => { up: (queryInterface, Sequelize) => {
return queryInterface.createTable('whitelistWords', { return queryInterface.createTable('whitelistWords', {
id: { id: {
allowNull: false, allowNull: false,
autoIncrement: true, autoIncrement: true,
primaryKey: true, primaryKey: true,
type: Sequelize.INTEGER type: Sequelize.INTEGER
}, },
word: { word: {
type: Sequelize.STRING type: Sequelize.STRING
}, },
serverID: { serverID: {
type: Sequelize.BIGINT type: Sequelize.BIGINT
}, },
createdAt: { createdAt: {
allowNull: false, allowNull: false,
type: Sequelize.DATE type: Sequelize.DATE
}, },
updatedAt: { updatedAt: {
allowNull: false, allowNull: false,
type: Sequelize.DATE type: Sequelize.DATE
} }
}); });
}, },
down: (queryInterface, Sequelize) => { down: (queryInterface, Sequelize) => {
return queryInterface.dropTable('whitelistWords'); return queryInterface.dropTable('whitelistWords');
} }
}; };

View file

@ -1,30 +1,30 @@
'use strict'; 'use strict';
module.exports = { module.exports = {
up: (queryInterface, Sequelize) => { up: (queryInterface, Sequelize) => {
return queryInterface.createTable('quotationStats', { return queryInterface.createTable('quotationStats', {
id: { id: {
allowNull: false, allowNull: false,
autoIncrement: true, autoIncrement: true,
primaryKey: true, primaryKey: true,
type: Sequelize.INTEGER type: Sequelize.INTEGER
}, },
serverID: { serverID: {
type: Sequelize.BIGINT type: Sequelize.BIGINT
}, },
stat: { stat: {
type: Sequelize.STRING type: Sequelize.STRING
}, },
createdAt: { createdAt: {
allowNull: false, allowNull: false,
type: Sequelize.DATE type: Sequelize.DATE
}, },
updatedAt: { updatedAt: {
allowNull: false, allowNull: false,
type: Sequelize.DATE type: Sequelize.DATE
} }
}); });
}, },
down: (queryInterface, Sequelize) => { down: (queryInterface, Sequelize) => {
return queryInterface.dropTable('quotationStats'); return queryInterface.dropTable('quotationStats');
} }
}; };

View file

@ -1,30 +1,30 @@
'use strict'; 'use strict';
module.exports = { module.exports = {
up: (queryInterface, Sequelize) => { up: (queryInterface, Sequelize) => {
return queryInterface.createTable('commandBlocks', { return queryInterface.createTable('commandBlocks', {
id: { id: {
allowNull: false, allowNull: false,
autoIncrement: true, autoIncrement: true,
primaryKey: true, primaryKey: true,
type: Sequelize.INTEGER type: Sequelize.INTEGER
}, },
serverID: { serverID: {
type: Sequelize.BIGINT type: Sequelize.BIGINT
}, },
command: { command: {
type: Sequelize.STRING type: Sequelize.STRING
}, },
createdAt: { createdAt: {
allowNull: false, allowNull: false,
type: Sequelize.DATE type: Sequelize.DATE
}, },
updatedAt: { updatedAt: {
allowNull: false, allowNull: false,
type: Sequelize.DATE type: Sequelize.DATE
} }
}); });
}, },
down: (queryInterface, Sequelize) => { down: (queryInterface, Sequelize) => {
return queryInterface.dropTable('commandBlocks'); return queryInterface.dropTable('commandBlocks');
} }
}; };

View file

@ -1,11 +1,11 @@
'use strict'; 'use strict';
module.exports = (sequelize, DataTypes) => { module.exports = (sequelize, DataTypes) => {
const bannedWords = sequelize.define('bannedWords', { const bannedWords = sequelize.define('bannedWords', {
word: DataTypes.STRING, word: DataTypes.STRING,
serverID: DataTypes.BIGINT serverID: DataTypes.BIGINT
}, {}); }, {});
bannedWords.associate = function(models) { bannedWords.associate = function(models) {
// associations can be defined here // associations can be defined here
}; };
return bannedWords; return bannedWords;
}; };

View file

@ -1,12 +1,12 @@
'use strict'; 'use strict';
module.exports = (sequelize, DataTypes) => { module.exports = (sequelize, DataTypes) => {
const borgar = sequelize.define('borgar', { const borgar = sequelize.define('borgar', {
userID: DataTypes.BIGINT, userID: DataTypes.BIGINT,
level: DataTypes.INTEGER, level: DataTypes.INTEGER,
xp: DataTypes.INTEGER xp: DataTypes.INTEGER
}, {}); }, {});
borgar.associate = function(models) { borgar.associate = function(models) {
// associations can be defined here // associations can be defined here
}; };
return borgar; return borgar;
}; };

View file

@ -1,11 +1,11 @@
'use strict'; 'use strict';
module.exports = (sequelize, DataTypes) => { module.exports = (sequelize, DataTypes) => {
const commandBlock = sequelize.define('commandBlock', { const commandBlock = sequelize.define('commandBlock', {
serverID: DataTypes.BIGINT, serverID: DataTypes.BIGINT,
command: DataTypes.STRING command: DataTypes.STRING
}, {}); }, {});
commandBlock.associate = function(models) { commandBlock.associate = function(models) {
// associations can be defined here // associations can be defined here
}; };
return commandBlock; return commandBlock;
}; };

View file

@ -1,11 +1,11 @@
'use strict'; 'use strict';
module.exports = (sequelize, DataTypes) => { module.exports = (sequelize, DataTypes) => {
const donator = sequelize.define('donator', { const donator = sequelize.define('donator', {
userID: DataTypes.BIGINT, userID: DataTypes.BIGINT,
comment: DataTypes.STRING comment: DataTypes.STRING
}, {}); }, {});
donator.associate = function(models) { donator.associate = function(models) {
// associations can be defined here // associations can be defined here
}; };
return donator; return donator;
}; };

View file

@ -1,12 +1,12 @@
'use strict'; 'use strict';
module.exports = (sequelize, DataTypes) => { module.exports = (sequelize, DataTypes) => {
const guessLeaderboard = sequelize.define('guessLeaderboard', { const guessLeaderboard = sequelize.define('guessLeaderboard', {
memberID: DataTypes.INTEGER, memberID: DataTypes.INTEGER,
try: DataTypes.INTEGER, try: DataTypes.INTEGER,
difficulty: DataTypes.STRING difficulty: DataTypes.STRING
}, {}); }, {});
guessLeaderboard.associate = function(models) { guessLeaderboard.associate = function(models) {
// associations can be defined here // associations can be defined here
}; };
return guessLeaderboard; return guessLeaderboard;
}; };

View file

@ -1,10 +1,10 @@
'use strict'; 'use strict';
module.exports = (sequelize, DataTypes) => { module.exports = (sequelize, DataTypes) => {
const guildBlacklist = sequelize.define('guildBlacklist', { const guildBlacklist = sequelize.define('guildBlacklist', {
guildID: DataTypes.BIGINT guildID: DataTypes.BIGINT
}, {}); }, {});
guildBlacklist.associate = function(models) { guildBlacklist.associate = function(models) {
// associations can be defined here // associations can be defined here
}; };
return guildBlacklist; return guildBlacklist;
}; };

View file

@ -1,12 +1,12 @@
'use strict'; 'use strict';
module.exports = (sequelize, DataTypes) => { module.exports = (sequelize, DataTypes) => {
const joinChannel = sequelize.define('joinChannel', { const joinChannel = sequelize.define('joinChannel', {
channelID: DataTypes.BIGINT, channelID: DataTypes.BIGINT,
guildID: DataTypes.BIGINT, guildID: DataTypes.BIGINT,
message: DataTypes.STRING message: DataTypes.STRING
}, {}); }, {});
joinChannel.associate = function(models) { joinChannel.associate = function(models) {
// associations can be defined here // associations can be defined here
}; };
return joinChannel; return joinChannel;
}; };

View file

@ -1,12 +1,12 @@
'use strict'; 'use strict';
module.exports = (sequelize, DataTypes) => { module.exports = (sequelize, DataTypes) => {
const leaveChannel = sequelize.define('leaveChannel', { const leaveChannel = sequelize.define('leaveChannel', {
channelID: DataTypes.BIGINT, channelID: DataTypes.BIGINT,
guildID: DataTypes.BIGINT, guildID: DataTypes.BIGINT,
message: DataTypes.STRING message: DataTypes.STRING
}, {}); }, {});
leaveChannel.associate = function(models) { leaveChannel.associate = function(models) {
// associations can be defined here // associations can be defined here
}; };
return leaveChannel; return leaveChannel;
}; };

View file

@ -1,11 +1,11 @@
'use strict'; 'use strict';
module.exports = (sequelize, DataTypes) => { module.exports = (sequelize, DataTypes) => {
const quotationStat = sequelize.define('quotationStat', { const quotationStat = sequelize.define('quotationStat', {
serverID: DataTypes.BIGINT, serverID: DataTypes.BIGINT,
stat: DataTypes.STRING stat: DataTypes.STRING
}, {}); }, {});
quotationStat.associate = function(models) { quotationStat.associate = function(models) {
// associations can be defined here // associations can be defined here
}; };
return quotationStat; return quotationStat;
}; };

View file

@ -1,11 +1,11 @@
'use strict'; 'use strict';
module.exports = (sequelize, DataTypes) => { module.exports = (sequelize, DataTypes) => {
const TwitterBlacklist = sequelize.define('TwitterBlacklist', { const TwitterBlacklist = sequelize.define('TwitterBlacklist', {
userID: DataTypes.BIGINT, userID: DataTypes.BIGINT,
reason: DataTypes.STRING reason: DataTypes.STRING
}, {}); }, {});
TwitterBlacklist.associate = function(models) { TwitterBlacklist.associate = function(models) {
// associations can be defined here // associations can be defined here
}; };
return TwitterBlacklist; return TwitterBlacklist;
}; };

View file

@ -1,10 +1,10 @@
'use strict'; 'use strict';
module.exports = (sequelize, DataTypes) => { module.exports = (sequelize, DataTypes) => {
const userBlacklist = sequelize.define('userBlacklist', { const userBlacklist = sequelize.define('userBlacklist', {
userID: DataTypes.BIGINT userID: DataTypes.BIGINT
}, {}); }, {});
userBlacklist.associate = function(models) { userBlacklist.associate = function(models) {
// associations can be defined here // associations can be defined here
}; };
return userBlacklist; return userBlacklist;
}; };

View file

@ -1,11 +1,11 @@
'use strict'; 'use strict';
module.exports = (sequelize, DataTypes) => { module.exports = (sequelize, DataTypes) => {
const whitelistWord = sequelize.define('whitelistWord', { const whitelistWord = sequelize.define('whitelistWord', {
word: DataTypes.STRING, word: DataTypes.STRING,
serverID: DataTypes.BIGINT serverID: DataTypes.BIGINT
}, {}); }, {});
whitelistWord.associate = function(models) { whitelistWord.associate = function(models) {
// associations can be defined here // associations can be defined here
}; };
return whitelistWord; return whitelistWord;
}; };