-
Notifications
You must be signed in to change notification settings - Fork 0
/
schema-production.ckdb
221 lines (208 loc) · 7.17 KB
/
schema-production.ckdb
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
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
DEFINE SCHEMA
CREATE ROLE Team;
CREATE ROLE Admin;
CREATE ROLE Root;
RECORD TYPE ActivityQueryItem (
"___createTime" TIMESTAMP,
"___createdBy" REFERENCE,
"___etag" STRING,
"___modTime" TIMESTAMP,
"___modifiedBy" REFERENCE,
"___recordID" REFERENCE QUERYABLE,
combinerTag STRING QUERYABLE,
value STRING QUERYABLE,
GRANT WRITE TO "_creator",
GRANT READ TO "_world"
);
RECORD TYPE ActivityTimelineFilter (
"___createTime" TIMESTAMP,
"___createdBy" REFERENCE,
"___etag" STRING,
"___modTime" TIMESTAMP,
"___modifiedBy" REFERENCE,
"___recordID" REFERENCE QUERYABLE,
filter STRING QUERYABLE,
type STRING QUERYABLE,
GRANT WRITE TO "_creator",
GRANT READ TO "_world"
);
RECORD TYPE BlogPost (
"___createTime" TIMESTAMP,
"___createdBy" REFERENCE,
"___etag" STRING,
"___modTime" TIMESTAMP,
"___modifiedBy" REFERENCE,
"___recordID" REFERENCE QUERYABLE,
author REFERENCE QUERYABLE,
content STRING QUERYABLE,
headerImage ASSET,
tags LIST<STRING> QUERYABLE,
title STRING QUERYABLE,
GRANT CREATE, WRITE TO Team,
GRANT READ TO "_world"
);
RECORD TYPE FAQItem (
"___createTime" TIMESTAMP,
"___createdBy" REFERENCE,
"___etag" STRING,
"___modTime" TIMESTAMP,
"___modifiedBy" REFERENCE,
"___recordID" REFERENCE QUERYABLE,
answer_en STRING,
comment_en STRING,
index INT64 SORTABLE,
question_en STRING,
GRANT CREATE, WRITE TO Admin,
GRANT READ TO "_world"
);
RECORD TYPE GDPRRequest (
"___createTime" TIMESTAMP,
"___createdBy" REFERENCE QUERYABLE,
"___etag" STRING,
"___modTime" TIMESTAMP,
"___modifiedBy" REFERENCE,
"___recordID" REFERENCE QUERYABLE,
fulfilledAt TIMESTAMP,
scholar REFERENCE QUERYABLE,
status STRING QUERYABLE,
type STRING QUERYABLE,
GRANT READ, WRITE TO "_creator",
GRANT CREATE TO "_icloud"
);
RECORD TYPE Scholar (
"___createTime" TIMESTAMP,
"___createdBy" REFERENCE,
"___etag" STRING,
"___modTime" TIMESTAMP,
"___modifiedBy" REFERENCE,
"___recordID" REFERENCE QUERYABLE,
biography STRING,
birthday TIMESTAMP,
email STRING QUERYABLE,
familyName STRING QUERYABLE SORTABLE,
gdprConsentAt TIMESTAMP QUERYABLE SORTABLE,
gender STRING,
givenName STRING QUERYABLE SORTABLE,
location LOCATION,
profilePicture ASSET,
scholarPrivate REFERENCE,
socialMedia REFERENCE,
wwdcYearInfos LIST<REFERENCE>,
wwdcYears LIST<REFERENCE> QUERYABLE,
wwdcYearsApproved LIST<REFERENCE> QUERYABLE,
GRANT WRITE TO Admin,
GRANT WRITE TO "_creator",
GRANT CREATE, WRITE TO "_icloud",
GRANT READ TO "_world"
);
RECORD TYPE ScholarPrivate (
"___createTime" TIMESTAMP,
"___createdBy" REFERENCE QUERYABLE,
"___etag" STRING,
"___modTime" TIMESTAMP,
"___modifiedBy" REFERENCE,
"___recordID" REFERENCE QUERYABLE,
birthday TIMESTAMP,
email STRING QUERYABLE,
scholar REFERENCE,
GRANT READ TO Admin,
GRANT READ TO Root,
GRANT READ, WRITE TO "_creator",
GRANT CREATE TO "_icloud"
);
RECORD TYPE ScholarSocialMedia (
"___createTime" TIMESTAMP,
"___createdBy" REFERENCE,
"___etag" STRING,
"___modTime" TIMESTAMP,
"___modifiedBy" REFERENCE,
"___recordID" REFERENCE QUERYABLE,
bluesky STRING,
discord STRING,
facebook STRING,
github STRING,
imessage STRING,
instagram STRING,
itunes STRING,
linkedin STRING,
mastodon STRING,
scholar REFERENCE QUERYABLE,
threads STRING,
twitter STRING QUERYABLE,
website STRING,
GRANT WRITE TO "_creator",
GRANT CREATE, WRITE TO "_icloud",
GRANT READ TO "_world"
);
RECORD TYPE TeamMember (
"___createTime" TIMESTAMP,
"___createdBy" REFERENCE,
"___etag" STRING,
"___modTime" TIMESTAMP,
"___modifiedBy" REFERENCE,
"___recordID" REFERENCE QUERYABLE,
biography STRING,
birthday TIMESTAMP,
isActive INT64 QUERYABLE,
name STRING SORTABLE,
picture ASSET,
scholar REFERENCE,
GRANT WRITE TO "_creator",
GRANT CREATE TO "_icloud",
GRANT READ TO "_world"
);
RECORD TYPE Users (
"___createTime" TIMESTAMP,
"___createdBy" REFERENCE,
"___etag" STRING,
"___modTime" TIMESTAMP,
"___modifiedBy" REFERENCE,
"___recordID" REFERENCE QUERYABLE,
roles LIST<INT64>,
scholar REFERENCE QUERYABLE,
GRANT WRITE TO Root,
GRANT WRITE TO "_creator",
GRANT READ TO "_icloud"
);
RECORD TYPE WWDCYear (
"___createTime" TIMESTAMP,
"___createdBy" REFERENCE,
"___etag" STRING,
"___modTime" TIMESTAMP,
"___modifiedBy" REFERENCE,
"___recordID" REFERENCE QUERYABLE,
challengeDescription STRING,
features LIST<STRING> QUERYABLE,
isHidden INT64 QUERYABLE,
name STRING,
year STRING QUERYABLE SORTABLE,
GRANT CREATE, WRITE TO Admin,
GRANT READ TO "_world"
);
RECORD TYPE WWDCYearInfo (
"___createTime" TIMESTAMP,
"___createdBy" REFERENCE,
"___etag" STRING,
"___modTime" TIMESTAMP,
"___modifiedBy" REFERENCE,
"___recordID" REFERENCE QUERYABLE,
acceptanceEmail ASSET,
appType STRING,
appliedAs STRING,
appstoreLink STRING,
description STRING,
githubLink STRING,
isDistinguishedWinner INT64 QUERYABLE,
reviewedAt TIMESTAMP,
reviewedBy REFERENCE,
scholar REFERENCE QUERYABLE,
screenshots LIST<ASSET>,
status STRING QUERYABLE,
videoLink STRING,
year REFERENCE QUERYABLE,
GRANT WRITE TO Admin,
GRANT WRITE TO Team,
GRANT WRITE TO "_creator",
GRANT CREATE, WRITE TO "_icloud",
GRANT READ TO "_world"
);