db seeder
This commit is contained in:
@@ -12,17 +12,16 @@ return new class extends Migration
|
||||
*/
|
||||
public function up(): void
|
||||
{
|
||||
Schema::create('clients', function (Blueprint $table) {
|
||||
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->string("prenom")->nullable();
|
||||
$table->json("adresse")->default(new Expression('(JSON_OBJECT())'));
|
||||
|
||||
$table->timestamps();
|
||||
|
||||
|
||||
$table->index("nom");
|
||||
$table->index("prenom");
|
||||
});
|
||||
@@ -33,6 +32,6 @@ return new class extends Migration
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfexists('clients');
|
||||
Schema::dropIfExists('clients');
|
||||
}
|
||||
};
|
||||
|
Reference in New Issue
Block a user