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 @@ public function up(): void
Schema::create('pedidos', function (Blueprint $table) {
$table->id();
$table->string('name', 100);
$table->boolean('confirmed')->default(false);
$table->unsignedBigInteger('barrio_id');
$table->timestamps();
$table->foreign('barrio_id')->references('id')->on('barrios');

View File

@ -18,6 +18,7 @@ public function up(): void
$table->unsignedBigInteger('categoria_id');
$table->boolean('solidario');
$table->boolean('bono');
$table->boolean('barrial')->default(false);
$table->unsignedBigInteger('barrio_id')->nullable();
$table->timestamps();
$table->foreign('categoria_id')->references('id')->on('categorias');