24 lines
830 B
PL/PgSQL
24 lines
830 B
PL/PgSQL
-- create test users
|
|
BEGIN;
|
|
INSERT INTO auth.users(instance_id, id, aud, ROLE, email, encrypted_password, email_confirmed_at, recovery_sent_at, last_sign_in_at, raw_app_meta_data, raw_user_meta_data, created_at, updated_at, confirmation_token, email_change, email_change_token_new, recovery_token)(
|
|
SELECT
|
|
'00000000-0000-0000-0000-000000000000',
|
|
uuid_generate_v4(),
|
|
'authenticated',
|
|
'authenticated',
|
|
'user' ||(ROW_NUMBER() OVER ()) || '@example.com',
|
|
crypt('Aa1234567', gen_salt('bf')),
|
|
CURRENT_TIMESTAMP,
|
|
CURRENT_TIMESTAMP,
|
|
CURRENT_TIMESTAMP,
|
|
'{"provider":"email","providers":["email"]}',
|
|
'{}',
|
|
CURRENT_TIMESTAMP,
|
|
CURRENT_TIMESTAMP,
|
|
'',
|
|
'',
|
|
'',
|
|
''
|
|
FROM generate_series(1, 5));
|
|
COMMIT;
|