70 lines
1.4 KiB
JavaScript
70 lines
1.4 KiB
JavaScript
|
'use strict';
|
||
|
module.exports = {
|
||
|
async up(queryInterface, Sequelize) {
|
||
|
await queryInterface.createTable('users', {
|
||
|
id: {
|
||
|
allowNull: false,
|
||
|
autoIncrement: true,
|
||
|
primaryKey: true,
|
||
|
type: Sequelize.INTEGER
|
||
|
},
|
||
|
userType: {
|
||
|
type: Sequelize.INTEGER
|
||
|
},
|
||
|
name: {
|
||
|
type: Sequelize.STRING
|
||
|
},
|
||
|
image:{
|
||
|
type: Sequelize.TEXT
|
||
|
},
|
||
|
referralDoctor: {
|
||
|
type: Sequelize.STRING
|
||
|
},
|
||
|
email: {
|
||
|
type: Sequelize.STRING
|
||
|
},
|
||
|
contactNumber: {
|
||
|
type: Sequelize.STRING
|
||
|
},
|
||
|
whatsAppNumber: {
|
||
|
type: Sequelize.STRING
|
||
|
},
|
||
|
address1: {
|
||
|
type: Sequelize.STRING
|
||
|
},
|
||
|
address2: {
|
||
|
type: Sequelize.STRING
|
||
|
},
|
||
|
pincode: {
|
||
|
type: Sequelize.INTEGER
|
||
|
},
|
||
|
location: {
|
||
|
type: Sequelize.STRING
|
||
|
},
|
||
|
username: {
|
||
|
type: Sequelize.STRING
|
||
|
},
|
||
|
deviceId: {
|
||
|
type: Sequelize.STRING
|
||
|
},
|
||
|
password: {
|
||
|
type: Sequelize.STRING
|
||
|
},
|
||
|
status: {
|
||
|
type: Sequelize.INTEGER
|
||
|
},
|
||
|
createdAt: {
|
||
|
allowNull: false,
|
||
|
type: Sequelize.DATE
|
||
|
},
|
||
|
updatedAt: {
|
||
|
allowNull: false,
|
||
|
type: Sequelize.DATE
|
||
|
}
|
||
|
|
||
|
});
|
||
|
},
|
||
|
async down(queryInterface, Sequelize) {
|
||
|
await queryInterface.dropTable('users');
|
||
|
}
|
||
|
};
|