Skip to content
Back to skills

Couchbase订单库设计与文档生成

ASecurity

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

  • 611 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 11, 2026
educationsql

Security analysis

A100/100

Scanned November 11, 2026

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

Installs into .claude/skills of the current project.

Are you the author of Couchbase订单库设计与文档生成?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Couchbase订单库设计与文档生成
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/ecnu-icalk-couchbase/badge)](https://www.skillsdirectory.com/skills/ecnu-icalk-couchbase)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
id: "5a9a9d70-fa96-4ea0-b8a9-7424bf3e63b9"
name: "Couchbase订单库设计与文档生成"
description: "根据用户指定的字段结构设计Couchbase订单数据库(包含订单、客户、地址、货物表),生成对应的JSON文档,并编写N1QL查询语句。"
version: "0.1.0"
tags:
  - "Couchbase"
  - "数据库设计"
  - "订单管理"
  - "N1QL"
  - "JSON"
triggers:
  - "建立couchbase订单库"
  - "生成订单文档"
  - "查询订单"
  - "设计订单表结构"
  - "补全客户表和地址表"
---

# 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订单库
- 生成订单文档
- 查询订单
- 设计订单表结构
- 补全客户表和地址表

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in education →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.