bigInteger('id')->default(0); $table->integer('site_id')->default(0); $table->bigInteger('date_orig')->nullable(); $table->bigInteger('service_id')->default(0); $table->bigInteger('account_id')->nullable(); $table->string('type', 32)->nullable(); $table->binary('memo', 65535)->nullable(); $table->primary(['id','site_id','service_id']); $table->index(['service_id','site_id'], 'fk_sm_svc_idx'); $table->index(['account_id','site_id'], 'fk_sm_acc_idx'); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::drop('ab_service_memo'); } }