CasperSecurity
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('work_orders_billings', function (Blueprint $table) {
$table->id();
$table->foreignId('work_order_id');
$table->text('item_name');
$table->bigInteger('item_quantity');
$table->decimal('item_rate', 10, 2)->nullable();
$table->decimal('item_tax', 10, 2)->nullable();
$table->tinyInteger('status')->default(1);
$table->timestamps();
$table->softDeletes();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('work_orders_billings');
}
};