Skip to content
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

Feat: Add migrations and seed data #20

Closed
wants to merge 4 commits into from

Conversation

brycedev
Copy link
Contributor

@brycedev brycedev commented Sep 1, 2024

Fixes #1

  • Create primary migrations (auth.users, public.users, public.posts)
  • Add seed data (...)

Figured I would leave display to you @pontusab

Copy link

vercel bot commented Sep 1, 2024

@brycedev is attempting to deploy a commit to the Midday Labs AB Team on Vercel.

A member of the Team first needs to authorize it.

@brycedev brycedev changed the title https://github.com/midday-ai/v1/issues/1 Add Migrations and Seed Data Sep 1, 2024
@brycedev brycedev changed the title Add Migrations and Seed Data Feat: Add Migrations and Seed Data Sep 1, 2024
@brycedev brycedev changed the title Feat: Add Migrations and Seed Data Feat: Add migrations and seed data Sep 1, 2024
on public .users for each row execute function update_updated_at();

-- create a policy to allow users to read all profiles
create policy read_all_profiles on public .users for
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

// security: allows all users emails to be read. very bad.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@xyzeva I agree. I think the email doesn't need to be on this table at all actually, but was following the user update schema.

@pontusab
Copy link
Contributor

pontusab commented Sep 1, 2024

thank you! I can take over the RLS if you want regarding security!

@brycedev
Copy link
Contributor Author

brycedev commented Sep 1, 2024

thank you! I can take over the RLS if you want regarding security!

All yours!

@pontusab
Copy link
Contributor

pontusab commented Sep 2, 2024

Closing in favor of: #26

@pontusab pontusab closed this Sep 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Supabase example table with seed
3 participants