UNPKG

moleculer-iam

Version:

Centralized IAM module for moleculer. Including a certified OIDC provider and an Identity provider for user profile, credentials, and custom claims management. Custom claims could be defined/updated by declarative schema which contains claims validation a

18 lines (13 loc) 552 B
"use strict"; const { STRING, JSON, DATE, TEXT, BOOLEAN, fn } = require("sequelize"); const TABLE = "IdentityClaimsSchema"; module.exports = { up: async (queryInterface, Sequelize) => { await queryInterface.addColumn(TABLE, "immutable", {type: BOOLEAN, defaultValue: false}); await queryInterface.addColumn(TABLE, "unique", {type: BOOLEAN, defaultValue: false}); }, down: async (queryInterface, Sequelize) => { await queryInterface.removeColumn(TABLE, "immutable"); await queryInterface.removeColumn(TABLE, "unique"); }, };