agregadas columnas

This commit is contained in:
Alejandro Tasistro 2024-03-19 22:13:18 -03:00
parent 27960f17e7
commit f872b1e9fd
2 changed files with 2 additions and 0 deletions

View file

@ -14,6 +14,7 @@ return new class extends Migration
Schema::create('pedidos', function (Blueprint $table) { Schema::create('pedidos', function (Blueprint $table) {
$table->id(); $table->id();
$table->string('name', 100); $table->string('name', 100);
$table->boolean('confirmed')->default(false);
$table->unsignedBigInteger('barrio_id'); $table->unsignedBigInteger('barrio_id');
$table->timestamps(); $table->timestamps();
$table->foreign('barrio_id')->references('id')->on('barrios'); $table->foreign('barrio_id')->references('id')->on('barrios');

View file

@ -18,6 +18,7 @@ return new class extends Migration
$table->unsignedBigInteger('categoria_id'); $table->unsignedBigInteger('categoria_id');
$table->boolean('solidario'); $table->boolean('solidario');
$table->boolean('bono'); $table->boolean('bono');
$table->boolean('barrial')->default(false);
$table->unsignedBigInteger('barrio_id')->nullable(); $table->unsignedBigInteger('barrio_id')->nullable();
$table->timestamps(); $table->timestamps();
$table->foreign('categoria_id')->references('id')->on('categorias'); $table->foreign('categoria_id')->references('id')->on('categorias');