Data: Update seed users to be ADMIN and use only first names
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
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
This commit is contained in:
@@ -38,13 +38,13 @@ except ImportError:
|
|||||||
# ── Test user definitions ─────────────────────────────────────────────────
|
# ── Test user definitions ─────────────────────────────────────────────────
|
||||||
# Format: (full_name, email, plain_password, role)
|
# Format: (full_name, email, plain_password, role)
|
||||||
TEST_USERS = [
|
TEST_USERS = [
|
||||||
("Sagnik Ghosh", "sagnik@desineuron.in", "Sagnik@Velocity26", "ADMIN"),
|
("Sagnik", "sagnik@desineuron.in", "Sagnik@Velocity26", "ADMIN"),
|
||||||
("Sayan Ghosh", "sayan@desineuron.in", "Sayan@Velocity26", "SALES_DIRECTOR"),
|
("Sayan", "sayan@desineuron.in", "Sayan@Velocity26", "ADMIN"),
|
||||||
("Sourik Ghosh", "sourik@desineuron.in", "Sourik@Velocity26", "SENIOR_BROKER"),
|
("Sourik", "sourik@desineuron.in", "Sourik@Velocity26", "ADMIN"),
|
||||||
("Abantika Das", "abantika@desineuron.in", "Abantika@Velocity26", "SENIOR_BROKER"),
|
("Abantika", "abantika@desineuron.in", "Abantika@Velocity26", "ADMIN"),
|
||||||
("Sinjini Roy", "sinjini@desineuron.in", "Sinjini@Velocity26", "JUNIOR_BROKER"),
|
("Sinjini", "sinjini@desineuron.in", "Sinjini@Velocity26", "ADMIN"),
|
||||||
("Swastika Ghosh", "swastika@desineuron.in", "Swastika@Velocity26", "JUNIOR_BROKER"),
|
("Swastika", "swastika@desineuron.in", "Swastika@Velocity26", "ADMIN"),
|
||||||
("Debargha Mukherjee","debargha@desineuron.in", "Debargha@Velocity26", "JUNIOR_BROKER"),
|
("Debargha", "debargha@desineuron.in", "Debargha@Velocity26", "ADMIN"),
|
||||||
]
|
]
|
||||||
|
|
||||||
TENANT_ID = "tenant_velocity"
|
TENANT_ID = "tenant_velocity"
|
||||||
|
|||||||
@@ -5,77 +5,77 @@
|
|||||||
|
|
||||||
BEGIN;
|
BEGIN;
|
||||||
|
|
||||||
-- Sagnik Ghosh (ADMIN)
|
-- Sagnik (ADMIN)
|
||||||
INSERT INTO users_and_roles
|
INSERT INTO users_and_roles
|
||||||
(email, password_hash, role, tenant_id, full_name, is_active)
|
(email, password_hash, role, tenant_id, full_name, is_active)
|
||||||
VALUES
|
VALUES
|
||||||
('sagnik@desineuron.in', '$2b$12$k.gvWz2vu4mktqoIgskWrOie.lhsK1d0lT.3l/21Yb7SP0UQAX8n6', 'ADMIN', 'tenant_velocity', 'Sagnik Ghosh', TRUE)
|
('sagnik@desineuron.in', '$2b$12$3j9DDH.clvQhFucKAisJFeJBrTXhA1Vd27J8CCpMeucmacbW8f9be', 'ADMIN', 'tenant_velocity', 'Sagnik', TRUE)
|
||||||
ON CONFLICT (email) DO UPDATE
|
ON CONFLICT (email) DO UPDATE
|
||||||
SET password_hash = EXCLUDED.password_hash,
|
SET password_hash = EXCLUDED.password_hash,
|
||||||
role = EXCLUDED.role,
|
role = EXCLUDED.role,
|
||||||
full_name = EXCLUDED.full_name,
|
full_name = EXCLUDED.full_name,
|
||||||
is_active = TRUE;
|
is_active = TRUE;
|
||||||
|
|
||||||
-- Sayan Ghosh (SALES_DIRECTOR)
|
-- Sayan (ADMIN)
|
||||||
INSERT INTO users_and_roles
|
INSERT INTO users_and_roles
|
||||||
(email, password_hash, role, tenant_id, full_name, is_active)
|
(email, password_hash, role, tenant_id, full_name, is_active)
|
||||||
VALUES
|
VALUES
|
||||||
('sayan@desineuron.in', '$2b$12$viv3D0mWaPj5m5L9uhiauedFFyhA0bfkQGnN1ueEvpMarFs.GV7tG', 'SALES_DIRECTOR', 'tenant_velocity', 'Sayan Ghosh', TRUE)
|
('sayan@desineuron.in', '$2b$12$8Qh4REe8OzMNBIh16/vEpeB9349eWpTqZWub.PL1.eKbqNmRrhPey', 'ADMIN', 'tenant_velocity', 'Sayan', TRUE)
|
||||||
ON CONFLICT (email) DO UPDATE
|
ON CONFLICT (email) DO UPDATE
|
||||||
SET password_hash = EXCLUDED.password_hash,
|
SET password_hash = EXCLUDED.password_hash,
|
||||||
role = EXCLUDED.role,
|
role = EXCLUDED.role,
|
||||||
full_name = EXCLUDED.full_name,
|
full_name = EXCLUDED.full_name,
|
||||||
is_active = TRUE;
|
is_active = TRUE;
|
||||||
|
|
||||||
-- Sourik Ghosh (SENIOR_BROKER)
|
-- Sourik (ADMIN)
|
||||||
INSERT INTO users_and_roles
|
INSERT INTO users_and_roles
|
||||||
(email, password_hash, role, tenant_id, full_name, is_active)
|
(email, password_hash, role, tenant_id, full_name, is_active)
|
||||||
VALUES
|
VALUES
|
||||||
('sourik@desineuron.in', '$2b$12$Hta1pa1E1C5g5rDOU/SyregtTxUaT34H6Rt.4SnC1jOQtWFZOp4MC', 'SENIOR_BROKER', 'tenant_velocity', 'Sourik Ghosh', TRUE)
|
('sourik@desineuron.in', '$2b$12$uiYt6CF.tYswM9xRqG9f.ui7rTyOj3V7dMSoMvQ243BMI3i.W5UV2', 'ADMIN', 'tenant_velocity', 'Sourik', TRUE)
|
||||||
ON CONFLICT (email) DO UPDATE
|
ON CONFLICT (email) DO UPDATE
|
||||||
SET password_hash = EXCLUDED.password_hash,
|
SET password_hash = EXCLUDED.password_hash,
|
||||||
role = EXCLUDED.role,
|
role = EXCLUDED.role,
|
||||||
full_name = EXCLUDED.full_name,
|
full_name = EXCLUDED.full_name,
|
||||||
is_active = TRUE;
|
is_active = TRUE;
|
||||||
|
|
||||||
-- Abantika Das (SENIOR_BROKER)
|
-- Abantika (ADMIN)
|
||||||
INSERT INTO users_and_roles
|
INSERT INTO users_and_roles
|
||||||
(email, password_hash, role, tenant_id, full_name, is_active)
|
(email, password_hash, role, tenant_id, full_name, is_active)
|
||||||
VALUES
|
VALUES
|
||||||
('abantika@desineuron.in', '$2b$12$aTADkh.1qBKH/htHkehafOIzXZfvfyG5zp19zxSllGg3JOfaBsqPe', 'SENIOR_BROKER', 'tenant_velocity', 'Abantika Das', TRUE)
|
('abantika@desineuron.in', '$2b$12$VUfvj6dMp/pTo1XlEEIgHuB44EGNrrjN9xzhJs4NeKY3HaUijtGJq', 'ADMIN', 'tenant_velocity', 'Abantika', TRUE)
|
||||||
ON CONFLICT (email) DO UPDATE
|
ON CONFLICT (email) DO UPDATE
|
||||||
SET password_hash = EXCLUDED.password_hash,
|
SET password_hash = EXCLUDED.password_hash,
|
||||||
role = EXCLUDED.role,
|
role = EXCLUDED.role,
|
||||||
full_name = EXCLUDED.full_name,
|
full_name = EXCLUDED.full_name,
|
||||||
is_active = TRUE;
|
is_active = TRUE;
|
||||||
|
|
||||||
-- Sinjini Roy (JUNIOR_BROKER)
|
-- Sinjini (ADMIN)
|
||||||
INSERT INTO users_and_roles
|
INSERT INTO users_and_roles
|
||||||
(email, password_hash, role, tenant_id, full_name, is_active)
|
(email, password_hash, role, tenant_id, full_name, is_active)
|
||||||
VALUES
|
VALUES
|
||||||
('sinjini@desineuron.in', '$2b$12$WNqPTLPOidK6cyVC6wZsv.U6uHdS9RLOd5tA0jG13zzXs3v1UqT4W', 'JUNIOR_BROKER', 'tenant_velocity', 'Sinjini Roy', TRUE)
|
('sinjini@desineuron.in', '$2b$12$W/3p6P5jOFfIZ15Bv4qco.hcnn5jic4mN42xxRtMH6dtfHdp5iZE6', 'ADMIN', 'tenant_velocity', 'Sinjini', TRUE)
|
||||||
ON CONFLICT (email) DO UPDATE
|
ON CONFLICT (email) DO UPDATE
|
||||||
SET password_hash = EXCLUDED.password_hash,
|
SET password_hash = EXCLUDED.password_hash,
|
||||||
role = EXCLUDED.role,
|
role = EXCLUDED.role,
|
||||||
full_name = EXCLUDED.full_name,
|
full_name = EXCLUDED.full_name,
|
||||||
is_active = TRUE;
|
is_active = TRUE;
|
||||||
|
|
||||||
-- Swastika Ghosh (JUNIOR_BROKER)
|
-- Swastika (ADMIN)
|
||||||
INSERT INTO users_and_roles
|
INSERT INTO users_and_roles
|
||||||
(email, password_hash, role, tenant_id, full_name, is_active)
|
(email, password_hash, role, tenant_id, full_name, is_active)
|
||||||
VALUES
|
VALUES
|
||||||
('swastika@desineuron.in', '$2b$12$mDjbHxMFJuhKwbmwP.RxGeFw3iu.PQtfI.v.9S6coJLd95hotlaRS', 'JUNIOR_BROKER', 'tenant_velocity', 'Swastika Ghosh', TRUE)
|
('swastika@desineuron.in', '$2b$12$ilNxZFa7/BjUMJbakcvaRejHYWnn5D0ZtTOixFoGYfE/1T6K6D6x6', 'ADMIN', 'tenant_velocity', 'Swastika', TRUE)
|
||||||
ON CONFLICT (email) DO UPDATE
|
ON CONFLICT (email) DO UPDATE
|
||||||
SET password_hash = EXCLUDED.password_hash,
|
SET password_hash = EXCLUDED.password_hash,
|
||||||
role = EXCLUDED.role,
|
role = EXCLUDED.role,
|
||||||
full_name = EXCLUDED.full_name,
|
full_name = EXCLUDED.full_name,
|
||||||
is_active = TRUE;
|
is_active = TRUE;
|
||||||
|
|
||||||
-- Debargha Mukherjee (JUNIOR_BROKER)
|
-- Debargha (ADMIN)
|
||||||
INSERT INTO users_and_roles
|
INSERT INTO users_and_roles
|
||||||
(email, password_hash, role, tenant_id, full_name, is_active)
|
(email, password_hash, role, tenant_id, full_name, is_active)
|
||||||
VALUES
|
VALUES
|
||||||
('debargha@desineuron.in', '$2b$12$7lKw441xRWxmLV9g7d1I7enOTcLsfrymE281jvYsYybCKsqZaSAy2', 'JUNIOR_BROKER', 'tenant_velocity', 'Debargha Mukherjee', TRUE)
|
('debargha@desineuron.in', '$2b$12$N9QOcFfs8pUmOOBczFZQx.UMg6pbIuUvxhDe0kkFQyZ4KUbq96umu', 'ADMIN', 'tenant_velocity', 'Debargha', TRUE)
|
||||||
ON CONFLICT (email) DO UPDATE
|
ON CONFLICT (email) DO UPDATE
|
||||||
SET password_hash = EXCLUDED.password_hash,
|
SET password_hash = EXCLUDED.password_hash,
|
||||||
role = EXCLUDED.role,
|
role = EXCLUDED.role,
|
||||||
|
|||||||
Reference in New Issue
Block a user