| 123456789101112131415 |
- /** @type {import('knex').Knex} */
- export async function up(knex) {
- 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) {
- await knex.schema.dropTable("users");
- }
|