mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-12-12 02:34:59 -05:00
7b9f9a487b
Signed-off-by: David Mehren <git@herrmehren.de>
21 lines
523 B
JavaScript
21 lines
523 B
JavaScript
'use strict'
|
|
module.exports = {
|
|
up: async 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: async function (queryInterface, Sequelize) {
|
|
return queryInterface.dropTable('Notes')
|
|
}
|
|
}
|