diff --git a/app/Models/Wish.php b/app/Models/Wish.php index dcf7074..30e6188 100644 --- a/app/Models/Wish.php +++ b/app/Models/Wish.php @@ -3,14 +3,16 @@ namespace App\Models; use Illuminate\Database\Eloquent\Model; +use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Concerns\HasUuids; class Wishes extends Model { use HasUuids; + use HasFactory; protected $table = 'wishes'; - protected $fillable = ['title', 'description', 'reward', 'owner_id', 'status', 'agent_id', 'guest_id']; + protected $fillable = ['title', 'description', 'reward', 'owner_id', 'status', 'agent_id', 'guest_id', 'type', 'rune', 'color']; public function agent(): BelongsTo { diff --git a/database/factories/WishFactory.php b/database/factories/WishFactory.php new file mode 100644 index 0000000..292db6f --- /dev/null +++ b/database/factories/WishFactory.php @@ -0,0 +1,26 @@ + + */ +class WishFactory extends Factory +{ + /** + * Define the model's default state. + * + * @return array + */ + public function definition(): array + { + return [ + 'title' => fake()->sentence(), + 'decription' => fake()->paragraph(), + 'reward' => fake()->word(), + ]; + } +} diff --git a/database/migrations/2026_09_10_071718_create_wishes_table.php b/database/migrations/2026_09_10_071718_create_wishes_table.php index 439528b..0faec1c 100644 --- a/database/migrations/2026_09_10_071718_create_wishes_table.php +++ b/database/migrations/2026_09_10_071718_create_wishes_table.php @@ -20,6 +20,9 @@ return new class extends Migration $table->string('owner_id')->nullable(); $table->foreignUuid('guest_id')->nullable(); $table->enum('status', ['posted', 'taken', 'disabled', 'completed'])->default('posted'); + $table->unsignedTinyInteger('type')->default(0); + $table->unsignedTinyInteger('rune')->default(0); + $table->unsignedTinyInteger('color')->default(0); $table->timestamps(); }); } diff --git a/database/seeders/DatabaseSeeder.php b/database/seeders/DatabaseSeeder.php index 6b901f8..abe6ca4 100644 --- a/database/seeders/DatabaseSeeder.php +++ b/database/seeders/DatabaseSeeder.php @@ -3,6 +3,7 @@ namespace Database\Seeders; use App\Models\User; +use App\Models\Wish; use Illuminate\Database\Console\Seeds\WithoutModelEvents; use Illuminate\Database\Seeder; @@ -16,10 +17,11 @@ class DatabaseSeeder extends Seeder public function run(): void { // User::factory(10)->create(); + Wish::factory(10)->create(); - User::factory()->create([ - 'name' => 'Test User', - 'email' => 'test@example.com', - ]); + //User::factory()->create([ + // 'name' => 'Test User', + // 'email' => 'test@example.com', + //]); } } diff --git a/public/skonk/bonebottom_quest_board_badges_generic_0002_2.png b/public/skonk/quest_backdrop_3.png similarity index 100% rename from public/skonk/bonebottom_quest_board_badges_generic_0002_2.png rename to public/skonk/quest_backdrop_3.png diff --git a/public/skonk/bonebottom_quest_board_badges_generic_0001_3.png b/public/skonk/quest_backdrop_4.png similarity index 100% rename from public/skonk/bonebottom_quest_board_badges_generic_0001_3.png rename to public/skonk/quest_backdrop_4.png diff --git a/public/skonk/dock_b__0031_paper_hang.png b/public/skonk/quest_backdrop_5.png similarity index 100% rename from public/skonk/dock_b__0031_paper_hang.png rename to public/skonk/quest_backdrop_5.png diff --git a/public/skonk/dock_b__0033_paper_hang.png b/public/skonk/quest_backdrop_6.png similarity index 100% rename from public/skonk/dock_b__0033_paper_hang.png rename to public/skonk/quest_backdrop_6.png diff --git a/resources/css/app.css b/resources/css/app.css index 32231e9..304f346 100644 --- a/resources/css/app.css +++ b/resources/css/app.css @@ -9,7 +9,6 @@ } :root { - --ui-primary: rgb(255, 0, 0); --background-color: rgb(10,10,10); --color-primary: rgb(250, 250, 250); --color-a-primary: rgb(142, 234, 252); diff --git a/resources/js/components/Wish.vue b/resources/js/components/Wish.vue index 2321d1f..9549c11 100644 --- a/resources/js/components/Wish.vue +++ b/resources/js/components/Wish.vue @@ -4,8 +4,8 @@