diff --git a/app/UserRole.php b/app/UserRole.php new file mode 100644 index 0000000..67f69f6 --- /dev/null +++ b/app/UserRole.php @@ -0,0 +1,10 @@ +id(); + $table->string('nombre'); + $table->timestamps(); + }); + + $tipos = ["barrio", "admin_barrio", "comision"]; + foreach ($tipos as $tipo) { + UserRole::create([ + "nombre" => $tipo, + ]); + } + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::dropIfExists('user_roles'); + } +}