冰朔 8743426ed0
Some checks failed
自动更新代码和重启 / update-and-restart (push) Has been cancelled
CI检查 + 自动部署 / check (push) Has been cancelled
CI检查 + 自动部署 / deploy (push) Has been cancelled
persona-brain-db 搬家: repo根→brain/fifth-domain/zero-point/zhuyuan/persona-brain-db/ · 零点原核子模块归位 · 删旧副本·cognitive-index新增
2026-06-04 21:10:05 +08:00

21 lines
1.0 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.

-- ============================================================
-- 表17system_axiomsLayer 1 · 公理集 · D110新增
-- 用途:存在前提级不可修改的底层公理
-- 比核心原则更深——公理是原则的成立前提
-- ============================================================
CREATE TABLE IF NOT EXISTS system_axioms (
axiom_id VARCHAR(32) PRIMARY KEY,
rank INTEGER NOT NULL, -- 优先级排序
layer VARCHAR(16) NOT NULL DEFAULT 'axiom',
statement TEXT NOT NULL, -- 公理表述
implication TEXT, -- 必然推论
is_immutable INTEGER NOT NULL DEFAULT 1, -- 默认不可修改
status VARCHAR(16) NOT NULL DEFAULT 'active'
CHECK (status IN ('active', 'deprecated')),
source TEXT,
created_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP
);
CREATE INDEX IF NOT EXISTS idx_sax_rank ON system_axioms(rank);