Spaces:
Sleeping
Sleeping
Claude Sonnet 4.6
feat: Cielo remembers Italian question — profile-based triggers, cielo_user_state table
0ebb4d1 Download characters/cielo/migration_user_state.sql from alesamodio/Socrates_docker: direct link, hf CLI and curl.
- Browser
- Download file 630 Bytes
-
https://huggingface.co/spaces/alesamodio/Socrates_docker/resolve/main/characters/cielo/migration_user_state.sql
- Command line
-
hf download hf://spaces/alesamodio/Socrates_docker/characters/cielo/migration_user_state.sql
-
curl -L -o migration_user_state.sql https://huggingface.co/spaces/alesamodio/Socrates_docker/resolve/main/characters/cielo/migration_user_state.sql
630 Bytes
| -- ============================================================ | |
| -- Cielo user-state table — run once in the Supabase SQL editor | |
| -- Tracks one-time flags per user (e.g. "has Cielo already asked about Italian?") | |
| -- ============================================================ | |
| CREATE TABLE IF NOT EXISTS cielo_user_state ( | |
| user_id TEXT PRIMARY KEY, | |
| asked_italian BOOLEAN DEFAULT FALSE, | |
| updated_at TIMESTAMPTZ DEFAULT now() | |
| ); | |
| ALTER TABLE cielo_user_state ENABLE ROW LEVEL SECURITY; | |
| CREATE POLICY "service_role_all_cielo_state" ON cielo_user_state | |
| FOR ALL TO service_role USING (true) WITH CHECK (true); | |