chore: seed OPEN_LEARNER user for Reach for Change
Add tsegaye.negera@reachforchange.org as an OPEN_LEARNER in initial seed data for customer-login testing. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
parent
2400f5fcb1
commit
d546ae4df0
|
|
@ -4,7 +4,8 @@ CREATE EXTENSION IF NOT EXISTS pgcrypto;
|
|||
-- ======================================================
|
||||
-- Customer/Learner Users (login via /api/v1/auth/customer-login)
|
||||
-- Credentials: email + password@123
|
||||
-- OPEN_LEARNER demo user is seeded by migration 000061_open_learner_role (not here).
|
||||
-- OPEN_LEARNER demo user (openlearner@yimaru.com) is seeded by migration 000061_open_learner_role.
|
||||
-- Additional OPEN_LEARNER users are seeded below.
|
||||
-- ======================================================
|
||||
INSERT INTO users (
|
||||
id,
|
||||
|
|
@ -137,6 +138,75 @@ VALUES
|
|||
)
|
||||
ON CONFLICT (id) DO NOTHING;
|
||||
|
||||
-- OPEN_LEARNER learners (login via /api/v1/auth/customer-login)
|
||||
-- Credentials: email + password@123
|
||||
INSERT INTO users (
|
||||
id,
|
||||
first_name,
|
||||
last_name,
|
||||
gender,
|
||||
birth_day,
|
||||
email,
|
||||
phone_number,
|
||||
role,
|
||||
password,
|
||||
age_group,
|
||||
education_level,
|
||||
country,
|
||||
region,
|
||||
knowledge_level,
|
||||
nick_name,
|
||||
occupation,
|
||||
learning_goal,
|
||||
language_goal,
|
||||
language_challange,
|
||||
favourite_topic,
|
||||
initial_assessment_completed,
|
||||
email_verified,
|
||||
phone_verified,
|
||||
status,
|
||||
last_login,
|
||||
profile_completed,
|
||||
profile_picture_url,
|
||||
preferred_language,
|
||||
created_at,
|
||||
updated_at
|
||||
)
|
||||
VALUES
|
||||
(
|
||||
14,
|
||||
'Tsegaye',
|
||||
'Negera',
|
||||
'Male',
|
||||
'1990-01-01',
|
||||
'tsegaye.negera@reachforchange.org',
|
||||
NULL,
|
||||
'OPEN_LEARNER',
|
||||
crypt('password@123', gen_salt('bf'))::bytea,
|
||||
'35_44',
|
||||
'Bachelor',
|
||||
'Ethiopia',
|
||||
'Addis Ababa',
|
||||
'BEGINNER',
|
||||
'Tsegaye',
|
||||
'Learner',
|
||||
'Learn English',
|
||||
'English',
|
||||
'Grammar',
|
||||
'Education',
|
||||
FALSE,
|
||||
TRUE,
|
||||
FALSE,
|
||||
'ACTIVE',
|
||||
NULL,
|
||||
FALSE,
|
||||
NULL,
|
||||
'en',
|
||||
CURRENT_TIMESTAMP,
|
||||
NULL
|
||||
)
|
||||
ON CONFLICT (id) DO NOTHING;
|
||||
|
||||
-- ======================================================
|
||||
-- Team Members / Admin Panel Users (login via /api/v1/team/login)
|
||||
-- Credentials: email + password@123
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user