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

35
app/Models/Index.php Normal file
View File

@@ -0,0 +1,35 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
class Index extends Model
{
use HasFactory;
protected $table = 'indexes';
protected $fillable = [
'table_id',
'index_name',
'columns',
'is_unique',
'is_primary',
'index_type',
'definition',
];
protected $casts = [
'columns' => 'array',
'is_unique' => 'boolean',
'is_primary' => 'boolean',
];
public function table(): BelongsTo
{
return $this->belongsTo(Table::class);
}
}