Initial commit - construprogress app

This commit is contained in:
2026-05-07 23:31:33 +02:00
commit 156aa14bbb
157 changed files with 21654 additions and 0 deletions
@@ -0,0 +1,27 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
public function up()
{
Schema::create('layers', function (Blueprint $table) {
$table->id();
$table->foreignId('project_id')->constrained()->onDelete('cascade');
$table->foreignId('phase_id')->nullable()->constrained()->onDelete('set null');
$table->string('name');
$table->json('geojson_data'); // GeoJSON geometry collection
$table->string('original_file')->nullable(); // path to original uploaded file
$table->foreignId('uploaded_by')->constrained('users');
$table->timestamps();
});
}
public function down()
{
Schema::dropIfExists('layers');
}
};