-
Notifications
You must be signed in to change notification settings - Fork 4
/
database.yaml
162 lines (161 loc) · 4.55 KB
/
database.yaml
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
models:
ContactPoint:
id: uuid primary
created: nullable timestamp
modified: nullable timestamp
deleted: tinyInteger nullable
createdBy: String:36 nullable
modifiedBy: String:36 nullable
url: String:500 nullable
additionalType: String:36
name: String:100 nullable
image: String:500 nullable
description: String:2000 nullable
email: String:256 nullable
faxnumber: String:36 nullable
telephone: String:36 nullable
Demand:
id: uuid
created: nullable timestamp
modified: nullable timestamp
deleted: tinyInteger nullable
createdBy: String:36 nullable
modifiedBy: String:36 nullable
url: String:500 nullable
additionalType: String:36 nullable
name: String:100 nullable
image: String:500 nullable
description: String:2000 nullable
availability: String:500 nullable
availabilityStarts: nullable timestamp
availabilityEnds: nullable timestamp
price: String:64 nullable
priceCurrency: String:10 nullable
relationships:
hasOne: trip, persona
Offer:
id: uuid
created: nullable timestamp
modified: nullable timestamp
deleted: tinyInteger nullable
createdBy: String:36 nullable
modifiedBy: String:36 nullable
url: String:500 nullable
additionalType: String:36 nullable
name: String:100 nullable
image: String:500 nullable
description: String:2000 nullable
availability: String:500 nullable
availabilityStarts: nullable timestamp
availabilityEnds: nullable timestamp
price: String:64 nullable
priceCurrency: String:10 nullable
relationships:
hasOne: trip, persona
Participation:
id: uuid primary
created: nullable timestamp
modified: nullable timestamp
deleted: tinyInteger nullable
createdBy: String:36 nullable
modifiedBy: String:36 nullable
url: String:500 nullable
additionalType: String:36 nullable
name: String:100 nullable
image: String:500 nullable
description: String:2000 nullable
role: string:40 nullable
status: string:40 nullable
relationships:
hasOne: persona
Persona:
id: uuid primary
created: nullable timestamp
modified: nullable timestamp
deleted: tinyInteger nullable
createdBy: String:36 nullable
modifiedBy: String:36 nullable
url: String:500 nullable
additionalType: String:36 nullable
name: String:100 nullable
image: String:500 nullable
description: String:2000 nullable
familyName: String:100 nullable
gender: String:10 nullable
relationships:
belongstoMany: contactPoint
Transport:
id: uuid primary
created: nullable timestamp
modified: nullable timestamp
deleted: tinyInteger nullable
createdBy: String:36 nullable
modifiedBy: String:36 nullable
url: String:500 nullable
additionalType: String:36 nullable
name: String:100 nullable
image: String:500 nullable
description: String:2000 nullable
transportType: String:20 nullable
seatingCapacity: Integer nullable
cargoVolume: String:10 nullable
owner: id nullable
operator: id nullable
relationships:
hasOne: owner, operator
Trip:
id: uuid primary
created: nullable timestamp
modified: nullable timestamp
deleted: tinyInteger nullable
createdBy: String:36 nullable
modifiedBy: String:36 nullable
url: String:500 nullable
additionalType: String:36 nullable
name: String:100 nullable
image: String:500 nullable
description: String:2000 nullable
arrivalTime: nullable timestamp
availableSeats: integer nullable
connector: string
smoking: string nullable
animals: string nullable
relationships:
hasOne: offer, demand, transport, participation
GeoLocation:
id: uuid primary
latitude: double
longitude: double
SearchRadius:
id: uuid primary
radius: integer
relationships:
hasOne:
location
TimeRange:
id: uuid primary
time: nullable timestamp
toleranceInDays: integer nullable
Search:
id: uuid primary
tripTypes: String:10 nullable
reoccurDays: String:10 nullable
smoking: String:10 nullable
animals: String:10 nullable
transportTypes: String:10 nullable
baggage: String:10 nullable
gender: String:10 nullable
organizations: String:10 nullable
availabilityStarts: String:10 nullable
availabilityEnds: String:10 nullable
relationships:
hasOne:
startPoint, endPoint, departure, arrival
controllers:
Trip:
show:
find: trip
search:
find: trip
search_id:
find: trip