Spaces:
Sleeping
Sleeping
GitHub Actions Bot commited on
Commit ยท
fe5e4c1
1
Parent(s): 981907f
Deploy: b36f4e2d5ac2bb930c0a8bf385fedd7dc2d04968
Browse files
README.md
CHANGED
|
@@ -16,28 +16,8 @@ This backend runs a dual-model pipeline for text and image understanding.
|
|
| 16 |
|
| 17 |
## ๐ ๏ธ Supabase SQL Setup
|
| 18 |
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
```sql
|
| 22 |
-
-- 1. Create Storage Bucket for User Uploads
|
| 23 |
-
insert into storage.buckets (id, name, public)
|
| 24 |
-
values ('user_uploads', 'user_uploads', true);
|
| 25 |
-
|
| 26 |
-
-- 2. Create MLOps Training Logs Table
|
| 27 |
-
create table training_logs (
|
| 28 |
-
id bigint generated by default as identity primary key,
|
| 29 |
-
created_at timestamp with time zone default timezone('utc'::text, now()) not null,
|
| 30 |
-
original_text text,
|
| 31 |
-
enhanced_text text,
|
| 32 |
-
vision_description text,
|
| 33 |
-
image_path text,
|
| 34 |
-
category text
|
| 35 |
-
);
|
| 36 |
-
|
| 37 |
-
-- 3. Set up Storage Policies (Allow Public Read)
|
| 38 |
-
create policy "Public Access" on storage.objects for select using ( bucket_id = 'user_uploads' );
|
| 39 |
-
create policy "Allow Upload" on storage.objects for insert with check ( bucket_id = 'user_uploads' );
|
| 40 |
-
```
|
| 41 |
|
| 42 |
## ๐ API Deployment
|
| 43 |
|
|
|
|
| 16 |
|
| 17 |
## ๐ ๏ธ Supabase SQL Setup
|
| 18 |
|
| 19 |
+
Canonical SQL is maintained in `docs/setup/supabase-schema.md`. Use that file
|
| 20 |
+
as the source of truth and keep it in sync with any schema or storage changes.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 21 |
|
| 22 |
## ๐ API Deployment
|
| 23 |
|