mirror of
https://github.com/OSMA-D/osma-server.git
synced 2025-03-03 16:51:23 +03:00
doc: readme contributing roadmap
This commit is contained in:
parent
11628b0190
commit
2cf76d8c0f
9 changed files with 342 additions and 2 deletions
55
docs/db-validation/apps.json
Normal file
55
docs/db-validation/apps.json
Normal file
|
@ -0,0 +1,55 @@
|
|||
{
|
||||
"$jsonSchema": {
|
||||
"bsonType": "object",
|
||||
"required": [
|
||||
"app_id",
|
||||
"name",
|
||||
"description",
|
||||
"icon",
|
||||
"screenshots",
|
||||
"repo",
|
||||
"author",
|
||||
"tags"
|
||||
],
|
||||
"properties": {
|
||||
"app_id": {
|
||||
"bsonType": "string",
|
||||
"minLength": 3,
|
||||
"maxLength": 5
|
||||
},
|
||||
"name": {
|
||||
"bsonType": "string",
|
||||
"minLength": 1,
|
||||
"maxLength": 16
|
||||
},
|
||||
"description": {
|
||||
"bsonType": "string"
|
||||
},
|
||||
"icon": {
|
||||
"bsonType": "string"
|
||||
},
|
||||
"screenshots": {
|
||||
"bsonType": "array",
|
||||
"items": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"repo": {
|
||||
"bsonType": "string"
|
||||
},
|
||||
"author": {
|
||||
"bsonType": "string",
|
||||
"minLength": 3,
|
||||
"maxLength": 16
|
||||
},
|
||||
"tags": {
|
||||
"bsonType": "array",
|
||||
"items": {
|
||||
"type": "string",
|
||||
"minLength": 1,
|
||||
"maxLength": 32
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
28
docs/db-validation/apps_versions.json
Normal file
28
docs/db-validation/apps_versions.json
Normal file
|
@ -0,0 +1,28 @@
|
|||
{
|
||||
"$jsonSchema": {
|
||||
"bsonType": "object",
|
||||
"required": ["app_id", "version", "url", "timestamp", "platform", "type"],
|
||||
"properties": {
|
||||
"name_id": {
|
||||
"bsonType": "string",
|
||||
"minLength": 3,
|
||||
"maxLength": 5
|
||||
},
|
||||
"version": {
|
||||
"bsonType": "string"
|
||||
},
|
||||
"url": {
|
||||
"bsonType": "string"
|
||||
},
|
||||
"platform": {
|
||||
"bsonType": "string"
|
||||
},
|
||||
"type": {
|
||||
"bsonType": "string"
|
||||
},
|
||||
"timestamp": {
|
||||
"bsonType": "number"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
22
docs/db-validation/personal_libraries.json
Normal file
22
docs/db-validation/personal_libraries.json
Normal file
|
@ -0,0 +1,22 @@
|
|||
{
|
||||
"$jsonSchema": {
|
||||
"bsonType": "object",
|
||||
"required": ["apps", "name"],
|
||||
"properties": {
|
||||
"name": {
|
||||
"bsonType": "string",
|
||||
"minLength": 3,
|
||||
"maxLength": 16
|
||||
},
|
||||
"apps": {
|
||||
"bsonType": "array",
|
||||
"uniqueItems": true,
|
||||
"items": {
|
||||
"bsonType": "string",
|
||||
"minLength": 3,
|
||||
"maxLength": 5
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
32
docs/db-validation/reviews.json
Normal file
32
docs/db-validation/reviews.json
Normal file
|
@ -0,0 +1,32 @@
|
|||
{
|
||||
"$jsonSchema": {
|
||||
"bsonType": "object",
|
||||
"required": ["app_id", "user_name", "text", "score", "timestamp"],
|
||||
"properties": {
|
||||
"app_id": {
|
||||
"bsonType": "string",
|
||||
"minLength": 3,
|
||||
"maxLength": 5
|
||||
},
|
||||
"user_name": {
|
||||
"bsonType": "string",
|
||||
"minLength": 3,
|
||||
"maxLength": 16
|
||||
},
|
||||
"score": {
|
||||
"bsonType": "number",
|
||||
"minimum": 1,
|
||||
"maximum": 10
|
||||
},
|
||||
"text": {
|
||||
"bsonType": "string",
|
||||
"minLength": 2,
|
||||
"maxLength": 2000
|
||||
},
|
||||
"timestamp": {
|
||||
"bsonType": "number",
|
||||
"minimum": 1658995612
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
22
docs/db-validation/users.json
Normal file
22
docs/db-validation/users.json
Normal file
|
@ -0,0 +1,22 @@
|
|||
{
|
||||
"$jsonSchema": {
|
||||
"bsonType": "object",
|
||||
"required": ["name", "password", "email", "role"],
|
||||
"properties": {
|
||||
"name": {
|
||||
"bsonType": "string",
|
||||
"minLength": 3,
|
||||
"maxLength": 16
|
||||
},
|
||||
"password": {
|
||||
"bsonType": "string"
|
||||
},
|
||||
"email": {
|
||||
"bsonType": "string"
|
||||
},
|
||||
"role": {
|
||||
"bsonType": "string"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Reference in a new issue