From a93b32c878d8acaae2ab0f4ef45765ad99159b06 Mon Sep 17 00:00:00 2001 From: Daeng Deni Mardaeni Date: Fri, 27 Sep 2024 11:18:03 +0700 Subject: [PATCH] restore migration branch --- ...024_08_12_023807_create_branches_table.php | 39 +++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 database/migrations/2024_08_12_023807_create_branches_table.php diff --git a/database/migrations/2024_08_12_023807_create_branches_table.php b/database/migrations/2024_08_12_023807_create_branches_table.php new file mode 100644 index 0000000..bf4e9a8 --- /dev/null +++ b/database/migrations/2024_08_12_023807_create_branches_table.php @@ -0,0 +1,39 @@ +id(); + $table->string('code', 9)->unique(); + $table->string('name'); + $table->boolean('status')->default(true)->nullable(); + $table->timestamps(); + $table->timestamp('authorized_at')->nullable(); + $table->char('authorized_status', 1)->nullable(); + $table->softDeletes(); + + $table->unsignedBigInteger('created_by')->nullable(); + $table->unsignedBigInteger('updated_by')->nullable(); + $table->unsignedBigInteger('deleted_by')->nullable(); + $table->unsignedBigInteger('authorized_by')->nullable(); + }); + } + + /** + * Reverse the migrations. + */ + public function down() + : void + { + Schema::dropIfExists('branches'); + } + };