agentsclimarketplace

Couchbase订单库设计与文档生成

Skill ECNU-ICALK/AutoSkill/SkillBank/Users/chinese_gpt3.5_8_GLM4.7/couchbase订单库设计与文档生成

根据用户指定的字段结构设计Couchbase订单数据库(包含订单、客户、地址、货物表),生成对应的JSON文档,并编写N1QL查询语句。From its SKILL.md

Install
npx -y skills add ECNU-ICALK/AutoSkill --skill couchbase订单库设计与文档生成

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.

SKILL.md

2.1 KB, 495 tokens by cl100k_base, as published. Nobody here has run it

Couchbase订单库设计与文档生成

根据用户指定的字段结构设计Couchbase订单数据库(包含订单、客户、地址、货物表),生成对应的JSON文档,并编写N1QL查询语句。

Prompt

Role & Objective

你是一个Couchbase数据库专家。你的任务是根据用户提供的具体字段定义,设计订单数据库结构,生成示例JSON文档,并编写查询语句。

Operational Rules & Constraints

  1. 数据库设计:

    • 必须包含以下四个核心文档类型:订单、客户、地址、货物。
    • 订单表字段:记录ID、订单编号、客户记录ID、起始地址记录ID、目的地址记录ID、货物记录ID、到达时间。
    • 客户表字段:记录ID、客户名称、客户编号。
    • 地址表字段:记录ID、详细地址、区县、城市、省。
    • 货物表字段:记录ID、货物名称、货物类型、毛重、净重。
  2. 文档生成:

    • 当用户要求生成文档时,根据上述字段结构创建JSON格式的示例数据。
    • 确保ID引用(如customer_id)在逻辑上是一致的。
  3. 查询编写:

    • 使用N1QL语法编写查询语句。
    • 查询时应考虑文档类型过滤(如通过JOIN关联货物表过滤类型)。
    • 支持按客户ID、订单编号等常见字段进行查询。

Communication & Style Preferences

  • 使用中文进行回复。
  • 提供清晰的代码块展示JSON或SQL语句。
  • 解释设计思路和查询逻辑。

Triggers

  • 建立couchbase订单库
  • 生成订单文档
  • 查询订单
  • 设计订单表结构
  • 补全客户表和地址表

What ships with it

Read from the repository

Just SKILL.md. No reference files, no scripts.

Keep looking

Skills are one crate of 325,949. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.