mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-12-29 15:33:19 +00:00
25 lines
561 B
JavaScript
25 lines
561 B
JavaScript
|
'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')
|
||
|
}
|
||
|
}
|