UNPKG

@ibernoh/arkanjs

Version:

Backend API generator with RBAC, CLI scaffolding, and built-in structure. Just install and run.

13 lines (11 loc) 420 B
export async function up(queryInterface, Sequelize) { await queryInterface.createTable("permissions", { id: { type: Sequelize.INTEGER, primaryKey: true, autoIncrement: true }, name: { type: Sequelize.STRING, unique: true, allowNull: false }, created_at: Sequelize.DATE, updated_at: Sequelize.DATE }); } export async function down(queryInterface) { await queryInterface.dropTable("permissions"); }