id(); $table->string('name')->nullable(); // Optional $table->string('email')->unique(); $table->unsignedInteger('shopping_user_id')->nullable(); $table->unsignedInteger('member_id')->nullable(); $table->unsignedInteger('number')->index()->nullable(); $table->char('language', 2)->nullable(); $table->string('user_shop_domain')->nullable(); $table->char('mode', 4)->nullable(); $table->rememberToken(); // Wichtig für Auth::login() $table->timestamps(); $table->foreign('shopping_user_id')->references('id')->on('shopping_users')->onDelete('set null'); $table->foreign('member_id')->references('id')->on('members')->onDelete('set null'); }); } /** * Reverse the migrations. */ public function down(): void { Schema::dropIfExists('customers'); } };