25 lines
548 B
PHP
Raw Normal View History

2020-04-29 17:37:45 +08:00
<?php
use think\migration\Seeder;
class UsersSeed extends Seeder
{
/**
* Run Method.
*
* Write your database seeder using this method.
*
* More information on writing seeders is available here:
* http://docs.phinx.org/en/latest/seeding.html
*/
2024-01-08 10:20:20 +08:00
public function run(): void
2020-04-29 17:37:45 +08:00
{
2024-01-08 10:20:20 +08:00
\catchAdmin\permissions\model\Users::create([
2020-04-29 17:37:45 +08:00
'username' => 'admin',
2020-09-19 21:17:41 +08:00
'password' => 'catchadmin',
'email' => 'catch@admin.com',
2020-04-29 17:37:45 +08:00
'creator_id' => 1,
]);
}
}