Esquemas
A estrutura de um projeto (proposta) é composta por vários esquemas, como mostrado abaixo.
Projeto
{
"type" : "object",
"properties" : {
"_id" : {
"type": "string"
},
"title": {
"type": "string"
},
"fonts": {
"type": "array"
},
"publish": {
"type": "boolean"
},
"secure": {
"type": "boolean"
},
"countViews": {
"type": "number"
},
"timeViews": {
"type": "number"
},
"priority": {
"type": "number"
},
"blocks": {
"type": "array"
},
"userId": {
"type": "string"
},
"accountId": {
"type": "string"
},
"token": {
"type": "string"
},
"slug": {
"type": "string"
},
"publishURL": {
"type": "string"
},
"createdAt": {
"type": "string"
},
"updatedAt": {
"type": "string"
},
"__v": {
"type": "number"
}
},
"required": [ "_id", "title", "fonts", "publish", "secure", "countViews", "timeViews", "priority", "blocks", "userId", "accountId", "token", "slug", "publishURL", "createdAt", "updatedAt", "__v"]
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
Bloco
{
"type" : "object",
"properties" : {
"_id" : {
"type": "string"
},
"style": {
"type": "object"
},
"fullScreen": {
"type": "boolean"
},
"rows": {
"type": "array"
},
"description": {
"type": "string"
},
"createdAt": {
"type": "string"
},
"updatedAt": {
"type": "string"
}
},
"required": [ "_id", "style", "fullScreen", "rows", "description", "createdAt", "updatedAt"]
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
Linha
{
"type" : "object",
"properties" : {
"_id" : {
"type": "string"
},
"description": {
"type": "string"
},
"columns": {
"type": "array"
}
},
"required": [ "_id", "description", "columns"]
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Coluna
{
"type" : "object",
"properties" : {
"_id" : {
"type": "string"
},
"contents": {
"type": "array"
},
"size": {
"type": "number"
}
},
"required": [ "_id", "contents", "size"]
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Conteúdo
{
"type" : "object",
"properties" : {
"_id" : {
"type": "string"
},
"type": {
"type": "string"
},
"style": {
"type": "object"
},
"data": {
"type": "object"
}
},
"required": [ "_id", "type", "style", "data"]
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18