Файловый менеджер - Редактировать - /home/clickysoft/public_html/benchexc.clickysoft.net/database/migrations/2024_10_01_103458_request_talent_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('needed_talent', function (Blueprint $table) { $table->id(); $table->string('resource_title'); $table->string('years_of_experience'); $table->string('mobilization_time'); $table->string('onsite_availability'); $table->string('rate')->nullable(); $table->enum('rate_type', ['Per Month', 'Per Hour'])->default('Per Month')->comment('Rate type: Per Month or Per Hour'); $table->string('email')->unique(); $table->string('phone_number'); $table->longText('description'); $table->tinyInteger('status')->default(1); $table->unsignedBigInteger('city_id')->nullable(); $table->foreign('city_id')->on('cities')->references('id')->onDelete('cascade'); $table->unsignedBigInteger('user_id')->nullable(); $table->foreign('user_id')->on('users')->references('id')->onDelete('cascade'); $table->string('availability'); $table->text('additional_notes')->nullable(); $table->timestamps(); }); } /** * Reverse the migrations. */ public function down(): void { // } };
| ver. 1.4 |
Github
|
.
| PHP 8.1.29 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка