mmc model + migration

This commit is contained in:
Александр Бабкин
2022-07-13 16:52:31 +03:00
parent 8e917b307f
commit 30950a120e
3 changed files with 137 additions and 81 deletions

20
app/Models/MMC.php Normal file
View File

@@ -0,0 +1,20 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
class MMC extends Model
{
use HasFactory, SoftDeletes;
protected $table = 'mmcs';
protected $fillable = [
'filename',
'size',
'mtime',
'atime',
];
}