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('billings', function (Blueprint $table) {
$table->id();
$table->foreignId('project_id');
$table->string('invoice_no')->nullable();
$table->date('invoice_date');
$table->string('invoice_month');
$table->string('invoice_cycle');
$table->foreignId('client_id');
$table->bigInteger('total_quantity')->default(0);
$table->decimal('gross_amount', 10, 2)->default(0);
$table->decimal('net_amount', 10, 2)->default(0);
$table->string('created_by')->nullable();
$table->string('modified_by')->nullable();
$table->tinyInteger('status')->default(1);
$table->softDeletes();
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('billings');
}
};