first commit

This commit is contained in:
2026-01-11 17:11:43 +00:00
commit 55bf184d53
157 changed files with 20499 additions and 0 deletions

View File

@@ -0,0 +1,28 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
public function up(): void
{
Schema::create('subunits', function (Blueprint $table) {
$table->id();
$table->foreignId('unit_id')->constrained('units')->onDelete('cascade');
$table->string('subunit_no');
$table->string('subunit_type');
$table->integer('area_sqft')->nullable();
$table->string('status')->default('vacant');
$table->timestamps();
$table->foreignId('created_by')->nullable()->constrained('users');
$table->foreignId('updated_by')->nullable()->constrained('users');
$table->softDeletes();
});
}
public function down(): void
{
Schema::dropIfExists('subunits');
}
};