×
¥
查看详情
🔥 会员专享 文生文 工具

快速数据库结构生成助手

👁️ 450 次查看
📅 Nov 24, 2025
💡 核心价值: 根据用户输入的表名称、字段和关系信息,快速生成标准化数据库结构和DDL语句,自动匹配字段类型,支持表间关系描述,便于初学者和原型设计用户快速搭建数据库。

🎯 可自定义参数(5个)

项目名称
数据库项目的标识名称
表名称
需要生成的数据库表名称
字段列表
以逗号分隔的字段列表,用于定义表结构
主键字段
在字段列表中唯一的主键字段
表间关系
遵循特定格式的表间关系描述

🎨 效果示例

{ "databaseSchema": "CREATE TABLE users (\n id BIGINT UNSIGNED NOT NULL AUTO_INCREMENT,\n username VARCHAR(50) NOT NULL,\n email VARCHAR(255) NOT NULL,\n phone VARCHAR(20),\n password_hash VARCHAR(255) NOT NULL,\n avatar_url VARCHAR(512),\n status TINYINT NOT NULL DEFAULT 1,\n signup_ip VARCHAR(45),\n last_login_at DATETIME,\n created_at DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,\n updated_at DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,\n PRIMARY KEY (id),\n UNIQUE KEY uk_users_username (username),\n UNIQUE KEY uk_users_email (email),\n INDEX idx_users_phone (phone)\n) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;\n\nCREATE TABLE roles (\n id BIGINT UNSIGNED NOT NULL AUTO_INCREMENT,\n name VARCHAR(50) NOT NULL,\n description VARCHAR(255),\n created_at DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,\n updated_at DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,\n PRIMARY KEY (id),\n UNIQUE KEY uk_roles_name (name)\n) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;\n\nCREATE TABLE orders (\n id BIGINT UNSIGNED NOT NULL AUTO_INCREMENT,\n user_id BIGINT UNSIGNED NOT NULL,\n status TINYINT NOT NULL DEFAULT 0,\n total_amount DECIMAL(10,2) NOT NULL DEFAULT 0.00,\n created_at DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,\n updated_at DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,\n PRIMARY KEY (id),\n INDEX idx_orders_user_id (user_id),\n CONSTRAINT fk_orders_user FOREIGN KEY (user_id) REFERENCES users(id) ON DELETE CASCADE ON UPDATE CASCADE\n) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;\n\nCREATE TABLE profiles (\n user_id BIGINT UNSIGNED NOT NULL,\n full_name VARCHAR(100),\n birthday DATE,\n bio TEXT,\n created_at DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,\n updated_at DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,\n PRIMARY KEY (user_id),\n CONSTRAINT fk_profiles_user FOREIGN KEY (user_id) REFERENCES users(id) ON DELETE CASCADE ON UPDATE CASCADE\n) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;\n\nCREATE TABLE user_roles (\n user_id BIGINT UNSIGNED NOT NULL,\n role_id BIGINT UNSIGNED NOT NULL,\n assigned_at DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,\n PRIMARY KEY (user_id, role_id),\n INDEX idx_ur_role_id (role_id),\n CONSTRAINT fk_user_roles_user FOREIGN KEY (user_id) REFERENCES users(id) ON DELETE CASCADE ON UPDATE CASCADE,\n CONSTRAINT fk_user_roles_role FOREIGN KEY (role_id) REFERENCES roles(id) ON DELETE CASCADE ON UPDATE CASCADE\n) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;", "tables": [ { "tableName": "users", "fields": [ {"name": "id", "type": "BIGINT UNSIGNED", "isPrimaryKey": true}, {"name": "username", "type": "VARCHAR(50)", "isPrimaryKey": false}, {"name": "email", "type": "VARCHAR(255)", "isPrimaryKey": false}, {"name": "phone", "type": "VARCHAR(20)", "isPrimaryKey": false}, {"name": "password_hash", "type": "VARCHAR(255)", "isPrimaryKey": false}, {"name": "avatar_url", "type": "VARCHAR(512)", "isPrimaryKey": false}, {"name": "status", "type": "TINYINT", "isPrimaryKey": false}, {"name": "signup_ip", "type": "VARCHAR(45)", "isPrimaryKey": false}, {"name": "last_login_at", "type": "DATETIME", "isPrimaryKey": false}, {"name": "created_at", "type": "DATETIME", "isPrimaryKey": false}, {"name": "updated_at", "type": "DATETIME", "isPrimaryKey": false} ] }, { "tableName": "roles", "fields": [ {"name": "id", "type": "BIGINT UNSIGNED", "isPrimaryKey": true}, {"name": "name", "type": "VARCHAR(50)", "isPrimaryKey": false}, {"name": "description", "type": "VARCHAR(255)", "isPrimaryKey": false}, {"name": "created_at", "type": "DATETIME", "isPrimaryKey": false}, {"name": "updated_at", "type": "DATETIME", "isPrimaryKey": false} ] }, { "tableName": "orders", "fields": [ {"name": "id", "type": "BIGINT UNSIGNED", "isPrimaryKey": true}, {"name": "user_id", "type": "BIGINT UNSIGNED", "isPrimaryKey": false}, {"name": "status", "type": "TINYINT", "isPrimaryKey": false}, {"name": "total_amount", "type": "DECIMAL(10,2)", "isPrimaryKey": false}, {"name": "created_at", "type": "DATETIME", "isPrimaryKey": false}, {"name": "updated_at", "type": "DATETIME", "isPrimaryKey": false} ] }, { "tableName": "profiles", "fields": [ {"name": "user_id", "type": "BIGINT UNSIGNED", "isPrimaryKey": true}, {"name": "full_name", "type": "VARCHAR(100)", "isPrimaryKey": false}, {"name": "birthday", "type": "DATE", "isPrimaryKey": false}, {"name": "bio", "type": "TEXT", "isPrimaryKey": false}, {"name": "created_at", "type": "DATETIME", "isPrimaryKey": false}, {"name": "updated_at", "type": "DATETIME", "isPrimaryKey": false} ] }, { "tableName": "user_roles", "fields": [ {"name": "user_id", "type": "BIGINT UNSIGNED", "isPrimaryKey": true}, {"name": "role_id", "type": "BIGINT UNSIGNED", "isPrimaryKey": true}, {"name": "assigned_at", "type": "DATETIME", "isPrimaryKey": false} ] } ], "relationships": [ "orders.user_id -> users.id", "profiles.user_id -> users.id", "user_roles.user_id -> users.id", "user_roles.role_id -> roles.id" ] }

{ "databaseSchema": "CREATE TABLE articles (\n id INTEGER GENERATED BY DEFAULT AS IDENTITY PRIMARY KEY,\n title VARCHAR(255) NOT NULL,\n content TEXT,\n created_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP\n);\n\nCREATE TABLE tags (\n id INTEGER GENERATED BY DEFAULT AS IDENTITY PRIMARY KEY,\n name VARCHAR(100) NOT NULL,\n description VARCHAR(255),\n created_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,\n CONSTRAINT uq_tags_name UNIQUE (name)\n);\n\nCREATE TABLE article_tags (\n id INTEGER GENERATED BY DEFAULT AS IDENTITY PRIMARY KEY,\n article_id INTEGER NOT NULL,\n tag_id INTEGER NOT NULL,\n tag_label VARCHAR(100),\n created_by INTEGER,\n created_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,\n CONSTRAINT fk_article_tags_article FOREIGN KEY (article_id) REFERENCES articles(id) ON DELETE CASCADE,\n CONSTRAINT fk_article_tags_tag FOREIGN KEY (tag_id) REFERENCES tags(id) ON DELETE CASCADE,\n CONSTRAINT uq_article_tag UNIQUE (article_id, tag_id)\n);\n\nCREATE INDEX idx_article_tags_article ON article_tags(article_id);\nCREATE INDEX idx_article_tags_tag ON article_tags(tag_id);\n\nCREATE TABLE comments (\n id INTEGER GENERATED BY DEFAULT AS IDENTITY PRIMARY KEY,\n article_id INTEGER NOT NULL,\n content TEXT NOT NULL,\n created_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,\n CONSTRAINT fk_comments_article FOREIGN KEY (article_id) REFERENCES articles(id) ON DELETE CASCADE\n);\n\nCREATE INDEX idx_comments_article ON comments(article_id);\n", "tables": [ { "tableName": "articles", "fields": [ {"name": "id", "type": "INTEGER", "isPrimaryKey": true}, {"name": "title", "type": "VARCHAR(255)", "isPrimaryKey": false}, {"name": "content", "type": "TEXT", "isPrimaryKey": false}, {"name": "created_at", "type": "TIMESTAMP", "isPrimaryKey": false} ] }, { "tableName": "tags", "fields": [ {"name": "id", "type": "INTEGER", "isPrimaryKey": true}, {"name": "name", "type": "VARCHAR(100)", "isPrimaryKey": false}, {"name": "description", "type": "VARCHAR(255)", "isPrimaryKey": false}, {"name": "created_at", "type": "TIMESTAMP", "isPrimaryKey": false} ] }, { "tableName": "article_tags", "fields": [ {"name": "id", "type": "INTEGER", "isPrimaryKey": true}, {"name": "article_id", "type": "INTEGER", "isPrimaryKey": false}, {"name": "tag_id", "type": "INTEGER", "isPrimaryKey": false}, {"name": "tag_label", "type": "VARCHAR(100)", "isPrimaryKey": false}, {"name": "created_by", "type": "INTEGER", "isPrimaryKey": false}, {"name": "created_at", "type": "TIMESTAMP", "isPrimaryKey": false} ] }, { "tableName": "comments", "fields": [ {"name": "id", "type": "INTEGER", "isPrimaryKey": true}, {"name": "article_id", "type": "INTEGER", "isPrimaryKey": false}, {"name": "content", "type": "TEXT", "isPrimaryKey": false}, {"name": "created_at", "type": "TIMESTAMP", "isPrimaryKey": false} ] } ], "relationships": [ "article_tags.article_id -> articles.id", "article_tags.tag_id -> tags.id", "comments.article_id -> articles.id" ] }

示例详情

📖 如何使用

模式 1:即插即用(手动档)
直接复制参数化模版。手动修改 {{变量}} 即可快速发起对话,适合对结果有精准预期的单次任务。
加载中...
💬 模式 2:沉浸式引导(交互档)
一键转化为交互式脚本。AI 将化身专业面试官或顾问,主动询问并引导您提供关键信息,最终合成高度定制化的专业结果。
转为交互式
🚀 模式 3:原生指令自动化(智能档)
无需切换,输入 / 唤醒 8000+ 专家级提示词。 插件将全站提示词库深度集成于 Chat 输入框。基于当前对话语境,系统智能推荐最契合的 Prompt 并自动完成参数化,让海量资源触手可及,从此彻底告别“手动搬运”。
安装插件
🔌 发布为 API 接口
将 Prompt 接入自动化工作流,核心利用平台批量评价反馈引擎,实现"采集-评价-自动优化"的闭环。通过 RESTful 接口动态注入变量,让程序在批量任务中自动迭代出更高质量的提示词方案,实现 Prompt 的自我进化。
发布 API
🤖 发布为 Agent 应用
以此提示词为核心生成独立 Agent 应用,内嵌相关工具(图片生成、参数优化等),提供完整解决方案。
创建 Agent

🕒 版本历史

当前版本
v2.1 2024-01-15
优化输出结构,增强情节连贯性
  • ✨ 新增章节节奏控制参数
  • 🔧 优化人物关系描述逻辑
  • 📝 改进主题深化引导语
  • 🎯 增强情节转折点设计
v2.0 2023-12-20
重构提示词架构,提升生成质量
  • 🚀 全新的提示词结构设计
  • 📊 增加输出格式化选项
  • 💡 优化角色塑造引导
v1.5 2023-11-10
修复已知问题,提升稳定性
  • 🐛 修复长文本处理bug
  • ⚡ 提升响应速度
v1.0 2023-10-01
首次发布
  • 🎉 初始版本上线
COMING SOON
版本历史追踪,即将启航
记录每一次提示词的进化与升级,敬请期待。

💬 用户评价

4.8
⭐⭐⭐⭐⭐
基于 28 条评价
5星
85%
4星
12%
3星
3%
👤
电商运营 - 张先生
⭐⭐⭐⭐⭐ 2025-01-15
双十一用这个提示词生成了20多张海报,效果非常好!点击率提升了35%,节省了大量设计时间。参数调整很灵活,能快速适配不同节日。
效果好 节省时间
👤
品牌设计师 - 李女士
⭐⭐⭐⭐⭐ 2025-01-10
作为设计师,这个提示词帮我快速生成创意方向,大大提升了工作效率。生成的海报氛围感很强,稍作调整就能直接使用。
创意好 专业
COMING SOON
用户评价与反馈系统,即将上线
倾听真实反馈,在这里留下您的使用心得,敬请期待。

试用后开通会员即可无限使用

加载中...