hedgedoc/old_src/lib/migrations/20150504155329-create-users.js

25 lines
573 B
JavaScript
Raw Normal View History

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