id(); $table->string('version', 100)->nullable(); $table->unsignedBigInteger('os_group_id')->nullable(); $table->string('template_id')->nullable(); $table->tinyInteger('status')->default(1); $table->timestamps(); $table->foreign('os_group_id', 'fk_os_group_id')->references('id')->on('os_group')->nullOnDelete(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('os'); } };