관리-도구
편집 파일: 2021_09_07_102733_create_members_table.php
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class CreateMembersTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('members', function (Blueprint $table) { $table->id(); $table->string('profile_photo'); $table->string('name'); $table->string('email'); $table->string('contact_no'); $table->string('address'); $table->string('position'); $table->integer('member_id')->nullable(); $table->integer('commitee_id')->nullable(); $table->integer('member_subcategory_id')->nullable(); $table->integer('committee_subcategory_id')->nullable(); $table->longText('details'); $table->string('facebook')->nullable(); $table->string('whatsapp')->nullable(); $table->string('youtube')->nullable(); $table->string('twitter')->nullable(); $table->string('linkedin')->nullable(); $table->timestamps(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('members'); } }