Files
iAOP/core/data-bus/config/postgres.template.yaml

24 lines
975 B
YAML
Raw Permalink 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.
# -*- coding: utf-8 -*-
# 模板「PostgreSQL 关系库」配置资产示例:ti-cl4(氯化车间/海绵钛,Template-Ti 一期)。
#
# 说明(issue #30 / PRD 5.2「② 数据总线 + 时序库」):
# - 隔离 schema:`tpl_{template}`,内含基础关系表(模板/模型/用户/权限);
# - schema_tables:可选子集/扩展(缺省使用内核默认四表,见 postgres_schema.py);
# - roles:关系角色声明(生成 {role}_ro / {role}_rw 授权语句);
# - 换行业只改本文件(template / roles / schema_tables),内核零改动。
template: ti-cl4
version: 1.0.0
postgres:
# 关系角色:每个角色生成 `{role}_ro`(只读)与 `{role}_rw`(读写)
roles:
- databus
- modeler
# 基础关系表(缺省 = templates / models / users / permissions;
# 此处仅声明,列定义用内核默认,避免与实现漂移)
schema_tables:
- templates
- models
- users
- permissions