initial commit

This commit is contained in:
fred 2025-07-08 10:40:49 -07:00
commit cd234531b9
37 changed files with 5529 additions and 0 deletions

View file

@ -0,0 +1,21 @@
/**
* @param { import("knex").Knex } knex
* @returns { Promise<void> }
*/
exports.up = function (knex) {
return knex.schema.createTable('recipes', function (table) {
table.increments('id').primary();
table.string('name').notNullable().unique();
table.string('cuisine').notNullable();
table.timestamps(true, true);
})
};
/**
* @param { import("knex").Knex } knex
* @returns { Promise<void> }
*/
exports.down = function (knex) {
return knex.schema.dropTable('users');
};