25 lines
544 B
PHP
Raw Normal View History

2019-12-14 15:56:59 +08:00
<?php
use think\migration\Seeder;
2019-12-14 15:57:15 +08:00
class UsersSeed extends Seeder
2019-12-14 15:56:59 +08:00
{
/**
* 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
*/
public function run()
{
2020-04-22 06:06:57 +08:00
return \catchAdmin\permissions\model\Users::create([
2019-12-14 15:56:59 +08:00
'username' => 'admin',
'password' => 'admin',
2020-01-08 22:18:04 +08:00
'email' => 'admin@gmail.com',
'creator_id' => 1,
2019-12-14 15:56:59 +08:00
]);
}
2020-01-08 22:18:04 +08:00
}