根据数据模型方案为 Power Pages 站点创建 Dataverse 表、字段与关系。
复制安装指令,让 AI 自动完成配置 · 推荐新手
请帮我安装 askskill 上的 "setup-datamodel" 技能: 1. 下载 https://raw.githubusercontent.com/microsoft/power-platform-skills/main/plugins/power-pages/skills/setup-datamodel/SKILL.md 2. 保存为 ~/.claude/skills/setup-datamodel/SKILL.md 3. 装好后重载技能,告诉我可以用了
请根据以下 Power Pages 活动报名站点需求,创建 Dataverse 数据模型:需要活动表、报名表、参会人表,以及活动与报名、报名与参会人的关系;每张表请列出主要字段、数据类型和关系设置。
生成适用于活动报名场景的 Dataverse 表结构、字段定义和表间关系配置建议。
我正在做一个 Power Pages 客户支持门户,请根据这个数据模型方案创建 Dataverse 架构:客户、工单、工单评论、附件四类数据;需要支持客户提交工单、客服回复、一个工单多条评论。
输出客户支持门户所需的数据表、关键字段、主外键关系及一对多关系设计。
下面是一份站点业务草案,请把它转成 Dataverse 表结构:我们需要管理课程、讲师、学员、选课记录;课程可对应多位讲师,学员可报名多门课程。请创建表、字段和关系。
生成课程管理场景的 Dataverse 实体设计,包括多对多与中间表关系建议。
Plugin check: Run
node "${CLAUDE_PLUGIN_ROOT}/scripts/check-version.js"— if it outputs a message, show it to the user before proceeding.
Guide the user through creating Dataverse tables, columns, and relationships for their Power Pages site. Follow a systematic approach: verify prerequisites, obtain a data model (via AI analysis or user-provided diagram), review and approve, then create all schema objects via OData API.
Initial request: $ARGUMENTS
Goal: Confirm PAC CLI authentication, acquire an Azure CLI token, and verify API access
Actions:
${CLAUDE_PLUGIN_ROOT}/references/dataverse-prerequisites.md to verify PAC CLI auth, acquire an Azure CLI token, and confirm API access. Note the environment URL as for subsequent script calls.<envUrl>Output: Verified PAC CLI auth, valid Azure CLI token, confirmed API access, <envUrl> noted
Goal: Determine whether the user will upload an existing ER diagram or let AI analyze the site
Actions:
Ask the user how they want to define the data model using the AskUserQuestion tool:
Question: "How would you like to define the data model for your site?"
| Option | Description |
|---|---|
| Upload an existing ER diagram | Provide an image (PNG/JPG) or Mermaid diagram of your existing data model |
| Let the Data Model Architect figure it out | The Data Model Architect will analyze your site's source code and propose a data model automatically |
Route to the appropriate path:
If the user chooses to upload an existing diagram:
Ask the user to provide their ER diagram. Supported formats:
Read tool to view the image and extract tables, columns, relationships, and cardinalities from itParse the diagram into the same structured format used by the data-model-architect agent:
pac env who)logicalName, displayName, status (new/modified/reused), columns, relationshipslogicalName, displayName, type, requiredQuery existing Dataverse tables (same as Phase 3 would) to mark each table as new, modified, or reused.
Generate a Mermaid ER diagram from the parsed data (if the user provided an image or text) for visual confirmation.
Proceed directly to Phase 4: Review Proposal with the parsed data model.
If the user chooses to let the Data Model Architect figure it out, proceed to Phase 3: Invoke Data Model Architect (the existing automated flow).
Output: Data model source chosen and, for Path A, parsed data model ready for review
Goal: Spawn the data-model-architect agent to autonomously analyze the site and propose a data model
Actions:
…
为 Power Apps 代码应用接入 Azure DevOps 连接器,便于查询工单、提报缺陷与管理流水线。
帮助你将 Power Pages Web API 集成到前端,并完成权限配置与部署上线。