<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class CreateTableClientKycDocuments extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('clnt_kyc_docs', function (Blueprint $table) {
            $table->id();
            $table->string('c_id', 10)->nullable();
            $table->string('doc_id', 10)->nullable();
            $table->string('filename', 1255)->nullable();
            $table->string('path', 255)->nullable();
            $table->boolean('status')->default(true);
            $table->string('deleted_by', 10)->nullable();
            $table->softDeletes();
            $table->string('created_by', 10)->nullable();
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('clnt_kyc_docs');
    }
}
