Skip to content

ShaunParsons/sequelize-tenant-protection

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sequelize-tenant-protection

Sequelize plugin to enforce the protection of tenant data in a multi-tenanted database. It will prevent querying, updating and deleting data if a tenantId is not specified in the query.

Future Work

  • Make tenantId configurable
  • Check to ensure a single tenantId has been provided

Usage

const Sequelize = require('sequelize');
const sequelizeTenantProtection = require('sequelize-tenant-protection');

const sequelize = new Sequelize(...);

sequelizeTenantProtection(sequelize);

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published