feat: Add status column to user model

This commit is contained in:
Faruk AYDIN
2024-07-08 16:08:00 +02:00
parent c9813e0316
commit 0e4ac3b7f3
2 changed files with 21 additions and 2 deletions

View File

@@ -0,0 +1,11 @@
export async function up(knex) {
return knex.schema.table('users', (table) => {
table.string('status').defaultTo('active');
});
}
export async function down(knex) {
return knex.schema.table('users', (table) => {
table.dropColumn('status');
});
}