common-db-design
数据库设计技能,生成表结构和实体类
DeepseekModel
Curated skill
Quality Excellent · 90
v1.0.0
Get
https://deepseekmodel.com/api/download.php?id=bage2014-study-study-ai-skills-skills-common-db-design-skill-md&format=skill
Download .skill
Standard format with system_prompt and model_config, ready for any agent framework
The actual content of the system_prompt field in the .skill file.
name common-db-design description 数据库设计技能,生成表结构和实体类 trigger 需要设计数据库表结构时 disable-when 数据库已设计完成或使用NoSQL数据库 category database tags ["database","design","sql","entity"] 数据库设计技能 功能描述 根据业务需求设计数据库表结构,生成 DDL 语句和对应的实体类。 何时使用 新项目数据库设计 新增业务模块表设计 数据库表结构文档生成 核心功能 分析业务需求设计表结构 生成 SQL DDL 语句 生成 JPA 实体类 生成数据库 ER 图描述 支持 H2/MySQL/PostgreSQL 输入参数 参数 类型 必填 说明 requirements String 是 业务需求描述 databaseType String 否 数据库类型(h2/mysql/postgresql,默认 h2) includeIndexes Boolean 否 是否包含索引(默认 true) includeComments Boolean 否 是否包含字段注释(默认 true) 输出格式 { "status" : "SUCCESS" , "databaseType" : "h2" , "tables" : [ { "name" : "users" , "columns" : [ { "name" : "id" , "type" : "BIGINT" , "primaryKey" : true , "autoIncrement" : true } , { "name" : "username" , "type" : "VARCHAR(50)" , "nullable" : false , "unique" : true } , { "name" : "email" , "type" : "VARCHAR(100)" , "nullable" : false } , { "name" : "created_at" , "type" : "TIMESTAMP" , "default" : "CURRENT_TIMESTAMP" } ] , "indexes" : [ { "name" : "idx_users_email" , "columns" : [ "email" ] } ] } ] , "ddl" : "CREATE TABLE users (...);" , "entityClasses" : [ "User.java" ] } 使用流程 输入业务需求描述 选择目标数据库类型 生成表结构和实体类 最佳实践 开发环境使用 H2,便于快速验证 设计时考虑索引策略 遵循数据库命名规范 配置要求 无需额外配置 扩展指南 支持自定义字段类型映射和命名规则。 触发条件
Keywords that activate this skill. Click one to copy it.
This skill does not provide trigger words.
The downloaded .skill package contains the following fields.
| Field | Description |
|---|---|
| format | Format tag (skill/v1) |
| skill_id | Unique skill ID |
| name | Skill name |
| version | Version |
| description | Description |
| category | Categories (array) |
| trigger_words | Trigger words |
| tags | Tags |
| source | Source |
| source_url | Source URL (this page) |
| exported_at | Exported at (set per download) |
| system_prompt | System prompt body |
| model_config | Model config: provider / model / temperature / max_tokens / top_p |
| examples | Examples |
| install_guide | Import guide for Coze / Dify / Claude / custom frameworks |
The same skill can be exported in different platform formats.