This commit is contained in:
salam committed 2025-10-13 17:17:30 +02:00
1 parent 8971b8b948
commit f676ec5a51
51 files changed
+1663 -601

No files matched your search

@@ -24,7 +24,6 @@ class AuftraggeberFactory extends Factory
'name' => fake()->name(),
'company' => fake()->Company(),
'address' => fake()->Address(),
'country' => 'Österreich',
'email' => fake()->email(),
'phone' => fake()->PhoneNumber(),
];
+7 -2
View File
@@ -17,14 +17,19 @@ class GutachterFactory extends Factory
*/
public function definition(): array
{
$adress = '9170 Bad Leonfelden / Simone-Wittmann-Weg 3
UID: ATU68008336 . Firmenbuchnummer 23456w
Telefon: +43 699 4727182 / Fax: +43 699 4727182-3
gpetrovic@gmx.at';
return [
'konto_id' => Konto::all()->random()->id,
'title' => fake()->randomElement(['Architekt:in', 'Ziviltechniker:in']),
'gender' => fake()->randomElement(['Frau', 'Herr']),
'name' => fake()->name(),
'company' => fake()->Company(),
'address' => fake()->Address(),
'country' => 'Österreich',
'address' => $adress,
'email' => fake()->email(),
'phone' => fake()->PhoneNumber(),
];
-1
View File
@@ -23,7 +23,6 @@ class KontoFactory extends Factory
'company' => fake()->Company(),
'email' => fake()->email(),
'address' => fake()->Address(),
'country' => 'Österreich',
'phone' => fake()->PhoneNumber(),
'uid_number' => 'ATU'.fake()->randomNumber(8, true),
'plan_id' => fake()->numberBetween(1, 3),
@@ -19,7 +19,6 @@ return new class extends Migration
$table->string('company');
$table->string('email')->nullable();
$table->string('address')->nullable();
$table->string('country')->nullable();
$table->string('phone')->nullable();
$table->string('uid_number')->nullable();
$table->string('guthaben')->default(0);
@@ -20,7 +20,6 @@ return new class extends Migration
$table->string('company')->nullable();
$table->string('logo')->nullable();
$table->text('address')->nullable();
$table->string('country')->nullable();
$table->string('email')->nullable();
$table->string('phone')->nullable();
$table->boolean('use_logo')->default(false);
@@ -20,7 +20,6 @@ return new class extends Migration
$table->string('company')->nullable();
$table->string('logo')->nullable();
$table->text('address')->nullable();
$table->string('country')->nullable();
$table->string('email')->email()->nullable();
$table->string('phone')->tel()->nullable();
$table->boolean('use_logo')->default(false);
@@ -22,6 +22,12 @@ return new class extends Migration
$table->text('beschreibung')->nullable();
$table->string('erstellung')->nullable();
$table->string('status')->default('entwurf');
$table->string('pdf_gutachten_name');
$table->string('pdf_nutzwerte_name');
$table->string('excel_nutzwerte_name');
$table->boolean('pdf_nutzwerte_status')->default(0);
$table->boolean('pdf_gutachten_status')->default(0);
$table->boolean('excel_nutzwerte_status')->default(0);
$table->timestamps();
$table->softDeletes();
});
+3 -3
View File
@@ -12,10 +12,10 @@ class KontoSeeder extends Seeder
*/
public function run(): void
{
$sql = "INSERT INTO `kontos` (`id`, `title`, `gender`, `name`, `company`, `email`, `address`, `location`, `plz`, `country`, `phone`, `uid_number`, `option_id`, `gutachten_zahl`, `gutachten_zeit`, `gutachten_abgeschlossen`, `created_at`, `updated_at`)
$sql = "INSERT INTO `kontos` (`id`, `title`, `gender`, `name`, `company`, `email`, `address`, `location`, `plz`, `phone`, `uid_number`, `option_id`, `gutachten_zahl`, `gutachten_zeit`, `gutachten_abgeschlossen`, `created_at`, `updated_at`)
VALUES
('1', 'Architekt', 'Herr', 'Hanno Vogl-Fernheim', 'Architekt Vogl-Fernheim', 'office@vogl-fernheim.eu', 'Richardsweg 1', 'Innsbruck', '6020', 'Österreich', '+43 0512 560303', 'ATU 61718733', '1', '1', NULL, '1', NULL, NULL),
('2', 'Staatl. bef. u. beeideter Ziviltechniker', 'Herr', 'Christoph Falkner', 'Ziviltechniker Christoph Falkner', 'christophfalkner@me.com', 'Adele-Obermayr-Straße 2', 'Innsbruck', '6020', 'Österreich', '+43 650 92210248', 'ATU56874500', '1', '1', NULL, '1', NULL, NULL);
('1', 'Architekt', 'Herr', 'Hanno Vogl-Fernheim', 'Architekt Vogl-Fernheim', 'office@vogl-fernheim.eu', 'Richardsweg 1', 'Innsbruck', '6020', '+43 0512 560303', 'ATU 61718733', '1', '1', NULL, '1', NULL, NULL),
('2', 'Staatl. bef. u. beeideter Ziviltechniker', 'Herr', 'Christoph Falkner', 'Ziviltechniker Christoph Falkner', 'christophfalkner@me.com', 'Adele-Obermayr-Straße 2', 'Innsbruck', '6020', '+43 650 92210248', 'ATU56874500', '1', '1', NULL, '1', NULL, NULL);
";
DB::unprepared($sql);
}