%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /var/www/html/database/migrations/
Upload File :
Create Path :
Current File : //var/www/html/database/migrations/2021_10_25_140544_create_reglements_table.php

<?php

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

class CreateReglementsTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('reglements', function (Blueprint $table) {
            $table->id();
            $table->string('num')->nullable();
            $table->decimal('montant');
            $table->unsignedBigInteger('commande_id');
            $table->foreign('commande_id')->references('id')->on('commandes');
            $table->timestamp('date_reglement');
            $table->string('banque');//cih ou wafacash ....etc
            $table->string('method');//espece ou cheque ...etc
            $table->string('type');//reglement ou avance
            $table->string('status')->default('unpayed');//payed ou unpayed
            $table->timestamps();
        });
    }

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

Zerion Mini Shell 1.0