feature/modelos-y-migraciones #3

Merged
rho merged 28 commits from feature/modelos-y-migraciones into master 2024-03-14 16:34:44 -03:00
2 changed files with 2 additions and 2 deletions
Showing only changes of commit 2a5cf1ccd9 - Show all commits

View File

@ -13,8 +13,8 @@ public function up(): void
{
Schema::create('regiones', function (Blueprint $table) {
$table->id();
$table->timestamps();
$table->string('name', 100);
$table->timestamps();
});
}

View File

@ -13,10 +13,10 @@ public function up(): void
{
Schema::create('barrios', function (Blueprint $table) {
$table->id();
$table->timestamps();
$table->string('name', 100);
$table->unsignedBigInteger('region_id');
$table->foreign('region_id')->references('id')->on('regiones');
$table->timestamps();
});
}