unsignedInteger('id', true)->comment('고유번호'); $table->string('uid', 100)->default('')->comment('UID'); $table->string('page', 255)->default('index')->comment('적용페이지'); $table->string('title', 255)->default('')->comment('제목'); $table->string('description', 255)->default('')->comment('설명'); $table->string('keywords', 255)->default('')->comment('키워드'); $table->unsignedInteger('created_id')->nullable()->comment('등록 회원번호'); $table->unsignedInteger('updated_id')->nullable()->comment('수정 회원번호'); $table->unsignedInteger('deleted_id')->nullable()->comment('삭제 회원번호'); $table->datetime('created_at')->nullable()->comment('등록일시'); $table->datetime('updated_at')->nullable()->comment('수정일시'); $table->dateTime('deleted_at')->nullable()->comment('삭제일시'); // 인덱스 $table->unique('uid', 'uk_tbl_seo_uid'); $table->unique('page', 'uk_tbl_seo_page'); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::drop('seo'); } }