跳转到内容
规划/免费工具

数据库架构规划器

计划实体、 键入字段以及可编辑的图景关系。 导出结构化 JSON 规格或美人鱼ER图,在浏览器中免费。

01 / users

使用用户等标识符或 booking_items.

字段

02 / projects

使用用户等标识符或 booking_items.

字段

关系

红衣主教座堂描述了一种概念性的联系. 界定外国关键领域和执行。

Schema 视图

关于你的记录和关系的概念观点。

users

  • id *uuid · 独一无二
  • email *string · 独一无二

projects

  • id *uuid · 独一无二
  • owner_id *uuid
  • title *string

usersprojectsone-many

Schema 导出

database-schema.json
{
  "entities": [
    {
      "name": "users",
      "fields": [
        {
          "name": "id",
          "type": "uuid",
          "required": true,
          "unique": true
        },
        {
          "name": "email",
          "type": "string",
          "required": true,
          "unique": true
        }
      ]
    },
    {
      "name": "projects",
      "fields": [
        {
          "name": "id",
          "type": "uuid",
          "required": true,
          "unique": true
        },
        {
          "name": "owner_id",
          "type": "uuid",
          "required": true,
          "unique": false
        },
        {
          "name": "title",
          "type": "string",
          "required": true,
          "unique": false
        }
      ]
    }
  ],
  "relationships": [
    {
      "from": "users",
      "to": "projects",
      "cardinality": "one-many"
    }
  ],
  "note": "Conceptual schema. Relationships do not automatically create foreign keys, indexes, or migrations."
}

导出文本保留英文格式;您输入的内容保持不变。

没有注册。 没有AI的信用。 此工具将您在浏览器中的输出组装 。

从一个想法到有用的东西。

  1. 01

    添加实体及其输入字段。

  2. 02

    连接关系核心的实体。

  3. 03

    审查图案卡和导出 JSON 或美人鱼ER图。

有点背景

这个概念计划者记录实体,字段类型,需要的值,独特的值,以及关系. 出口是设计文物,而不是可执行的迁移。 实体和字段名称使用简单的标识符,因此图表仍然有效,并易于翻译为您选定的数据库。

问得好

这是否创建了数据库表格 ?

没有。 它输出一个概念模型。 将类型、限制、索引和关系转换为您数据库的已审查的迁移。

关系跟外国钥匙一样吗?

没有。 该 JSON 和图描述关系,但不自动添加或执行外键字段。 在执行期间明确增加这些字段。

所有工具