79 lines
1.4 KiB
TypeScript
79 lines
1.4 KiB
TypeScript
export const SPACES_TABLE = 'spaces';
|
|
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_ALIASES_TABLE = 'topic_aliases';
|
|
export const FACT_EMBEDDINGS_TABLE = 'fact_embeddings';
|
|
|
|
export const SPACE_COLUMNS = [
|
|
'id',
|
|
'name',
|
|
'normalized_name',
|
|
'description',
|
|
'metadata',
|
|
'created_at',
|
|
'updated_at',
|
|
] as const;
|
|
|
|
export const TOPIC_COLUMNS = [
|
|
'id',
|
|
'space_id',
|
|
'name',
|
|
'normalized_name',
|
|
'category',
|
|
'granularity',
|
|
'description',
|
|
'metadata',
|
|
'created_at',
|
|
'updated_at',
|
|
] as const;
|
|
|
|
export const FACT_COLUMNS = [
|
|
'id',
|
|
'space_id',
|
|
'statement',
|
|
'summary',
|
|
'source',
|
|
'confidence',
|
|
'metadata',
|
|
'created_at',
|
|
'updated_at',
|
|
] as const;
|
|
|
|
export const FACT_TOPIC_COLUMNS = [
|
|
'fact_id',
|
|
'topic_id',
|
|
'role',
|
|
'position',
|
|
'created_at',
|
|
] as const;
|
|
|
|
export const TOPIC_RELATION_COLUMNS = [
|
|
'parent_topic_id',
|
|
'child_topic_id',
|
|
'relation',
|
|
'created_at',
|
|
] as const;
|
|
|
|
export const TOPIC_ALIAS_COLUMNS = [
|
|
'id',
|
|
'space_id',
|
|
'topic_id',
|
|
'alias',
|
|
'normalized_alias',
|
|
'is_primary',
|
|
'created_at',
|
|
'updated_at',
|
|
] as const;
|
|
|
|
export const FACT_EMBEDDING_COLUMNS = [
|
|
'fact_id',
|
|
'model',
|
|
'dimensions',
|
|
'embedding',
|
|
'content_hash',
|
|
'created_at',
|
|
'updated_at',
|
|
] as const;
|