mirror of
https://github.com/Foundry376/Mailspring.git
synced 2024-11-15 06:06:35 +08:00
33 lines
706 B
JavaScript
33 lines
706 B
JavaScript
|
'use strict';
|
||
|
module.exports = {
|
||
|
up: function(queryInterface, Sequelize) {
|
||
|
return queryInterface.createTable('Users', {
|
||
|
id: {
|
||
|
allowNull: false,
|
||
|
autoIncrement: true,
|
||
|
primaryKey: true,
|
||
|
type: Sequelize.INTEGER
|
||
|
},
|
||
|
first_name: {
|
||
|
type: Sequelize.STRING
|
||
|
},
|
||
|
last_name: {
|
||
|
type: Sequelize.STRING
|
||
|
},
|
||
|
bio: {
|
||
|
type: Sequelize.TEXT
|
||
|
},
|
||
|
createdAt: {
|
||
|
allowNull: false,
|
||
|
type: Sequelize.DATE
|
||
|
},
|
||
|
updatedAt: {
|
||
|
allowNull: false,
|
||
|
type: Sequelize.DATE
|
||
|
}
|
||
|
});
|
||
|
},
|
||
|
down: function(queryInterface, Sequelize) {
|
||
|
return queryInterface.dropTable('Users');
|
||
|
}
|
||
|
};
|