add products-subranges relation

This commit is contained in:
Alexis Gousseau 2022-11-30 11:03:47 +01:00
parent 7cf4c90176
commit bc7a27534c

View file

@ -31,6 +31,7 @@ class CreateProductsTable extends Migration
$table->boolean('is_vip')->comment('Est un produit vip ou non');
$table->boolean('is_egalim')->comment('Est un produit egalim ou non');
$table->boolean('status')->comment('Est un produit publié ou non');
$table->foreignId('subrange_id')->references('id')->on('subranges');
$table->timestamps();
});
}