Added more database fields for contacts. Worked on popovers in customers view. #3

This commit is contained in:
2025-11-04 15:17:23 +01:00
parent d222b4c10d
commit b27a1bd66d
5 changed files with 139 additions and 20 deletions
@@ -11,14 +11,18 @@ public function up()
Schema::create('contacts', function (Blueprint $table) {
$table->id();
$table->foreignId('customer_id')->constrained()->onDelete('cascade');
$table->boolean('is_primary')->default(false);
$table->string('salutation', 20);
$table->string('academic_title', 20)->nullable();
$table->string('first_name', 50);
$table->string('last_name', 50);
$table->string('job_title', 100)->nullable();
$table->string('email', 100)->nullable();
$table->string('phone', 20)->nullable();
$table->string('position', 100)->nullable();
$table->boolean('is_primary')->default(false);
$table->string('mobile_phone', 20)->nullable();
$table->string('avatar')->nullable();
$table->json('online_accounts')->nullable();
$table->text('notes')->nullable();
$table->timestamps();
});
}