Remove TenantPropController, TenantProp model, and related requests; update API routes and migrations

This commit is contained in:
2026-06-22 16:50:02 -03:00
parent 3bb8fbfd2f
commit 0847fe1a26
7 changed files with 0 additions and 204 deletions

View File

@@ -1,44 +0,0 @@
<?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('tenant_prop_definitions', function (Blueprint $table) {
$table->id();
$table->string('tenant_codigo');
$table->string('prop_codigo');
$table->text('valor')->nullable();
$table->timestamps();
$table->foreign('tenant_codigo')
->references('codigo')
->on('tenants')
->cascadeOnUpdate()
->cascadeOnDelete();
$table->foreign('prop_codigo')
->references('codigo')
->on('tenant_props')
->cascadeOnUpdate()
->cascadeOnDelete();
$table->unique(['tenant_codigo', 'prop_codigo']);
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('tenant_prop_definitions');
}
};