const { createCrudRoutes } = require('../database/crud');

let db;
function init(database) { db = database; }

function setupRoutes(app, auth) {
    createCrudRoutes(app, auth, 'work_schemes', {
        fields: ['svg_icon', 'title', 'description', 'items', 'sort_order', 'is_active']
    });
}

module.exports = { init, setupRoutes };
