This commit is contained in:
2023-03-03 13:45:51 +01:00
parent 7a06ea248e
commit 3d13369e05
92 changed files with 15859 additions and 66 deletions

View File

@@ -0,0 +1,38 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Query\Expression;
return new class extends Migration
{
/**
* Run the migrations.
*/
public function up(): void
{
Schema::create('clients', function (Blueprint $table) {
$table->engine = 'InnoDB';
$table->bigIncrements('id')->unsigned();
$table->string('nom')->nullable();
$table->string('prenom')->nullable();
$table->json('adresse')->default(new Expression('(JSON_OBJECT())'));
$table->timestamps();
$table->index("nom");
$table->index("prenom");
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfexists('clients');
}
};