diff --git a/app/Models/Guest.php b/app/Models/Guest.php new file mode 100644 index 0000000..e94a562 --- /dev/null +++ b/app/Models/Guest.php @@ -0,0 +1,10 @@ +belongsTo(User::class, 'agent_id', 'uuid'); + } + + public function owner(): BelongsTo + { + return $this->belongsTo(User::class, 'owner_id', 'uuid'); + } + + public function guest(): BelongsTo + { + return $this->belongsTo(Guest::class, 'guest_id', 'uuid'); + } +} diff --git a/database/migrations/2026_09_10_071718_create_wishes_table.php b/database/migrations/2026_09_10_071718_create_wishes_table.php new file mode 100644 index 0000000..439528b --- /dev/null +++ b/database/migrations/2026_09_10_071718_create_wishes_table.php @@ -0,0 +1,34 @@ +uuid()->primary(); + $table->string('title'); + $table->text('description'); + $table->string('reward')->nullable(); + $table->string('agent_id')->nullable(); + $table->string('owner_id')->nullable(); + $table->foreignUuid('guest_id')->nullable(); + $table->enum('status', ['posted', 'taken', 'disabled', 'completed'])->default('posted'); + $table->timestamps(); + }); + } + + /** + * Reverse the migrations. + */ + public function down(): void + { + Schema::dropIfExists('wishes'); + } +}; diff --git a/database/migrations/2026_09_10_082155_create_guests_table.php b/database/migrations/2026_09_10_082155_create_guests_table.php new file mode 100644 index 0000000..f314b76 --- /dev/null +++ b/database/migrations/2026_09_10_082155_create_guests_table.php @@ -0,0 +1,29 @@ +uuid()->primary(); + $table->string('access_code'); + $table->string('email'); + $table->timestamps(); + }); + } + + /** + * Reverse the migrations. + */ + public function down(): void + { + Schema::dropIfExists('guests'); + } +}; diff --git a/resources/css/app.css b/resources/css/app.css index 843e88e..32231e9 100644 --- a/resources/css/app.css +++ b/resources/css/app.css @@ -11,6 +11,9 @@ :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); + --color-a-visited: rgb(252, 142, 250); } @font-face { @@ -47,4 +50,15 @@ footer { body { background-color: var(--background-color); font-family: Perpetua Regular; + color: var(--color-primary); + text-align: center; +} + +a { + color: var(--color-a-primary); + text-decoration: underline; +} + +a:visited { + color: var(--color-a-visited); } \ No newline at end of file