This commit is contained in:
faiqahzaman
2022-01-13 16:51:05 +08:00
parent 2bde615ed6
commit 011b1ddb16
6 changed files with 141 additions and 1 deletions
@@ -0,0 +1,35 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateFileTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('file', function (Blueprint $table) {
$table->id();
$table->string('file_type');
$table->string('filename');
$table->timestamp('deleted_at');
$table->id('deleted_by');
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('file');
}
}