backend/api/event/models/event.settings.json (view raw)
1{
2 "kind": "collectionType",
3 "collectionName": "events",
4 "info": {
5 "name": "event",
6 "description": ""
7 },
8 "options": {
9 "increments": true,
10 "timestamps": true,
11 "draftAndPublish": false
12 },
13 "attributes": {
14 "name": {
15 "type": "string",
16 "required": true
17 },
18 "email": {
19 "type": "string",
20 "required": true
21 },
22 "date": {
23 "type": "date"
24 },
25 "address": {
26 "type": "text"
27 },
28 "cars": {
29 "via": "event",
30 "collection": "car"
31 },
32 "position": {
33 "type": "json"
34 },
35 "waiting_list": {
36 "type": "json"
37 },
38 "users": {
39 "via": "events",
40 "plugin": "users-permissions",
41 "collection": "user"
42 },
43 "uuid": {
44 "type": "string",
45 "unique": true
46 }
47 }
48}