Files
Velocity-OS/core/db/seed_test_users.sql
Sagnik Ghosh d808700edb
Some checks failed
Velocity-OS Deployment Pipeline / lint (push) Has been cancelled
Velocity-OS Deployment Pipeline / build-and-push (agents) (push) Has been cancelled
Velocity-OS Deployment Pipeline / build-and-push (core) (push) Has been cancelled
Velocity-OS Deployment Pipeline / build-and-push (media-engine) (push) Has been cancelled
Velocity-OS Deployment Pipeline / build-and-push (webos) (push) Has been cancelled
Velocity-OS Deployment Pipeline / sign-images (agents) (push) Has been cancelled
Velocity-OS Deployment Pipeline / sign-images (core) (push) Has been cancelled
Velocity-OS Deployment Pipeline / sign-images (media-engine) (push) Has been cancelled
Velocity-OS Deployment Pipeline / sign-images (webos) (push) Has been cancelled
Velocity-OS Deployment Pipeline / notify-ingress (push) Has been cancelled
Data & Docs: Add synthetic DB seed script and Codebase Analysis
2026-05-01 12:36:33 +05:30

88 lines
3.5 KiB
PL/PgSQL

-- ================================================================
-- Velocity-OS Test Users Seed (FOR TESTING ONLY — NOT FOR PROD)
-- ================================================================
-- Generated by seed_test_users.py
BEGIN;
-- Sagnik Ghosh (ADMIN)
INSERT INTO users_and_roles
(email, password_hash, role, tenant_id, full_name, is_active)
VALUES
('sagnik@desineuron.in', '$2b$12$k.gvWz2vu4mktqoIgskWrOie.lhsK1d0lT.3l/21Yb7SP0UQAX8n6', 'ADMIN', 'tenant_velocity', 'Sagnik Ghosh', TRUE)
ON CONFLICT (email) DO UPDATE
SET password_hash = EXCLUDED.password_hash,
role = EXCLUDED.role,
full_name = EXCLUDED.full_name,
is_active = TRUE;
-- Sayan Ghosh (SALES_DIRECTOR)
INSERT INTO users_and_roles
(email, password_hash, role, tenant_id, full_name, is_active)
VALUES
('sayan@desineuron.in', '$2b$12$viv3D0mWaPj5m5L9uhiauedFFyhA0bfkQGnN1ueEvpMarFs.GV7tG', 'SALES_DIRECTOR', 'tenant_velocity', 'Sayan Ghosh', TRUE)
ON CONFLICT (email) DO UPDATE
SET password_hash = EXCLUDED.password_hash,
role = EXCLUDED.role,
full_name = EXCLUDED.full_name,
is_active = TRUE;
-- Sourik Ghosh (SENIOR_BROKER)
INSERT INTO users_and_roles
(email, password_hash, role, tenant_id, full_name, is_active)
VALUES
('sourik@desineuron.in', '$2b$12$Hta1pa1E1C5g5rDOU/SyregtTxUaT34H6Rt.4SnC1jOQtWFZOp4MC', 'SENIOR_BROKER', 'tenant_velocity', 'Sourik Ghosh', TRUE)
ON CONFLICT (email) DO UPDATE
SET password_hash = EXCLUDED.password_hash,
role = EXCLUDED.role,
full_name = EXCLUDED.full_name,
is_active = TRUE;
-- Abantika Das (SENIOR_BROKER)
INSERT INTO users_and_roles
(email, password_hash, role, tenant_id, full_name, is_active)
VALUES
('abantika@desineuron.in', '$2b$12$aTADkh.1qBKH/htHkehafOIzXZfvfyG5zp19zxSllGg3JOfaBsqPe', 'SENIOR_BROKER', 'tenant_velocity', 'Abantika Das', TRUE)
ON CONFLICT (email) DO UPDATE
SET password_hash = EXCLUDED.password_hash,
role = EXCLUDED.role,
full_name = EXCLUDED.full_name,
is_active = TRUE;
-- Sinjini Roy (JUNIOR_BROKER)
INSERT INTO users_and_roles
(email, password_hash, role, tenant_id, full_name, is_active)
VALUES
('sinjini@desineuron.in', '$2b$12$WNqPTLPOidK6cyVC6wZsv.U6uHdS9RLOd5tA0jG13zzXs3v1UqT4W', 'JUNIOR_BROKER', 'tenant_velocity', 'Sinjini Roy', TRUE)
ON CONFLICT (email) DO UPDATE
SET password_hash = EXCLUDED.password_hash,
role = EXCLUDED.role,
full_name = EXCLUDED.full_name,
is_active = TRUE;
-- Swastika Ghosh (JUNIOR_BROKER)
INSERT INTO users_and_roles
(email, password_hash, role, tenant_id, full_name, is_active)
VALUES
('swastika@desineuron.in', '$2b$12$mDjbHxMFJuhKwbmwP.RxGeFw3iu.PQtfI.v.9S6coJLd95hotlaRS', 'JUNIOR_BROKER', 'tenant_velocity', 'Swastika Ghosh', TRUE)
ON CONFLICT (email) DO UPDATE
SET password_hash = EXCLUDED.password_hash,
role = EXCLUDED.role,
full_name = EXCLUDED.full_name,
is_active = TRUE;
-- Debargha Mukherjee (JUNIOR_BROKER)
INSERT INTO users_and_roles
(email, password_hash, role, tenant_id, full_name, is_active)
VALUES
('debargha@desineuron.in', '$2b$12$7lKw441xRWxmLV9g7d1I7enOTcLsfrymE281jvYsYybCKsqZaSAy2', 'JUNIOR_BROKER', 'tenant_velocity', 'Debargha Mukherjee', TRUE)
ON CONFLICT (email) DO UPDATE
SET password_hash = EXCLUDED.password_hash,
role = EXCLUDED.role,
full_name = EXCLUDED.full_name,
is_active = TRUE;
COMMIT;
-- Verify:
SELECT email, role, full_name FROM users_and_roles ORDER BY role DESC, email;