Файловый менеджер - Редактировать - /home/clickysoft/public_html/benchexc.clickysoft.net/database/migrations/2024_09_26_191535_create_companies_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('companies', function (Blueprint $table) { $table->id(); $table->unsignedBigInteger('user_id'); $table->string('company_name')->nullable(); $table->string('contact_person_name',100)->nullable(); $table->string('phone_number',100)->nullable(); $table->string('location')->nullable(); $table->longText('description')->nullable(); $table->year('year_established')->nullable(); $table->string('website_url')->nullable(); $table->string('company_size')->nullable(); $table->string('linkedin_profile_url')->nullable(); $table->string('facebook_profile_url')->nullable(); $table->string('instagram_profile_url')->nullable(); $table->string('operating_hours')->nullable(); $table->string('logo')->nullable(); $table->boolean('is_pseb')->nullable()->default(0); $table->boolean('is_pasha')->nullable()->default(0); $table->timestamps(); $table->foreign('user_id')->references('id')->on('users')->onDelete('cascade'); }); } /** * Reverse the migrations. */ public function down(): void { Schema::dropIfExists('companies'); } };
| ver. 1.4 |
Github
|
.
| PHP 8.1.29 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка