The next is an example of a migration that has a foreign key. You can use references to specify a foreign key:
```js
module.exports={
up:(queryInterface,Sequelize)=>{
returnqueryInterface.createTable('Person',{
name:Sequelize.STRING,
isBetaMember:{
type:Sequelize.BOOLEAN,
defaultValue:false,
allowNull:false
},
userId:{
type:Sequelize.INTEGER,
references:{
model:{
tableName:'users',
schema:'schema'
}
key:'id'
},
allowNull:false
},
});
},
down:(queryInterface,Sequelize)=>{
returnqueryInterface.dropTable('Person');
}
}
```
### The `.sequelizerc` File
This is a special configuration file. It lets you specify various options that you would usually pass as arguments to CLI. Some scenarios where you can use it.