Server IP : 66.29.132.124 / Your IP : 3.22.75.247 Web Server : LiteSpeed System : Linux business141.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64 User : wavevlvu ( 1524) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/wavevlvu/book24.ng/database/migrations/ |
Upload File : |
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateInboxTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('core_inbox', function (Blueprint $table) { $table->bigIncrements('id'); $table->bigInteger('from_user')->nullable(); $table->bigInteger('to_user')->nullable(); $table->bigInteger('object_id')->nullable(); $table->string('object_model',50)->nullable(); $table->tinyInteger('type')->default(0)->nullable(); $table->integer('create_user')->nullable(); $table->integer('update_user')->nullable(); $table->timestamps(); }); Schema::create('core_inbox_messages', function (Blueprint $table) { $table->bigIncrements('id'); $table->bigInteger('inbox_id')->nullable(); $table->bigInteger('from_user')->nullable(); $table->bigInteger('to_user')->nullable(); $table->text('content')->nullable(); // $table->string('file_path',300)->nullable(); // $table->string('file_size',255)->nullable(); // $table->string('file_type',255)->nullable(); // $table->string('file_extension',255)->nullable(); // $table->integer('file_width')->nullable(); // $table->integer('file_height')->nullable(); $table->tinyInteger('type')->default(0)->nullable(); $table->tinyInteger('is_read')->default(0)->nullable(); $table->integer('create_user')->nullable(); $table->integer('update_user')->nullable(); $table->timestamps(); }); Schema::create('core_notifications', function (Blueprint $table) { $table->bigIncrements('id'); $table->bigInteger('from_user')->nullable(); $table->bigInteger('to_user')->nullable(); $table->tinyInteger('is_read')->default(0)->nullable(); $table->string('type',50)->nullable(); $table->string('type_group',50)->nullable(); $table->bigInteger('target_id')->nullable(); $table->bigInteger('target_parent_id')->nullable(); $table->text('params')->nullable(); $table->integer('create_user')->nullable(); $table->integer('update_user')->nullable(); $table->timestamps(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('core_inbox'); Schema::dropIfExists('core_inbox_messages'); Schema::dropIfExists('core_notifications'); } }