omnivore
omnivore
USER_ID=$(uuidgen)
PASSWORD='$2a$10$41G6b1BDUdxNjH1QFPJYDOM29EE0C9nTdjD1FoseuQ8vZU1NWtrh6'
'$2b$10$kYEmhweZNys6zAD3RCzjh.4XWq3AJ9NuWT8zXWomyhXHrAgJTFAYC'
USER_ID=$(uuidgen)
EMAIL='test@gmail.com'
PASSWORD='$2b$10$qLUJUmH62qV2ujhg51WKsetm07cdIs0Jb7JmjdLg9ZUiWupZ6kH3C'
psql --host $PG_HOST -U $PG_USER -d $PG_DB -c "INSERT INTO omnivore.user (id, source, email, source_user_id, name, password) VALUES ('$USER_ID', '$EMAIL', 'demo@omnivore.app', 'demo@omnivore.app', 'Demo User', '$PASSWORD'); INSERT INTO omnivore.user_profile (user_id, username) VALUES ('$USER_ID', 'demo_user');"
docker exec -it omnivore-postgres bash
psql -d omnivore -U app_user
\dt
exit
psql -d omnivore -U postgres
\dt
select * from schemaversion;
-- next_password is the password
INSERT INTO omnivore.USER (id, source, email, source_user_id, name, password)
VALUES
(
'248d6f83-8a86-4c2a-a156-284b02355ca6',
'EMAIL',
'test@gmail.com',
'test@gmail.com',
'Test User',
'$2b$10$qLUJUmH62qV2ujhg51WKsetm07cdIs0Jb7JmjdLg9ZUiWupZ6kH3C'
);
INSERT INTO omnivore.user_profile (user_id, username)
VALUES
(
'248d6f83-8a86-4c2a-a156-284b02355ca6',
'test_user'
);
Reminders
INSERT INTO omnivore.USER (id, source, email, source_user_id, name, password)
VALUES ('$USER_ID', '$EMAIL', 'demo@omnivore.app', 'demo@omnivore.app', 'Demo User', '$PASSWORD');
INSERT INTO omnivore.user_profile (user_id, username)
VALUES ('$USER_ID', 'demo_user');
Sources
Backlinks