diff --git a/README.md b/README.md index 7f730ca..c3558eb 100644 --- a/README.md +++ b/README.md @@ -27,9 +27,9 @@ 目前`openDB`已经包含如下表设计规范,点击每个文档可以查阅详情。后续在uniCloud的web控制台的新建表界面,会提供直接创建模板表的入口。同时HBuilderX工具在语法提示时也会支持openDB规范。 1. [用户管理(uni-id)](uni-id.md) -2. [文章&评论(uni-news)](uni-news.md) -3. [电商系统(uni-mall)](uni-mall.md) -4. [日志管理(uni-log)](uni-log.md) +2. [文章&评论(opendb-news)](opendb-news.md) +3. [电商系统(opendb-mall)](opendb-mall.md) +4. [日志管理(opendb-log)](opendb-log.md) `openDB`是一个持续发展的、由开发者共建的规范。DCloud欢迎各个业务领域的专业开发者提供规范。 diff --git a/uni-log.md b/opendb-log.md similarity index 100% rename from uni-log.md rename to opendb-log.md diff --git a/uni-mall.md b/opendb-mall.md similarity index 91% rename from uni-mall.md rename to opendb-mall.md index 968ea43..6275f1b 100644 --- a/uni-mall.md +++ b/opendb-mall.md @@ -3,12 +3,12 @@ ### 商品表 -表名:uni-mall-goods +表名:opendb-mall-goods | 字段 | 类型 | 必填| 描述 | | ---------------- | --------- | ----| ------------------------------------------- | | \_id | Object ID | 是 | 存储文档 ID(文章 ID),系统自动生成 | -| category_id | String | 否 | 分类 id,参考`uni-mall-categories`表 | +| category_id | String | 否 | 分类 id,参考`opendb-mall-categories`表 | | goods_sn | String | 是 | 商品的唯一货号 | | name | String | 是 | 商品名称 | | keywords | String | 否 | 商品关键字,为搜索引擎收录使用 | @@ -31,7 +31,7 @@ ### 商品类别 -表名:uni-mall-categories +表名:opendb-mall-categories | 字段 | 类型 | 必填| 描述 | | ----------------| --------- | ----| ------------------------------------------- | @@ -43,12 +43,12 @@ ### 商品评论表 -表名:uni-mall-comments +表名:opendb-mall-comments | 字段 | 类型 | 必填| 描述 | | ----------------| --------- | ----| ------------------------------------------- | | \_id | Object ID | 是 | 存储文档 ID(文章 ID),系统自动生成 | -| goods_id | String | 是 | 商品ID,uni-mall-goods 表中的`_id`字段 | +| goods_id | String | 是 | 商品ID,opendb-mall-goods 表中的`_id`字段 | | user_id | String | 是 | 评论者ID,参考`uni-id-users` 表 | | comment_content | String | 是 | 评论内容 | | comment_date | Timestamp | 否 | 评论发表时间 | diff --git a/uni-news.md b/opendb-news.md similarity index 92% rename from uni-news.md rename to opendb-news.md index dcd1433..b69893d 100644 --- a/uni-news.md +++ b/opendb-news.md @@ -3,13 +3,13 @@ ### 文章表 -表名:uni-news-articles +表名:opendb-news-articles | 字段 | 类型 | 必填| 描述 | | ---------------- | --------- | ----| ------------------------------------------- | | \_id | Object ID | 是 | 存储文档 ID(文章 ID),系统自动生成 | | user_id | String | 是 | 文章作者ID, 参考`uni-id-users` 表 | -| category_id | String | 否 | 分类 id,参考`uni-news-categories`表 | +| category_id | String | 否 | 分类 id,参考`opendb-news-categories`表 | | title | String | 是 | 标题 | | content | String | 是 | 文章内容 | | excerpt | String | 否 | 文章摘录 | @@ -29,7 +29,7 @@ ### 文章类别 -表名:uni-news-categories +表名:opendb-news-categories | 字段 | 类型 | 必填| 描述 | | ----------------| --------- | ----| ------------------------------------------- | @@ -44,12 +44,12 @@ ### 评论表 -表名:uni-news-comments +表名:opendb-news-comments | 字段 | 类型 | 必填| 描述 | | ----------------| --------- | ----| ------------------------------------------- | | \_id | Object ID | 是 | 存储文档 ID(文章 ID),系统自动生成 | -| article_id | String | 是 | 文章ID,uni-news-posts 表中的`_id`字段 | +| article_id | String | 是 | 文章ID,opendb-news-posts 表中的`_id`字段 | | user_id | String | 是 | 评论者ID,参考`uni-id-users` 表 | | comment_content | String | 是 | 评论内容 | | like_count | Integer | 是 | 评论喜欢数、点赞数 |