Add description fields to Customer and Contact

This commit is contained in:
2025-11-28 09:18:39 +01:00
parent a655930c61
commit 58b4ead671
3 changed files with 3 additions and 1 deletions
+1 -1
View File
@@ -22,7 +22,7 @@ class Contact extends Model
'mobile_phone', 'mobile_phone',
'avatar', 'avatar',
'online_accounts', 'online_accounts',
'notes', 'description',
]; ];
public function customer() public function customer()
+1
View File
@@ -27,6 +27,7 @@ class Customer extends Model
'billing_address', 'billing_address',
'payment_terms_id', 'payment_terms_id',
'status', 'status',
'description',
'logo', 'logo',
]; ];
@@ -22,6 +22,7 @@ public function up()
$table->json('billing_address')->nullable(); $table->json('billing_address')->nullable();
$table->foreignId('payment_terms_id')->constrained()->default(3); // Standard-Zahlungsziel: 14 Tage $table->foreignId('payment_terms_id')->constrained()->default(3); // Standard-Zahlungsziel: 14 Tage
$table->enum('status', ['active', 'inactive', 'prospect'])->default('active'); $table->enum('status', ['active', 'inactive', 'prospect'])->default('active');
$table->string('description')->default('active');
$table->string('logo')->nullable(); $table->string('logo')->nullable();
$table->timestamps(); $table->timestamps();
}); });