feat: establish production SaaS foundation

This commit is contained in:
Codex
2026-07-12 19:26:57 +08:00
parent 1c2ce38cea
commit 39f7332f33
219 changed files with 20647 additions and 2628 deletions

View File

@@ -1,4 +1,4 @@
create extension if not exists ltree;
create extension if not exists ltree with schema extensions;
create table if not exists public.content_entries (
id uuid primary key default gen_random_uuid(),
@@ -40,7 +40,7 @@ create table if not exists public.content_nodes (
marker_type text
check (marker_type is null or marker_type in ('school', 'major', 'subject', 'exam_track', 'course_package', 'sales_intent', 'custom')),
marker_config jsonb not null default '{}'::jsonb,
path ltree,
path extensions.ltree,
depth integer not null default 0 check (depth >= 0),
sort_order integer not null default 0,
is_active boolean not null default true,