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

View File

@@ -0,0 +1,36 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateMMCSTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('mmcs', function (Blueprint $table) {
$table->id();
$table->string('filename');
$table->string('size');
$table->string('mtime');
$table->string('atime');
$table->timestamps();
$table->softDeletes();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('mmcs');
}
}