import { Knex } from "knex"; export async function up(knex: Knex): Promise { await knex.schema.createTable("users", (table) => { table.increments("id").primary(); table.string("username").notNullable().unique(); table.string("password").notNullable(); table.boolean("is_admin").notNullable().defaultTo(false); table.timestamps(true, true); }); } export async function down(knex: Knex): Promise { await knex.schema.dropTable("users"); }