allgemeinflaechen

This commit is contained in:
salam committed 2025-10-03 17:57:43 +02:00
1 parent 4204c74406
commit 0b18eea9d7
15 files changed
+140 -145

No files matched your search

@@ -11,13 +11,12 @@ return new class extends Migration
*/
public function up(): void
{
Schema::create('projekte_imports', function (Blueprint $table) {
Schema::create('allgemeinflaechens', function (Blueprint $table) {
$table->id();
$table->foreignId('projekte_id')->constrained()->cascadeOnDelete()->default(0);
$table->string('file')->nullable();
$table->text('beschreibung')->nullable();
$table->string('filetype')->nullable();
$table->string('original_name')->nullable();
$table->string('geschoss')->nullable();
$table->string('raumart')->nullable();
$table->string('flaeche')->nullable();
$table->timestamps();
});
}
@@ -27,6 +26,6 @@ return new class extends Migration
*/
public function down(): void
{
Schema::dropIfExists('projekte_imports');
Schema::dropIfExists('allgemeinflaechens');
}
};
@@ -0,0 +1,35 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*/
public function up(): void
{
Schema::create('raeumealles', function (Blueprint $table) {
$table->id();
$table->foreignId('projekte_id')->constrained()->cascadeOnDelete()->default(0);
$table->integer('methode_id')->default(0);
$table->integer('orientierung_id')->default(0);
$table->string('top_nummer')->nullable();
$table->string('geschoss')->nullable();
$table->string('raumart')->nullable();
$table->double('faktor')->nullable();
$table->double('flaeche')->nullable();
$table->timestamps();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('raeumealles');
}
};
@@ -0,0 +1,17 @@
<?php
namespace Database\Seeders;
use Illuminate\Database\Console\Seeds\WithoutModelEvents;
use Illuminate\Database\Seeder;
class AllgemeinflaechenSeeder extends Seeder
{
/**
* Run the database seeds.
*/
public function run(): void
{
//
}
}
+17
View File
@@ -0,0 +1,17 @@
<?php
namespace Database\Seeders;
use Illuminate\Database\Console\Seeds\WithoutModelEvents;
use Illuminate\Database\Seeder;
class RaeumealleSeeder extends Seeder
{
/**
* Run the database seeds.
*/
public function run(): void
{
//
}
}