* @license https://www.gnu.org/licenses/agpl-3.0.en.html/ GNU Affero General Public License v3.0 */ namespace Database\Factories; use App\Models\User; use Illuminate\Database\Eloquent\Factories\Factory; use App\Models\UserNotification; /** @extends Factory */ class UserNotificationFactory extends Factory { /** * The name of the factory's corresponding model. */ protected $model = UserNotification::class; /** * Define the model's default state. */ public function definition(): array { return [ 'user_id' => User::factory(), 'block_notifications' => $this->faker->boolean(), 'show_bon_gift' => $this->faker->boolean(), 'show_mention_forum_post' => $this->faker->boolean(), 'show_mention_article_comment' => $this->faker->boolean(), 'show_mention_request_comment' => $this->faker->boolean(), 'show_mention_torrent_comment' => $this->faker->boolean(), 'show_subscription_topic' => $this->faker->boolean(), 'show_subscription_forum' => $this->faker->boolean(), 'show_forum_topic' => $this->faker->boolean(), 'show_following_upload' => $this->faker->boolean(), 'show_request_bounty' => $this->faker->boolean(), 'show_request_comment' => $this->faker->boolean(), 'show_request_fill' => $this->faker->boolean(), 'show_request_fill_approve' => $this->faker->boolean(), 'show_request_fill_reject' => $this->faker->boolean(), 'show_request_claim' => $this->faker->boolean(), 'show_request_unclaim' => $this->faker->boolean(), 'show_torrent_comment' => $this->faker->boolean(), 'show_torrent_tip' => $this->faker->boolean(), 'show_torrent_thank' => $this->faker->boolean(), 'show_account_follow' => $this->faker->boolean(), 'show_account_unfollow' => $this->faker->boolean(), 'json_account_groups' => $this->faker->word(), 'json_bon_groups' => $this->faker->word(), 'json_mention_groups' => $this->faker->word(), 'json_request_groups' => $this->faker->word(), 'json_torrent_groups' => $this->faker->word(), 'json_forum_groups' => $this->faker->word(), 'json_following_groups' => $this->faker->word(), 'json_subscription_groups' => $this->faker->word(), ]; } }