Your IP : 216.73.216.91


Current Path : /var/www/html/LLCF-APP/database/migrations/
Upload File :
Current File : /var/www/html/LLCF-APP/database/migrations/2025_08_03_185625_create_company_table.php

<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

return new class extends Migration
{
    /**
     * Run the migrations.
     */
    public function up(): void
    {
        Schema::create('company', function (Blueprint $table) {
            $table->id('idCompany');
            $table->string('companyName', 45);
            $table->string('companyAddress', 100);
            $table->string('companyPhone', 45);
            $table->dateTime('timeStamp');
            $table->unsignedInteger('idUser');
            $table->integer('isActive')->default(1);
            $table->unsignedInteger('idBillTitle')->nullable();
            $table->integer('unitPrice')->nullable();
            $table->unsignedInteger('idCurrency')->nullable();
            $table->string('tSign', 45)->default('Tenant signature');
            $table->string('rSign', 45)->default('Real estate');
            $table->float('vat')->default(0);
            $table->float('smCharges')->default(0);
        });
    }

    /**
     * Reverse the migrations.
     */
    public function down(): void
    {
        Schema::dropIfExists('company');
    }
};