Skip to content

User schema(db)#116

Closed
MikeSewell wants to merge 16 commits intodevfrom
UserSchema(db)
Closed

User schema(db)#116
MikeSewell wants to merge 16 commits intodevfrom
UserSchema(db)

Conversation

@MikeSewell
Copy link

to run this locally, you need to delete the tables in your MySQL DB manually before you docker-compose up --build

points: {
type: Sequelize.INTEGER,
},
messages: {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

suggestion how about messagesCount

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok ill make those changes

@MikeSewell
Copy link
Author

bot/client.js Outdated
});

client.on('guildMemberAdd', (member) => {
member.sendMessage('Welcome to the channel!');
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is this feature in your DB scheme branch? This was never merged into the dev branch, so it should not be here unless you have not followed the DWA branch model.


module.exports = {
up: (queryInterface, Sequelize) => queryInterface.addColumn("Members", "messagesCount", {
type: Sequelize.INTEGER,
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this column matter as per my previous comments about not needing to count the messages, but rather apply a point transformation onto the user's point total upon a message being sent

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We wanted to track who has sent the most messages as well. Of course, this won't start tracking until the merge. But as a reward, we want to track message count.

@reactivepixel reactivepixel deleted the UserSchema(db) branch August 21, 2019 13:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants