From 56bc91106230fc1388fb7abd58f69b554e521352 Mon Sep 17 00:00:00 2001 From: jsasg <735273025@qq.com> Date: Thu, 12 Jun 2025 15:50:21 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=BB=A3=E7=90=86=E5=95=86=E4=B8=9A?= =?UTF-8?q?=E5=8A=A1=E7=B1=BB=E5=9E=8Bseeder?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- database/seeds/AgentBusinessTypeInit.php | 34 ++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 database/seeds/AgentBusinessTypeInit.php diff --git a/database/seeds/AgentBusinessTypeInit.php b/database/seeds/AgentBusinessTypeInit.php new file mode 100644 index 00000000..cdfde820 --- /dev/null +++ b/database/seeds/AgentBusinessTypeInit.php @@ -0,0 +1,34 @@ + 1, "language_id" => 1, "name" => "在线商店", "value" => "Online Store", "desc" => null, "sort" => 0, "created_at" => "2025-03-13 17:50:36"], + ["id" => 2, "language_id" => 1, "name" => "本地商店", "value" => "Local store", "desc" => null, "sort" => 2, "created_at" => "2025-03-13 17:50:57"], + ["id" => 3, "language_id" => 1, "name" => "两者都有", "value" => "Both", "desc" => null, "sort" => 0, "created_at" => "2025-03-13 17:51:14"], + ["id" => 4, "language_id" => 2, "name" => "Online Store", "value" => "Online Store", "desc" => null, "sort" => 0, "created_at" => "2025-03-13 17:50:36"], + ["id" => 5, "language_id" => 2, "name" => "Local store", "value" => "Local store", "desc" => null, "sort" => 2, "created_at" => "2025-03-13 17:50:57"], + ["id" => 6, "language_id" => 2, "name" => "Both", "value" => "Both", "desc" => null, "sort" => 0, "created_at" => "2025-03-13 17:51:14"] + ]; + + $table = $this->table('agent_business_type'); + + // empty the table + $table->truncate(); + + // insert data + $table->insert($data)->saveData(); + } +} \ No newline at end of file