generated from liutk/owl-admin-base
35 lines
768 B
PHP
35 lines
768 B
PHP
<?php
|
|
|
|
namespace Database\Factories;
|
|
|
|
use Illuminate\Database\Eloquent\Factories\Factory;
|
|
use Illuminate\Support\Facades\Hash;
|
|
use Illuminate\Support\Str;
|
|
|
|
/**
|
|
* @extends \Illuminate\Database\Eloquent\Factories\Factory<\App\Models\User>
|
|
*/
|
|
class UserActivityFactory extends Factory
|
|
{
|
|
/**
|
|
* The current password being used by the factory.
|
|
*/
|
|
protected static ?string $password;
|
|
|
|
/**
|
|
* Define the model's default state.
|
|
*
|
|
* @return array<string, mixed>
|
|
*/
|
|
public function definition(): array
|
|
{
|
|
return [
|
|
'activity_id' => 1,
|
|
'mark' => rand(50, 500),
|
|
'join_times' => rand(5, 10),
|
|
'right_times' => rand(0, 5),
|
|
'last_join_at' => now(),
|
|
];
|
|
}
|
|
}
|