Viewing File: /home/ubuntu/efidemo/database/migrations/2024_04_18_084518_create_payment_sms_table.php

<?php

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

class CreatePaymentSmsTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('payment_sms', function (Blueprint $table) {
            $table->id();
            $table->string('unique_id')->default(rand());
            $table->string('mobile');
            $table->text('message')->nullable();
            $table->tinyInteger('status')->default(1);
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('payment_sms');
    }
}
Back to Directory File Manager