15 lines
508 B
JavaScript
15 lines
508 B
JavaScript
exports.up = async function (knex) {
|
|
await knex.schema.createTable('ai_tool_configs', (table) => {
|
|
table.uuid('id').primary();
|
|
table.string('tool_name').notNullable().unique();
|
|
table.boolean('enabled').notNullable().defaultTo(true);
|
|
table.json('config_json');
|
|
table.timestamp('created_at').defaultTo(knex.fn.now());
|
|
table.timestamp('updated_at').defaultTo(knex.fn.now());
|
|
});
|
|
};
|
|
|
|
exports.down = async function (knex) {
|
|
await knex.schema.dropTableIfExists('ai_tool_configs');
|
|
};
|