diff --git a/app/Models/Contact.php b/app/Models/Contact.php index 576efa8..b82bd53 100644 --- a/app/Models/Contact.php +++ b/app/Models/Contact.php @@ -22,7 +22,7 @@ class Contact extends Model 'mobile_phone', 'avatar', 'online_accounts', - 'notes', + 'description', ]; public function customer() diff --git a/app/Models/Customer.php b/app/Models/Customer.php index 38f4ff8..6b589d7 100644 --- a/app/Models/Customer.php +++ b/app/Models/Customer.php @@ -27,6 +27,7 @@ class Customer extends Model 'billing_address', 'payment_terms_id', 'status', + 'description', 'logo', ]; diff --git a/database/migrations/2025_09_17_000000_create_customers_table.php b/database/migrations/2025_09_17_000000_create_customers_table.php index 0cbb299..7ba3047 100644 --- a/database/migrations/2025_09_17_000000_create_customers_table.php +++ b/database/migrations/2025_09_17_000000_create_customers_table.php @@ -22,6 +22,7 @@ public function up() $table->json('billing_address')->nullable(); $table->foreignId('payment_terms_id')->constrained()->default(3); // Standard-Zahlungsziel: 14 Tage $table->enum('status', ['active', 'inactive', 'prospect'])->default('active'); + $table->string('description')->default('active'); $table->string('logo')->nullable(); $table->timestamps(); });