Files
lelong/database/migrations/2022_01_13_064027_create_file_table.php
T
faiqahzaman 011b1ddb16 update
2022-01-13 16:51:05 +08:00

36 lines
735 B
PHP

<?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');
}
}