0.1.4 • Published 4 years ago

sequelize-tenant-protection v0.1.4

Weekly downloads
14
License
MIT
Repository
github
Last release
4 years ago

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);
0.1.4

4 years ago

0.1.3

5 years ago

0.1.2

5 years ago

0.1.1

5 years ago