seed(prod): trim SITES to geocoded entries only; update admin email
Removes the 3 Lakshadweep island sites (PMSK/LACD/THKM/KVRT/THNK) that had no address or coordinates, keeping only the 4 fully-specified sites: HOFC Head Office Mumbai (19.0449, 73.0758) HLDA Haldia Port (22.0286, 88.0780) KCHI Kochi (10.0261, 76.2193) PTNA Patna (25.6097, 85.1376) Also updates admin upsert email to admin@pelagiamarine.com. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
d4bee878e5
commit
b2402a7e22
4 changed files with 15 additions and 11 deletions
|
|
@ -1 +1,3 @@
|
|||
- [Project Services](project_services.md) — All services, ports, startup commands, health checks, and env var notes for the Pelagia Portal dev environment
|
||||
# DevOps Env Manager — Memory Index
|
||||
|
||||
- [Project Services](project_services.md) — All managed services, ports, startup commands, health checks, and env notes for the Pelagia Portal dev environment
|
||||
|
|
|
|||
|
|
@ -62,7 +62,11 @@ metadata:
|
|||
- Use `.\node_modules\.bin\prisma.cmd` (not `node node_modules\.bin\prisma`) — the `.bin\prisma` shim is a bash script and fails on Windows/PowerShell
|
||||
- Prisma reads `App/.env` for DATABASE_URL; `.env.local` is NOT read by Prisma CLI
|
||||
- `prisma generate` EPERM on Windows = DLL locked by running Node process — normal
|
||||
- 14 migrations as of 2026-05-26 (latest: `20260521000000_remove_vessel_imo_number`)
|
||||
- 21 migrations as of 2026-05-31 (latest: `20260530000003_add_company`)
|
||||
- `20260530000000_vessel_optional_cost_centre` — makes PurchaseOrder.vesselId nullable
|
||||
- `20260530000001_account_hierarchy` — adds Account.parentId
|
||||
- `20260530000002_vessel_no_site_po_vessel_required` — drops Vessel.siteId, restores PO.vesselId NOT NULL
|
||||
- `20260530000003_add_company` — adds Company table + PurchaseOrder.companyId
|
||||
|
||||
## Log Files (when started as background processes)
|
||||
|
||||
|
|
|
|||
|
|
@ -32,7 +32,10 @@
|
|||
"PowerShell(Invoke-WebRequest *)",
|
||||
"PowerShell(npm *)",
|
||||
"PowerShell(pnpm *)",
|
||||
"PowerShell(node *)"
|
||||
"PowerShell(node *)",
|
||||
"Bash(powershell -Command \"Get-ChildItem -Path . -Directory | Select-Object Name\")",
|
||||
"Bash(*)",
|
||||
"PowerShell(*)"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
|
@ -48,16 +48,11 @@ const SITES: SiteEntry[] = [
|
|||
address: "ZION, 409-410, Sector 10, Kharghar, Panvel, Maharashtra 410210",
|
||||
latitude: 19.0449, longitude: 73.0758,
|
||||
},
|
||||
{ code: "PMSK", name: "PMS Kochi" },
|
||||
{ code: "LACD", name: "Laccadives" },
|
||||
{
|
||||
code: "HLDA", name: "Haldia Port",
|
||||
address: "Haldia Dock Complex, Haldia, West Bengal 721604",
|
||||
latitude: 22.0286, longitude: 88.0780,
|
||||
},
|
||||
{ code: "THKM", name: "Thilakkam" },
|
||||
{ code: "KVRT", name: "Kavaratti" },
|
||||
{ code: "THNK", name: "Thinnakara" },
|
||||
{
|
||||
code: "KCHI", name: "Kochi",
|
||||
address: "LNG Terminal, Survey No. 347, Puthuvype, Kochi, Kerala 682508",
|
||||
|
|
@ -110,9 +105,9 @@ async function main() {
|
|||
}
|
||||
|
||||
const admin = await db.user.upsert({
|
||||
where: { email: "admin@pelagia.local" },
|
||||
where: { email: "admin@pelagiamarine.com" },
|
||||
update: {},
|
||||
create: { employeeId: "ADM-001", email: "admin@pelagia.local", name: "System Admin", passwordHash: await hash("admin1234"), role: Role.ADMIN },
|
||||
create: { employeeId: "ADM-001", email: "admin@pelagiamarine.com", name: "System Admin", passwordHash: await hash("admin1234"), role: Role.ADMIN },
|
||||
});
|
||||
|
||||
// ── Sites ──────────────────────────────────────────────────────────────────
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue