-
Notifications
You must be signed in to change notification settings - Fork 18
Update is_guest field logic in 01_create_tables.sql #65
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Update is_guest field logic in 01_create_tables.sql #65
Conversation
Thanks Umar for your contribution! |
One more thing: the code in
to make the necessary updates. |
Thanks Umar. Good job. Could you please update the logic for checking if a user -- Update the `users` table to set `is_guest` to TRUE where:
-- 1. Email matches the guest pattern (starts with 'guest_' and ends with '@endeavorpal.com')
-- 2. First name is 'Welcome'
-- 3. Last name is 'Guest'
UPDATE users
SET
is_guest = TRUE,
updated_at = CURRENT_TIMESTAMP
WHERE
email LIKE 'guest_%@endeavorpal.com'
AND first_name = 'Welcome'
AND last_name = 'Guest'; This SQL logic should also be applied to the Python code in |
put the logic in a different file
Abandoned. |
This pull request updates the logic for setting the is_guest field in the 01_create_tables.sql file