From 6de1f08d0d2958c71c8ffe4ad1132a458bd54aae Mon Sep 17 00:00:00 2001 From: MicroMilo Date: Fri, 26 May 2023 21:44:18 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B6=88=E6=81=AF=E8=AE=BE=E8=AE=A1=E5=8F=82?= =?UTF-8?q?=E8=80=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../database/mustgo-registration.schema.json | 29 +++++++- .../database/mustgo-user.schema.json | 73 ++++++++++++++++++- 2 files changed, 100 insertions(+), 2 deletions(-) diff --git a/alpha/admin/uniCloud-aliyun/database/mustgo-registration.schema.json b/alpha/admin/uniCloud-aliyun/database/mustgo-registration.schema.json index d51c375..2316886 100644 --- a/alpha/admin/uniCloud-aliyun/database/mustgo-registration.schema.json +++ b/alpha/admin/uniCloud-aliyun/database/mustgo-registration.schema.json @@ -1 +1,28 @@ -{"bsonType":"object","required":[],"permission":{"read":true,"create":true,"update":true,"delete":true},"properties":{"_id":{"title":"id","description":"ID,系统自动生成"},"team_activity_id":{"bsonType":"string","foreignKey":"mustgo-team-activity._id","title":"小队活动id","description":"报名信息所属小队活动id"},"owner_id":{"bsonType":"string","foreignKey":"mustgo-user._id","title":"用户id","description":"报名者id"}}} \ No newline at end of file +{ + "bsonType": "object", + "required": [], + "permission": { + "read": true, + "create": true, + "update": true, + "delete": true + }, + "properties": { + "_id": { + "title": "id", + "description": "ID,系统自动生成" + }, + "team_activity_id": { + "bsonType": "string", + "foreignKey": "mustgo-team-activity._id", + "title": "小队活动id", + "description": "报名信息所属小队活动id" + }, + "owner_id": { + "bsonType": "string", + "foreignKey": "mustgo-user._id", + "title": "用户id", + "description": "报名者id" + } + } +} \ No newline at end of file diff --git a/alpha/admin/uniCloud-aliyun/database/mustgo-user.schema.json b/alpha/admin/uniCloud-aliyun/database/mustgo-user.schema.json index a1be6c7..d2a0a2c 100644 --- a/alpha/admin/uniCloud-aliyun/database/mustgo-user.schema.json +++ b/alpha/admin/uniCloud-aliyun/database/mustgo-user.schema.json @@ -1 +1,72 @@ -{"bsonType":"object","required":[],"permission":{"read":true,"create":true,"update":true,"delete":true},"properties":{"_id":{"title":"id","description":"ID,系统自动生成"},"name":{"bsonType":"string","title":"姓名","description":"用户姓名"},"icon":{"bsonType":"string","title":"头像","description":"用户头像","defaultValue":"https:\/\/mp-6f6feaec-a026-4402-8e8d-18f7572890da.cdn.bspapp.com\/cloudstorage\/433d3cc6-4b8f-475c-83e1-35acc747cab2.jpg"},"gender":{"bsonType":"string","title":"性别","description":"用户性别"},"password":{"bsonType":"string","title":"密码","description":"用户密码"},"phone_num":{"bsonType":"string","title":"手机号码","description":"用户手机号码"},"team_id":{"bsonType":"string","defaultValue":"","title":"小队id","description":"用户所属小队id","foreignKey":"mustgo-team._id"},"school":{"bsonType":"string","title":"学校","description":"用户所属学校"},"type":{"bsonType":"string","foreignKey":"mustgo-role._id","title":"类型","description":"用户类型"},"total_running_distance":{"bsonType":"double","defaultValue":0,"title":"总跑步距离","description":"用户总跑步距离"},"total_walking_distance":{"bsonType":"double","defaultValue":0,"title":"总健走距离","description":"用户总健走距离"}}} \ No newline at end of file +{ + "bsonType": "object", + "required": [], + "permission": { + "read": true, + "create": true, + "update": true, + "delete": true + }, + "properties": { + "_id": { + "title": "id", + "description": "ID,系统自动生成" + }, + "name": { + "bsonType": "string", + "title": "姓名", + "description": "用户姓名" + }, + "icon": { + "bsonType": "string", + "title": "头像", + "description": "用户头像", + "defaultValue": "https:\/\/mp-6f6feaec-a026-4402-8e8d-18f7572890da.cdn.bspapp.com\/cloudstorage\/433d3cc6-4b8f-475c-83e1-35acc747cab2.jpg" + }, + "gender": { + "bsonType": "string", + "title": "性别", + "description": "用户性别" + }, + "password": { + "bsonType": "string", + "title": "密码", + "description": "用户密码" + }, + "phone_num": { + "bsonType": "string", + "title": "手机号码", + "description": "用户手机号码" + }, + "team_id": { + "bsonType": "string", + "defaultValue": "", + "title": "小队id", + "description": "用户所属小队id", + "foreignKey": "mustgo-team._id" + }, + "school": { + "bsonType": "string", + "title": "学校", + "description": "用户所属学校" + }, + "type": { + "bsonType": "string", + "foreignKey": "mustgo-role._id", + "title": "类型", + "description": "用户类型" + }, + "total_running_distance": { + "bsonType": "double", + "defaultValue": 0, + "title": "总跑步距离", + "description": "用户总跑步距离" + }, + "total_walking_distance": { + "bsonType": "double", + "defaultValue": 0, + "title": "总健走距离", + "description": "用户总健走距离" + } + } +} \ No newline at end of file -- GitLab