Файловый менеджер - Редактировать - /home/clickysoft/public_html/somni.clickysoft.net/database/migrations/2024_01_23_165940_create_leases_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('leases', function (Blueprint $table) { $table->id(); $table->string('name'); $table->unsignedBigInteger('landlord_id')->nullable(); $table->foreign('landlord_id')->references('id')->on('users')->onDelete('cascade'); $table->unsignedBigInteger('tenant_id')->nullable(); $table->foreign('tenant_id')->references('id')->on('users')->onDelete('cascade'); $table->unsignedBigInteger('unit_id')->nullable(); $table->foreign('unit_id')->references('id')->on('units')->onDelete('cascade'); $table->unsignedBigInteger('template_id'); $table->foreign('template_id')->references('id')->on('templates')->onDelete('cascade'); $table->string('document_path'); $table->string('envelope_id')->nullable(); $table->string('document_id')->nullable(); $table->integer('status')->default(0); $table->timestamps(); }); } /** * Reverse the migrations. */ public function down(): void { Schema::dropIfExists('leases'); } };
| ver. 1.4 |
Github
|
.
| PHP 8.1.29 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка