Server backup 2026-11-07 of uncommitted work in projects/pharma-web-celtic
Snapshot of the working tree on srv1071960 (branch main), taken during server cleanup. .env files, node_modules, builds, logs and media were excluded.
This commit is contained in:
+5
-5
@@ -1,6 +1,6 @@
|
||||
"""Seed the minimum MVP system described in report §10.2.
|
||||
|
||||
Creates: 1 company, 1 headquarters, 1 GM, 1 AM, 1 MR, 1 System Admin,
|
||||
Creates: 1 company, 1 headquarters, 1 AGM, 1 ABM, 1 MR, 1 System Admin,
|
||||
15 doctors (3 flagged as core) and 5 chemists, all assigned to the MR.
|
||||
|
||||
python -m scripts.seed
|
||||
@@ -64,8 +64,8 @@ async def seed() -> None:
|
||||
)
|
||||
|
||||
admin = make(Role.ADMIN, "System Administrator", "ADM001")
|
||||
gm = make(Role.GM, "Anita Mohanty", "GM001")
|
||||
am = make(Role.AM, "Suresh Behera", "AM001")
|
||||
gm = make(Role.AGM, "Anita Mohanty", "GM001")
|
||||
am = make(Role.ABM, "Suresh Behera", "AM001")
|
||||
mr = make(Role.MR, "Ravi Das", "MR001", hq.id)
|
||||
db.add_all([admin, gm, am, mr])
|
||||
await db.flush()
|
||||
@@ -113,8 +113,8 @@ async def seed() -> None:
|
||||
print("Seeded the minimum MVP system.\n")
|
||||
print(f" Password for every account: {DEMO_PASSWORD}\n")
|
||||
print(" System Admin adm001@acmepharma.in")
|
||||
print(" General Mgr gm001@acmepharma.in")
|
||||
print(" Area Manager am001@acmepharma.in")
|
||||
print(" Assistant General Manager (AGM) gm001@acmepharma.in")
|
||||
print(" Area Business Manager (ABM) am001@acmepharma.in")
|
||||
print(" MR mr001@acmepharma.in")
|
||||
print("\n 1 headquarters (BBSR), 15 doctors (3 core), 5 chemists — all assigned to MR001.")
|
||||
print("\n CHANGE THESE PASSWORDS before any real use.")
|
||||
|
||||
Reference in New Issue
Block a user