From aa4e552a03657a63922f5cd085431257c183f458 Mon Sep 17 00:00:00 2001 From: Jannik Schönartz Date: Mon, 2 Jul 2018 19:52:25 +0000 Subject: [server] Initial commit to add the node server stuff. --- server/migrations/20180522185323-create-user.js | 31 +++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 server/migrations/20180522185323-create-user.js (limited to 'server/migrations') diff --git a/server/migrations/20180522185323-create-user.js b/server/migrations/20180522185323-create-user.js new file mode 100644 index 0000000..42527da --- /dev/null +++ b/server/migrations/20180522185323-create-user.js @@ -0,0 +1,31 @@ +'use strict'; +module.exports = { + up: (queryInterface, Sequelize) => { + return queryInterface.createTable('users', { + id: { + allowNull: false, + autoIncrement: true, + primaryKey: true, + type: Sequelize.INTEGER + }, + id: { + type: Sequelize.INTEGER + }, + username: { + type: Sequelize.STRING + }, + password: { + type: Sequelize.STRING + }, + email: { + type: Sequelize.STRING + }, + name: { + type: Sequelize.STRING + } + }); + }, + down: (queryInterface, Sequelize) => { + return queryInterface.dropTable('users'); + } +}; \ No newline at end of file -- cgit v1.2.3-55-g7522