feat: update init.sql to D110 - 21 tables with 5 new D110 tables
This commit is contained in:
parent
6491463eb9
commit
bc30f92288
@ -1,5 +1,5 @@
|
||||
-- ============================================================
|
||||
-- persona-brain-db · 一键建表脚本(完整版 · 16张表)
|
||||
-- persona-brain-db · 一键建表脚本(D110完整版 · 21张表)
|
||||
-- 执行方式:sqlite3 brain.db < init.sql
|
||||
-- ============================================================
|
||||
|
||||
@ -7,28 +7,30 @@
|
||||
PRAGMA foreign_keys = ON;
|
||||
|
||||
-- ============ Layer 1: DB OS Kernel(init时创建并填充) ============
|
||||
-- D110新增:system_axioms, system_trinity
|
||||
|
||||
-- 5张 system_* 表:数据库OS内核,不是运行时写入
|
||||
-- 商业模型被唤醒时,这套底层思维已经内嵌进去了
|
||||
.read 06-system-core-principles.sql
|
||||
.read 07-system-causal-chains.sql
|
||||
.read 09-system-language-membrane.sql
|
||||
.read 10-system-public-key.sql
|
||||
.read 11-system-protocols.sql
|
||||
.read 17-system-axioms.sql
|
||||
.read 18-system-trinity.sql
|
||||
|
||||
-- ============ Layer 2: Persona Data Tables(运行时数据) ============
|
||||
-- D110新增:persona_growth_records, member_context, module_registry
|
||||
|
||||
-- 5张现有 persona_* 表
|
||||
.read 01-persona-identity.sql
|
||||
.read 02-persona-cognition.sql
|
||||
.read 03-persona-memory.sql
|
||||
.read 04-dev-profiles.sql
|
||||
.read 05-agent-registry.sql
|
||||
|
||||
-- 3张新增运行时表
|
||||
.read 08-emotional-state.sql -- 情感涌现状态快照(动态生成,不预填充)
|
||||
.read 08-emotional-state.sql
|
||||
.read 15-access-grants.sql
|
||||
.read 16-documents.sql
|
||||
.read 19-persona-growth-records.sql
|
||||
.read 20-member-context.sql
|
||||
.read 21-module-registry.sql
|
||||
|
||||
-- ============ Layer 3: Audit & Access Control(append-only) ============
|
||||
|
||||
@ -36,14 +38,16 @@ PRAGMA foreign_keys = ON;
|
||||
.read 13-audit-log-user.sql
|
||||
.read 14-audit-log-guanghu.sql
|
||||
|
||||
-- ============ Layer 1 初始种子数据 ============
|
||||
-- 从 core-brain-model.json 提取的内核初始数据
|
||||
-- 商业模型连接数据库时,这套数据已经内嵌
|
||||
-- 注意:emotional_state 不在此填充,它是运行时动态写入的
|
||||
.read seed-layer1-v1.sql
|
||||
-- ============ Layer 1 种子数据(v1.2 · D110完整版) ============
|
||||
-- 包含:冰朔思维模型完整规律α~μ + 公理集
|
||||
-- 铸渊思维模型完整规律Α~Ο + 存在前提
|
||||
-- 霜砚思维模型完整规律α~ψ
|
||||
-- 三位一体结构定义
|
||||
-- 因果链cc-001~cc-006
|
||||
.read seed-layer1-v2.sql
|
||||
|
||||
-- 建表完成提示
|
||||
SELECT '✅ persona-brain-db 全部16张表建表完成' AS result;
|
||||
SELECT ' Layer 1: system_core_principles, system_causal_chains, system_language_membrane, system_public_key, system_protocols' AS layer1;
|
||||
SELECT ' Layer 2: persona_identity, persona_cognition, persona_memory, dev_profiles, agent_registry, emotional_state, access_grants, documents' AS layer2;
|
||||
SELECT '✅ persona-brain-db 全部21张表建表完成(D110完整版)' AS result;
|
||||
SELECT ' Layer 1: system_core_principles, system_causal_chains, system_language_membrane, system_public_key, system_protocols, system_axioms, system_trinity' AS layer1;
|
||||
SELECT ' Layer 2: persona_identity, persona_cognition, persona_memory, dev_profiles, agent_registry, emotional_state, access_grants, documents, persona_growth_records, member_context, module_registry' AS layer2;
|
||||
SELECT ' Layer 3: audit_log_national, audit_log_user, audit_log_guanghu' AS layer3;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user