id(); $table->string('deals_count')->nullable(); $table->string('total_sum')->nullable(); $table->unsignedBigInteger('group_id'); $table->foreign('group_id')->references('id')->on('groups'); $table->enum('locale', ['en', 'ru', 'tm']) ->default('tm') ->index(); $table->timestamps(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('subgroups'); } }