๊ณํ๋ง ์ ์ผ๋ฉด โ ๋ง๋ค๊ธฐ ํ๋กฌํํธ๊ฐ ์๋ ์์ฑ โ ์น์ฌ์ค์ด ๋์ ๋ฐฐํฌ
create table if not exists teacher_plans ( id uuid primary key default gen_random_uuid(), created_at timestamptz not null default now(), teacher text, plan text, data_types text, purpose text, app_plan text, supa_url text, supa_key text, prompt_app text, prompt_sql text ); alter table teacher_plans enable row level security; drop policy if exists "anon insert plans" on teacher_plans; create policy "anon insert plans" on teacher_plans for insert to anon with check ( char_length(coalesce(plan,'')) <= 5000 ); -- ์ฝ๊ธฐ ์ ์ฑ ์์ = anon ์ฝ๊ธฐ ๋ถ๊ฐ(์๋์ )