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,27 +0,0 @@
<?php
namespace App\Domains\Tenant\Models;
use Illuminate\Database\Eloquent\Attributes\Fillable;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsToMany;
#[Fillable([
'codigo',
'prop_type',
])]
class TenantProp extends Model
{
use HasFactory;
/**
* @return BelongsToMany<Tenant, $this>
*/
public function tenants(): BelongsToMany
{
return $this->belongsToMany(Tenant::class, 'tenant_prop_definitions', 'prop_codigo', 'tenant_codigo', 'codigo', 'codigo')
->withPivot('valor')
->withTimestamps();
}
}