This commit is contained in:
ct
2025-06-20 23:40:27 +08:00
parent 201837441d
commit e8e3def103
7 changed files with 69 additions and 18 deletions

View File

@@ -34,8 +34,8 @@ public function up(): void
$table->foreignId('category_id')->nullable();
$table->foreignId('user_id')->nullable();
$table->foreignId('meme_id')->nullable();
$table->foreignId('background_id')->nullable();
$table->foreignId('meme_media_id')->nullable();
$table->foreignId('background_media_id')->nullable();
$table->enum('status', ['pending', 'completed'])->default('pending');
$table->text('prompt');

View File

@@ -0,0 +1,28 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*/
public function up(): void
{
Schema::table('categories', function (Blueprint $table) {
$table->integer('system_memes_generated_count')->default(0);
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::table('categories', function (Blueprint $table) {
$table->dropColumn('system_memes_generated_count');
});
}
};