feat: add ProductVariant model and service layer for CRUD operations with attachment handling

This commit is contained in:
2026-07-01 10:09:04 -03:00
parent d6a17cb449
commit a0a0cc7255
4 changed files with 18 additions and 18 deletions

View File

@@ -12,7 +12,7 @@ return new class extends Migration
public function up(): void
{
Schema::table('productos_variantes', function (Blueprint $table) {
$table->boolean('is_default')->default(false)->after('stock');
$table->boolean('is_placeholder')->default(false)->after('stock');
});
}
@@ -22,7 +22,7 @@ return new class extends Migration
public function down(): void
{
Schema::table('productos_variantes', function (Blueprint $table) {
$table->dropColumn('is_default');
$table->dropColumn('is_placeholder');
});
}
};