diff --git a/pages.json b/pages.json
index 88a6fe542579cadf19d76649e4801d4cf4d9fc23..6e3bf2f42172979b64f71c8a00637675de49172d 100644
--- a/pages.json
+++ b/pages.json
@@ -900,6 +900,15 @@
}
}
+ ,{
+ "path" : "pages/API/unicloud-database/unicloud-database",
+ "style" :
+ {
+ "navigationBarTitleText": "",
+ "enablePullDownRefresh": false
+ }
+
+ }
],
"globalStyle": {
"pageOrientation": "portrait",
diff --git a/pages/API/unicloud-database/unicloud-database.uvue b/pages/API/unicloud-database/unicloud-database.uvue
new file mode 100644
index 0000000000000000000000000000000000000000..50dafe6803890fff9ce56187462203d942786155
--- /dev/null
+++ b/pages/API/unicloud-database/unicloud-database.uvue
@@ -0,0 +1,312 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/pages/tabBar/API.uvue b/pages/tabBar/API.uvue
index dc16c6dbd902cfb4331a50730275d5c87f405bf7..1c7956a6430e325ab280b27f7488371149ab626f 100644
--- a/pages/tabBar/API.uvue
+++ b/pages/tabBar/API.uvue
@@ -390,6 +390,10 @@
name: '云存储',
url: 'unicloud-file-api',
},
+ {
+ name: 'clientDB',
+ url: 'unicloud-database',
+ },
] as Page[],
},
/* {
diff --git a/uniCloud-aliyun/database/foreign.schema.json b/uniCloud-aliyun/database/foreign.schema.json
new file mode 100644
index 0000000000000000000000000000000000000000..d9654950564d63edc8e786c135bd7f2afbcb6bda
--- /dev/null
+++ b/uniCloud-aliyun/database/foreign.schema.json
@@ -0,0 +1,25 @@
+// 文档教程: https://uniapp.dcloud.net.cn/uniCloud/schema
+{
+ "bsonType": "object",
+ "required": [],
+ "permission": {
+ "read": true,
+ "create": true,
+ "update": true,
+ "delete": true
+ },
+ "properties": {
+ "_id": {
+ "description": "ID,系统自动生成"
+ },
+ "id": {
+ "bsonType": "string"
+ },
+ "name": {
+ "bsonType": "string"
+ },
+ "tag": {
+ "bsonType": "string"
+ }
+ }
+}
\ No newline at end of file
diff --git a/uniCloud-aliyun/database/local.schema.json b/uniCloud-aliyun/database/local.schema.json
new file mode 100644
index 0000000000000000000000000000000000000000..28bd811a5f6b5d27b01c82bc2a50952210623756
--- /dev/null
+++ b/uniCloud-aliyun/database/local.schema.json
@@ -0,0 +1,28 @@
+// 文档教程: https://uniapp.dcloud.net.cn/uniCloud/schema
+{
+ "bsonType": "object",
+ "required": [],
+ "permission": {
+ "read": true,
+ "create": true,
+ "update": true,
+ "delete": true
+ },
+ "properties": {
+ "_id": {
+ "description": "ID,系统自动生成"
+ },
+ "id": {
+ "bsonType": "string"
+ },
+ "name": {
+ "bsonType": "string"
+ },
+ "tag": {
+ "bsonType": "string"
+ },
+ "foreign_id": {
+ "foreignKey": "foreign.id"
+ }
+ }
+}
\ No newline at end of file
diff --git a/uniCloud-aliyun/database/type.schema.json b/uniCloud-aliyun/database/type.schema.json
new file mode 100644
index 0000000000000000000000000000000000000000..0fb1618d868f136357cbf33a10554617027b5994
--- /dev/null
+++ b/uniCloud-aliyun/database/type.schema.json
@@ -0,0 +1,30 @@
+// 文档教程: https://uniapp.dcloud.net.cn/uniCloud/schema
+{
+ "bsonType": "object",
+ "required": [],
+ "permission": {
+ "read": true,
+ "create": true,
+ "update": true,
+ "delete": true
+ },
+ "properties": {
+ "_id": {
+ "description": "ID,系统自动生成"
+ },
+ "num": {
+ "bsonType": "int"
+ },
+ "tag": {
+ "bsonType": "string",
+ "maxLength": 50,
+ "minLength": 0
+ },
+ "date": {
+ "bsonType": "date"
+ },
+ "point": {
+ "bsonType": "object"
+ }
+ }
+}