HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux ip-10-0-8-47 6.8.0-1021-aws #23~22.04.1-Ubuntu SMP Tue Dec 10 16:31:58 UTC 2024 aarch64
User: ubuntu (1000)
PHP: 8.1.2-1ubuntu2.22
Disabled: NONE
Upload Files
File: /var/www/admin.javaapp.co.uk/database/migrations/2022_12_20_114747_create_cafes_table.php
<?php

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

return new class extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('cafes', function (Blueprint $table) {
            $table->id();
            // $table->uuid('uuid');
            $table->string('cafe_name')->default('');
            $table->string('phone')->default('');
            $table->text('bio')->nullable();
            $table->string('email')->unique()->default('');
            $table->string('password')->default('');
            $table->rememberToken();
            $table->string('banner_image')->default('');
            $table->string('address')->default('');
            $table->string('postcode', 20)->default('');
            $table->double('latitude')->default(0);
            $table->double('longitude')->default(0);
            $table->string('website')->default('');
            $table->integer('otp')->default(0);
            $table->unsignedInteger('otp_expired_at')->default(0);
            $table->unsignedInteger('otp_verified_at')->default(0);
            $table->tinyInteger('cafe_type')->default(0)->comment('"1 = mobile cart , 0 = cafe"');
            $table->tinyInteger('is_active')->default(0)->comment('1 = active, 0 = inactive');
            $table->tinyInteger('approved')->default(0)->comment('1 = approved, 0 = pending');
            $table->tinyInteger('signup_completed')->default(0)->comment('1 = completed, 0 = pending');
            $table->tinyInteger('profile_completed')->default(0)->comment('1 = completed, 0 = pending');
            $table->tinyInteger('menu_completed')->default(0)->comment('1 = completed, 0 = pending');
            $table->tinyInteger('loyalty_completed')->default(0)->comment('1 = completed, 0 = pending');
            $table->tinyInteger('is_listed')->default(0)->comment('1 = yes, 0 = no');
            $table->tinyInteger('is_open')->default(0)->comment('1 = open, 0 = close');
            $table->unsignedInteger('deleted_at')->default(0);
            $table->unsignedInteger('created_at')->default(0);
            $table->unsignedInteger('updated_at')->default(0);
        });
    }

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