1<?php
2
3// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the GNU Affero General Public License v3.0.
4// See the LICENCE file in the repository root for full licence text.
5
6declare(strict_types=1);
7
8namespace Database\Factories;
9
10use App\Models\LegacyIrcKey;
11use App\Models\User;
12
13class LegacyIrcKeyFactory extends Factory
14{
15 protected $model = LegacyIrcKey::class;
16
17 public function definition(): array
18 {
19 return [
20 'token' => bin2hex(random_bytes(4)),
21 'user_id' => User::factory(),
22 ];
23 }
24}