From a416dbe01d0f2b9405b1407dcc87faa90dd002b1 Mon Sep 17 00:00:00 2001 From: handongxun Date: Thu, 24 Jun 2021 11:04:31 +0800 Subject: [PATCH] =?UTF-8?q?update:=20opendb-contct=20=E5=A2=9E=E5=8A=A0?= =?UTF-8?q?=E5=AD=97=E6=AE=B5=20create=5Fdate=20=E5=88=9B=E5=BB=BA?= =?UTF-8?q?=E6=97=A5=E6=9C=9F=EF=BC=8C=E7=A7=BB=E9=99=A4=E9=BB=98=E8=AE=A4?= =?UTF-8?q?=E6=B5=8B=E8=AF=95=E6=95=B0=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- collection/opendb-contacts/collection.json | 7 +++++++ collection/opendb-contacts/data.json | 1 - 2 files changed, 7 insertions(+), 1 deletion(-) delete mode 100644 collection/opendb-contacts/data.json diff --git a/collection/opendb-contacts/collection.json b/collection/opendb-contacts/collection.json index e0e0d14..471f70f 100644 --- a/collection/opendb-contacts/collection.json +++ b/collection/opendb-contacts/collection.json @@ -64,6 +64,13 @@ "component": { "name": "textarea" } + }, + "create_date": { + "bsonType": "timestamp", + "description": "创建时间", + "forceDefaultValue": { + "$env": "now" + } } } }, diff --git a/collection/opendb-contacts/data.json b/collection/opendb-contacts/data.json deleted file mode 100644 index 6d0dff4..0000000 --- a/collection/opendb-contacts/data.json +++ /dev/null @@ -1 +0,0 @@ -[{"username":"张三","gender":1,"mobile":"01011111111","email":"test@dcloud.io","comment":""},{"username":"李四","gender":1,"mobile":"01011111112","email":"","comment":""},{"username":"王五","gender":1,"mobile":"01011111113","email":"","comment":""}] \ No newline at end of file