api/event/models/event.settings.json (view raw)
1{
2 "kind": "collectionType",
3 "collectionName": "events",
4 "info": {
5 "name": "event"
6 },
7 "options": {
8 "increments": true,
9 "timestamps": true
10 },
11 "attributes": {
12 "name": {
13 "type": "string",
14 "required": true
15 },
16 "email": {
17 "type": "string",
18 "required": true
19 },
20 "date": {
21 "type": "date"
22 },
23 "address": {
24 "type": "text"
25 },
26 "cars": {
27 "via": "event",
28 "collection": "car"
29 }
30 }
31}