mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-12-18 11:27:41 -05:00
7b9f9a487b
Signed-off-by: David Mehren <git@herrmehren.de>
24 lines
573 B
JavaScript
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')
|
|
}
|
|
}
|