CRM - tp 1,2, et 3 bientot fini refresh

This commit is contained in:
2026-09-16 12:08:49 +02:00
parent 5533735d5d
commit fc4c55546f
79 changed files with 274 additions and 11123 deletions
@@ -0,0 +1,31 @@
<?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('clients', function (Blueprint $table) {
$table->id();
$table->string('name');
$table->string('email') ->unique();
$table->string('city');
$table->string('address') ->nullable();
$table->timestamps();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('clients');
}
};
@@ -0,0 +1,40 @@
<?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('product', function (Blueprint $table) {
$table->id();
$table->string('name');
$table->unsignedInteger('price');
$table->unsignedInteger('stock');
$table->timestamps();
});
}
// Schema::create('clients', function (Blueprint $table) {
// $table->id();
// $table->string('name');
// $table->string('email') ->unique();
// $table->string('city');
// $table->string('address') ->nullable();
// $table->timestamps();
// });
// }
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('product');
}
};