feat(server): soft deleting tax rates

This commit is contained in:
Ahmed Bouhuolia
2023-09-18 10:15:55 +02:00
parent 4e53d08497
commit aa52e7d02c
3 changed files with 77 additions and 15 deletions

View File

@@ -6,8 +6,8 @@ exports.up = (knex) => {
table.string('code');
table.decimal('rate');
table.string('description');
table.boolean('is_non_recoverable');
table.boolean('is_compound');
table.boolean('is_non_recoverable').defaultTo(false);
table.boolean('is_compound').defaultTo(false);
table.boolean('active').defaultTo(false);
table.date('deleted_at');
table.timestamps();