id()->autoIncrement(); $table->string('name')->nullable(); $table->string('thumbnail')->nullable(); $table->unsignedBigInteger('module_host_id')->nullable(); $table->tinyInteger('status')->default(1); $table->timestamps(); $table->foreign('module_host_id', 'fk_os_group_host') ->references('id') ->on('module_host') ->nullOnDelete(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('os_group'); } };