diff options
Diffstat (limited to 'lib/migrations/20150504155329-create-users.js')
-rw-r--r-- | lib/migrations/20150504155329-create-users.js | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/lib/migrations/20150504155329-create-users.js b/lib/migrations/20150504155329-create-users.js new file mode 100644 index 00000000..51e6b29c --- /dev/null +++ b/lib/migrations/20150504155329-create-users.js @@ -0,0 +1,24 @@ +'use strict' +module.exports = { + up: function (queryInterface, Sequelize) { + return queryInterface.createTable('Users', { + id: { + type: Sequelize.UUID, + primaryKey: true, + defaultValue: Sequelize.UUIDV4 + }, + profileid: { + type: Sequelize.STRING, + unique: true + }, + profile: Sequelize.TEXT, + history: Sequelize.TEXT, + createdAt: Sequelize.DATE, + updatedAt: Sequelize.DATE + }) + }, + + down: function (queryInterface, Sequelize) { + return queryInterface.dropTable('Users') + } +} |