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 "position": {
29 "type": "json"
30 },
31 "users": {
32 "via": "events",
33 "plugin": "users-permissions",
34 "collection": "user"
35 },
36 "uuid": {
37 "type": "string",
38 "unique": true
39 },
40 "waitingList": {
41 "type": "component",
42 "repeatable": true,
43 "component": "passenger.passenger"
44 },
45 "travels": {
46 "via": "event",
47 "collection": "travel"
48 },
49 "description": {
50 "type": "text",
51 "maxLength": 250
52 },
53 "waitingPassengers": {
54 "via": "event",
55 "collection": "passenger"
56 }
57 }
58}