* @license https://www.gnu.org/licenses/agpl-3.0.en.html/ GNU Affero General Public License v3.0 */ namespace App\Models; use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\Relations\BelongsTo; use AllowDynamicProperties; /** * App\Models\ClaimedPrize. * * @property int $id * @property int $user_id * @property int $prize_id * @property int $bon * @property int $fl_tokens * @property \Illuminate\Support\Carbon|null $created_at * @property \Illuminate\Support\Carbon|null $updated_at */ #[AllowDynamicProperties] final class ClaimedPrize extends Model { /** * The attributes that aren't mass assignable. * * @var string[] */ protected $guarded = []; /** * Get the user that owns this claimed prize. * * @return BelongsTo */ public function user(): BelongsTo { return $this->belongsTo(User::class); } /** * Get the event that owns this claimed prize. * * @return BelongsTo */ public function event(): BelongsTo { return $this->belongsTo(Event::class); } }