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
24 lines (19 loc) • 587 B
JavaScript
;
const { STRING, JSON, DATE, fn } = require("sequelize");
const TABLE = "IdentityCredentials";
module.exports = {
up: async (queryInterface, Sequelize) => {
await queryInterface.createTable(TABLE, {
id: {type: STRING, primaryKey: true},
password: {type: STRING},
updatedAt: {type: DATE, defaultValue: fn("NOW")},
createdAt: {type: DATE, defaultValue: fn("NOW")},
}, {
charset: "utf8",
collate: "utf8_general_ci",
});
},
down: async (queryInterface, Sequelize) => {
await queryInterface.dropTable(TABLE);
},
};