mirror of
https://github.com/status-im/codimd.git
synced 2025-01-27 08:24:47 +00:00
147c20064f
Signed-off-by: Raccoon <raccoon@hackmd.io>
24 lines
540 B
TypeScript
24 lines
540 B
TypeScript
export = {
|
|
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')
|
|
}
|
|
}
|