hedgedoc/old_src/lib/migrations/20150504155329-create-users.js
David Mehren 7b9f9a487b
Move old backend code to old_src folder
Signed-off-by: David Mehren <git@herrmehren.de>
2020-08-20 19:43:05 +02:00

24 lines
573 B
JavaScript

'use strict'
module.exports = {
up: async 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: async function (queryInterface, Sequelize) {
return queryInterface.dropTable('Users')
}
}