Файловый менеджер - Редактировать - /home/clickysoft/public_html/somni.clickysoft.net/database/migrations/2023_11_30_173747_create_events_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. */ public function up(): void { Schema::create('events', function (Blueprint $table) { $table->id(); $table->unsignedBigInteger('category_id')->nullable(); $table->foreign('category_id')->references('id')->on('categories')->onDelete('cascade'); $table->unsignedBigInteger('unit_id'); $table->foreign('unit_id')->references('id')->on('units')->onDelete('cascade'); $table->unsignedBigInteger('tenant_id')->nullable(); $table->foreign('tenant_id')->references('id')->on('users')->onDelete('cascade'); $table->unsignedBigInteger('landlord_id'); $table->foreign('landlord_id')->references('id')->on('users')->onDelete('cascade'); $table->date('date')->nullable(); $table->time('from_time'); $table->time('to_time'); $table->string('task'); $table->string('status'); $table->longText('note'); $table->string('location'); $table->string('type'); $table->timestamps(); }); } /** * Reverse the migrations. */ public function down(): void { Schema::dropIfExists('events'); } };
| ver. 1.4 |
Github
|
.
| PHP 8.1.29 | Генерация страницы: 0.01 |
proxy
|
phpinfo
|
Настройка