From c1977cc6b474e17e6964b4f16f55fdcc3b75504e Mon Sep 17 00:00:00 2001 From: jsasg <735273025@qq.com> Date: Thu, 12 Jun 2025 16:26:25 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E7=B3=BB=E7=BB=9F=E7=94=A8=E6=88=B7see?= =?UTF-8?q?der?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- database/seeds/SysUserInit.php | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 database/seeds/SysUserInit.php diff --git a/database/seeds/SysUserInit.php b/database/seeds/SysUserInit.php new file mode 100644 index 00000000..6604c84b --- /dev/null +++ b/database/seeds/SysUserInit.php @@ -0,0 +1,29 @@ + 1, "username" => "admin", "password" => "75a8eab4d31428c67ac48ad9fa0b707c", "salt" => "edefslowjkdsfjkl", "role_id" => 1, "nickname" => "超级管理员", "avatar" => null, "mobile" => null, "email" => null, "delete_disable" => 1, "status" => 1, "created_at" => "2024-12-31 15:31:16", "updated_at" => "2025-03-01 11:47:21", "deleted_at" => null] + ]; + + $table = $this->table('sys_user'); + + // empty the table + $table->truncate(); + + // insert data + $table->insert($data)->save(); + } +} \ No newline at end of file