This commit is contained in:
natib21
2026-07-17 11:59:00 +00:00
parent 838ea5efc8
commit 47780c614a
2 changed files with 10 additions and 14 deletions

View File

@@ -5,8 +5,7 @@ import { EdrTruckFleetSeeder } from '../seed/edr-truck-fleet.seeder';
* Seeds the 62-truck EDR fleet used by first-mile / last-mile.
*
* The seeder is idempotent (`ON CONFLICT (plate_number) DO NOTHING`), so a
* re-run will NOT overwrite a truck whose rate was corrected by hand — the
* seeded rate is a placeholder and is meant to be replaced.
* re-run will NOT overwrite a truck whose rate was tuned by hand.
*/
async function seedEdrTrucks() {
await AppDataSource.initialize();
@@ -28,9 +27,7 @@ async function seedEdrTrucks() {
`);
console.table(summary);
console.log(
'Seeded EDR truck fleet. NOTE: price_per_km is DEMO DATA — replace with the real tariff before billing.',
);
console.log('Seeded EDR truck fleet.');
} finally {
await AppDataSource.destroy();
}