about summary refs log tree commit diff
diff options
context:
space:
mode:
authorBaitinq <manuelpalenzuelamerino@gmail.com>2024-05-28 19:54:02 +0200
committerBaitinq <manuelpalenzuelamerino@gmail.com>2024-05-28 19:54:02 +0200
commit88d85a02f0f8799cb6b39c857a510e3b5d99171e (patch)
tree8ca45ed8bca385a28aeceeda1f4ae85859aa5747
parentrest-api: connect to db and add /file/ GET endpoint (diff)
downloadfs-tracer-backend-88d85a02f0f8799cb6b39c857a510e3b5d99171e.tar.gz
fs-tracer-backend-88d85a02f0f8799cb6b39c857a510e3b5d99171e.tar.bz2
fs-tracer-backend-88d85a02f0f8799cb6b39c857a510e3b5d99171e.zip
supabase: add api_keys table migration
-rw-r--r--supabase/migrations/20240528175243_create_api_keys_table.sql4
1 files changed, 4 insertions, 0 deletions
diff --git a/supabase/migrations/20240528175243_create_api_keys_table.sql b/supabase/migrations/20240528175243_create_api_keys_table.sql
new file mode 100644
index 0000000..5efa946
--- /dev/null
+++ b/supabase/migrations/20240528175243_create_api_keys_table.sql
@@ -0,0 +1,4 @@
+CREATE TABLE IF NOT EXISTS private.api_keys (
+  id UUID NOT NULL REFERENCES auth.users,
+  api_key CHAR(44) NOT NULL
+);