fix:1.修复职业管理页面生成权限问题,兼容旧项目
This commit is contained in:
@@ -191,62 +191,6 @@ ORDER BY cc.career_type DESC, cc.created_at;
|
||||
|
||||
COMMENT ON VIEW v_character_career_details IS '角色职业详细信息视图';
|
||||
|
||||
-- ===== 5. 插入测试数据(可选) =====
|
||||
-- 这里可以插入一些示例职业数据用于测试
|
||||
-- 注意:project_id需要替换为实际存在的项目ID
|
||||
|
||||
/*
|
||||
-- 示例:修仙类主职业
|
||||
INSERT INTO careers (id, project_id, name, type, description, category, stages, max_stage, requirements, special_abilities, worldview_rules, source)
|
||||
VALUES (
|
||||
gen_random_uuid()::text,
|
||||
'YOUR_PROJECT_ID_HERE',
|
||||
'剑修',
|
||||
'main',
|
||||
'以剑入道,追求极致剑意,是修仙界最强大的战斗职业之一。',
|
||||
'战斗系',
|
||||
'[
|
||||
{"level": 1, "name": "炼气期", "description": "初窥门径,凝聚剑气"},
|
||||
{"level": 2, "name": "筑基期", "description": "根基稳固,剑气成形"},
|
||||
{"level": 3, "name": "金丹期", "description": "凝结金丹,剑意初显"},
|
||||
{"level": 4, "name": "元婴期", "description": "元婴成就,剑意大成"},
|
||||
{"level": 5, "name": "化神期", "description": "化神蜕变,剑道通神"},
|
||||
{"level": 6, "name": "炼虚期", "description": "炼虚合道,剑破虚空"},
|
||||
{"level": 7, "name": "合体期", "description": "天人合一,剑心合道"},
|
||||
{"level": 8, "name": "大乘期", "description": "大乘境界,剑开天地"},
|
||||
{"level": 9, "name": "渡劫期", "description": "渡劫飞升,剑斩天劫"},
|
||||
{"level": 10, "name": "仙人", "description": "飞升成仙,剑意永恒"}
|
||||
]',
|
||||
10,
|
||||
'需要剑道天赋,坚韧不拔的意志',
|
||||
'剑气纵横、剑意凌云、御剑飞行',
|
||||
'符合修仙世界观,属于正统修炼体系',
|
||||
'ai'
|
||||
);
|
||||
|
||||
-- 示例:副职业
|
||||
INSERT INTO careers (id, project_id, name, type, description, category, stages, max_stage, requirements, special_abilities, source)
|
||||
VALUES (
|
||||
gen_random_uuid()::text,
|
||||
'YOUR_PROJECT_ID_HERE',
|
||||
'炼丹师',
|
||||
'sub',
|
||||
'精通丹药炼制,能够炼制各种增强修为、疗伤、辅助的丹药。',
|
||||
'生产系',
|
||||
'[
|
||||
{"level": 1, "name": "学徒", "description": "初学炼丹,成功率较低"},
|
||||
{"level": 2, "name": "初级炼丹师", "description": "可炼制基础丹药"},
|
||||
{"level": 3, "name": "中级炼丹师", "description": "可炼制进阶丹药"},
|
||||
{"level": 4, "name": "高级炼丹师", "description": "可炼制高级丹药"},
|
||||
{"level": 5, "name": "宗师级炼丹师", "description": "炉火纯青,可炼制顶级丹药"}
|
||||
]',
|
||||
5,
|
||||
'需要对火候的精准掌控和丰富的药材知识',
|
||||
'丹药炼制、药性分析、丹劫应对',
|
||||
'ai'
|
||||
);
|
||||
*/
|
||||
|
||||
-- ===== 完成提示 =====
|
||||
DO $$
|
||||
BEGIN
|
||||
|
||||
Reference in New Issue
Block a user