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

Supabase SQL schema #85

Open
WeiY opened this issue Apr 13, 2024 · 7 comments
Open

Supabase SQL schema #85

WeiY opened this issue Apr 13, 2024 · 7 comments

Comments

@WeiY
Copy link

WeiY commented Apr 13, 2024

When I tried to self host the midday dashboard, there is an error with getUser (cannot find the relationship between user id and team id). Maybe because I don’t create any table in Supabase. Right now I only found the generated typescript types and there is no SQL schema. Is there anyway to create tables in Supabase? Thanks!

@pontusab
Copy link
Contributor

Yes, we are using supabase replicas and there is currently an issue generating the SQL schema, we will add it asap once fixed!

@WeiY
Copy link
Author

WeiY commented Apr 14, 2024

Thanks very much for reply! And if you have a simple document about how to setup the Supabase (like replicas) for dashboard running on self-host, that will be perfect.

@atresnjo
Copy link

atresnjo commented Apr 20, 2024

I've thought about creating it with the use of ChatGPT (convert TS types to CREATE statements), got close but cannot figure out the views because I have no idea where decrypted_name is taken from, guess I'll just wait a bit 👍

@atresnjo
Copy link

I got a lot working, can't seem to figure out the transaction view :D

image

image

got plaid and most of the stuff connected too, i guess my views are a bit wrong 😆

@pontusab
Copy link
Contributor

Hey, im in contact with supabase regarding generate the schema when you have 1. replicas 2. encryption on row level (that you notice here) because we use Vault to store keys and those are unique to every project (ofc)

I'll let you know when we have a plan here!

@azlekov
Copy link

azlekov commented Apr 30, 2024

Can someone put some notes or steps for self-hosting this? I want to play around with it.

Many thanks!

@cathalm1
Copy link

@pontusab any updates on when the sql schema will be released?

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

No branches or pull requests

5 participants