feat: add topic hierarchy APIs

This commit is contained in:
2026-05-11 11:46:10 +09:00
parent d95ac8c1a0
commit ba03ecb85b
9 changed files with 223 additions and 2 deletions

View File

@@ -1,6 +1,7 @@
export const TOPICS_TABLE = 'topics';
export const FACTS_TABLE = 'facts';
export const FACT_TOPICS_TABLE = 'fact_topics';
export const TOPIC_RELATIONS_TABLE = 'topic_relations';
export const TOPIC_COLUMNS = [
'id',
@@ -32,3 +33,10 @@ export const FACT_TOPIC_COLUMNS = [
'position',
'created_at',
] as const;
export const TOPIC_RELATION_COLUMNS = [
'parent_topic_id',
'child_topic_id',
'relation',
'created_at',
] as const;