diff --git a/database/seeds/ProductPurchasePlatformInit.php b/database/seeds/ProductPurchasePlatformInit.php new file mode 100644 index 00000000..e200a8c4 --- /dev/null +++ b/database/seeds/ProductPurchasePlatformInit.php @@ -0,0 +1,32 @@ + 1, "language_id" => 1, "platform" => "京东购买", "desc" => null, "sort" => 0, "created_at" => "2025-02-18 14:55:11"], + ["id" => 2, "language_id" => 1, "platform" => "天猫购买", "desc" => null, "sort" => 0, "created_at" => "2025-02-18 14:55:31"], + ["id" => 3, "language_id" => 2, "platform" => "Shop on ORlCO Store", "desc" => null, "sort" => 0, "created_at" => "2025-04-25 16:37:39"], + ["id" => 4, "language_id" => 2, "platform" => "Shop on Amazon", "desc" => null, "sort" => 0, "created_at" => "2025-04-25 16:37:47"], + ]; + + $table = $this->table('product_purchase_platform'); + + // empty the table + $table->truncate(); + + // insert data + $table->insert($data)->saveData(); + } +} \ No newline at end of file