id(); $table->string('name', 50); $table->foreignId('unit_id')->constrained()->cascadeOnDelete(); $table->unsignedInteger('stock')->default(0); $table->unsignedInteger('price'); $table->timestamp('created_at')->useCurrent(); $table->timestamp('updated_at')->nullable()->useCurrentOnUpdate(); $table->softDeletes(); }); } /** * Reverse the migrations. */ public function down(): void { Schema::dropIfExists('feeds'); } };