Spamworldpro Mini Shell
Spamworldpro


Server : Apache
System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64
User : corals ( 1002)
PHP Version : 7.4.33
Disable Function : exec,passthru,shell_exec,system
Directory :  /home/corals/job-board.corals.io/Corals/modules/Messaging/database/migrations/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/corals/job-board.corals.io/Corals/modules/Messaging/database/migrations/MessagingTables.php
<?php

namespace Corals\Modules\Messaging\database\migrations;

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

class MessagingTables extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('messaging_discussions', function (Blueprint $table) {
            $table->increments('id');

            $table->string('subject')->nullable();

            $table->text('properties')->nullable();

            $table->unsignedInteger('created_by')->nullable()->index();
            $table->unsignedInteger('updated_by')->nullable()->index();

            $table->timestamps();
        });

        Schema::create('messaging_messages', function (Blueprint $table) {
            $table->increments('id');

            $table->unsignedInteger('discussion_id');
            $table->morphs('participable');
            $table->text('body');

            $table->text('properties')->nullable();

            $table->unsignedInteger('created_by')->nullable()->index();
            $table->unsignedInteger('updated_by')->nullable()->index();

            $table->timestamps();
        });

        Schema::create('messaging_participations', function (Blueprint $table) {
            $table->increments('id');

            $table->unsignedInteger('discussion_id');
            $table->morphs('participable');
            $table->timestamp('last_read')->nullable();
            $table->enum('status', ['read', 'unread', 'deleted', 'important', 'star'])->nullable()->default('unread');
            $table->text('properties')->nullable();
            
            $table->unsignedInteger('created_by')->nullable()->index();
            $table->unsignedInteger('updated_by')->nullable()->index();

            $table->timestamps();
        });
    }

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

Spamworldpro Mini