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) • 550 B
JavaScript
;
const { STRING, JSON, INTEGER, DATE, fn } = require("sequelize");
const TABLE = "IdentityClaimsMigrationLock";
module.exports = {
up: async (queryInterface, Sequelize) => {
await queryInterface.addColumn(TABLE, "updatedAt", {type: DATE, defaultValue: fn("NOW")});
await queryInterface.addColumn(TABLE, "number", {type: INTEGER, defaultValue: 0});
},
down: async (queryInterface, Sequelize) => {
await queryInterface.removeColumn(TABLE, "number");
await queryInterface.removeColumn(TABLE, "updatedAt");
},
};