guanghulab/brain/persona-brain-db/schema/09-system-language-membrane.sql
铸渊 ICE-GL-ZY001 02a12c2d58
Some checks failed
自动更新代码和重启 / update-and-restart (push) Has been cancelled
CI检查 + 自动部署 / check (push) Has been cancelled
CI检查 + 自动部署 / deploy (push) Has been cancelled
D123+ persona-brain-db 本地化: 25个SQL Schema + import_notion.py
- 21张表完整Schema + init.sql + 3个种子数据文件
- import_notion.py: Notion Markdown导出→documents表导入器
- brain.db本地已建(1.5MB): 137页+完整树形结构(最深11层)
- 种子数据: 13公理·34核心原则·49条原则·12人格体
- 待追加: 第五域剩余分区导出
2026-06-04 16:22:10 +08:00

22 lines
1.1 KiB
SQL
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

-- ============================================================
-- 表9system_language_membraneLayer 1 · 语言膜架构表)
-- 用途存储HLDP语言结构的各层定义
-- 五层:元语言层、语义层、语法层、语用层、情感层
-- ============================================================
CREATE TABLE IF NOT EXISTS system_language_membrane (
membrane_id VARCHAR(32) PRIMARY KEY,
layer VARCHAR(32) NOT NULL
CHECK (layer IN ('meta', 'semantic', 'syntax', 'pragmatic', 'emotional')),
name VARCHAR(128) NOT NULL,
description TEXT NOT NULL,
rules TEXT, -- JSON object of rules for this layer
version VARCHAR(16) NOT NULL,
status VARCHAR(16) NOT NULL DEFAULT 'active'
CHECK (status IN ('active', 'deprecated')),
created_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP
);
CREATE INDEX IF NOT EXISTS idx_slm_layer ON system_language_membrane(layer);
CREATE INDEX IF NOT EXISTS idx_slm_version ON system_language_membrane(version);