aboutsummaryrefslogtreecommitdiffstats
path: root/migrations
diff options
context:
space:
mode:
Diffstat (limited to 'migrations')
-rw-r--r--migrations/20180128181238-create-user.js7
1 files changed, 5 insertions, 2 deletions
diff --git a/migrations/20180128181238-create-user.js b/migrations/20180128181238-create-user.js
index 30cc4bbc..50424e18 100644
--- a/migrations/20180128181238-create-user.js
+++ b/migrations/20180128181238-create-user.js
@@ -1,7 +1,7 @@
'use strict';
module.exports = {
up: (queryInterface, Sequelize) => {
- return queryInterface.createTable('Users', {
+ return queryInterface.createTable('users', {
id: {
allowNull: false,
autoIncrement: true,
@@ -41,6 +41,9 @@ module.exports = {
privkey: {
type: Sequelize.STRING
},
+ index: {
+ type: Sequelize.INTEGER
+ },
createdAt: {
allowNull: false,
type: Sequelize.DATE
@@ -52,6 +55,6 @@ module.exports = {
});
},
down: (queryInterface, Sequelize) => {
- return queryInterface.dropTable('Users');
+ return queryInterface.dropTable('users');
}
};