mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-12-25 04:51:26 +00:00
22 lines
511 B
JavaScript
22 lines
511 B
JavaScript
|
'use strict'
|
||
|
module.exports = {
|
||
|
up: function (queryInterface, Sequelize) {
|
||
|
return queryInterface.createTable('Notes', {
|
||
|
id: {
|
||
|
type: Sequelize.UUID,
|
||
|
primaryKey: true,
|
||
|
defaultValue: Sequelize.UUIDV4
|
||
|
},
|
||
|
ownerId: Sequelize.UUID,
|
||
|
content: Sequelize.TEXT,
|
||
|
title: Sequelize.STRING,
|
||
|
createdAt: Sequelize.DATE,
|
||
|
updatedAt: Sequelize.DATE
|
||
|
})
|
||
|
},
|
||
|
|
||
|
down: function (queryInterface, Sequelize) {
|
||
|
return queryInterface.dropTable('Notes')
|
||
|
}
|
||
|
}
|