first commit

This commit is contained in:
brusnitsyn
2026-03-23 00:51:38 +09:00
commit 07854e0a9d
110 changed files with 19528 additions and 0 deletions

27
app/Models/ForeignKey.php Normal file
View File

@@ -0,0 +1,27 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
class ForeignKey extends Model
{
use HasFactory;
protected $fillable = [
'table_id',
'constraint_name',
'column_name',
'referenced_table',
'referenced_column',
'on_update',
'on_delete',
];
public function table(): BelongsTo
{
return $this->belongsTo(Table::class);
}
}