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', function (Blueprint $table) {
$table->id();
$table->string('work_order_no');
$table->date('work_order_date');
$table->foreignId('client_id')->constrained('clients')->cascadeOnDelete();
$table->foreignId('tender_id')->constrained('create_tenders')->cascadeOnDelete();
$table->date('work_order_closing_date');
$table->boolean('renewal_required');
$table->string('billing_cycle');
$table->string('wo_copy_path');
$table->tinyInteger('status')->default('1');
$table->string('created_by')->nullable();
$table->string('modified_by')->nullable();
$table->timestamps();
$table->softDeletes();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('work_orders');
}
};