forked from pmcfadin/killrvideo-sample-schema
-
Notifications
You must be signed in to change notification settings - Fork 1
/
killrvideo-inserts.cql
300 lines (239 loc) · 18.5 KB
/
killrvideo-inserts.cql
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
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
// Sample data inserts for Apache Cassandra 2.1 version of schema
use killrvideo;
//User_credentials
INSERT INTO user_credentials (userid, email, password)
VALUES (d0f60aa8-54a9-4840-b70c-fe562b68842b,'[email protected]','5f4dcc3b5aa765d61d8327deb882cf99');
INSERT INTO user_credentials (userid, email, password)
VALUES (522b1fe2-2e36-4cef-a667-cd4237d08b89,'[email protected]','6cb75f652a9b52798eb6cf2201057c73');
INSERT INTO user_credentials (userid, email, password)
VALUES (9761d3d7-7fbd-4269-9988-6cfd4e188678,'[email protected]','ba27e03fd95e507daf2937c937d499ab');
//Users
INSERT INTO users (userid, firstname, lastname, email, created_date)
VALUES (d0f60aa8-54a9-4840-b70c-fe562b68842b,'Ted','Codd', '[email protected]','2011-06-01 08:00:00');
INSERT INTO users (userid, firstname, lastname, email, created_date)
VALUES (522b1fe2-2e36-4cef-a667-cd4237d08b89,'Chris','Date', '[email protected]','2011-06-20 13:50:00');
INSERT INTO users (userid, firstname, lastname, email, created_date)
VALUES (9761d3d7-7fbd-4269-9988-6cfd4e188678,'Patrick','McFadin', '[email protected]','2011-06-20 13:50:00');
//Videos
INSERT INTO videos (videoid, name, userid, description, location, location_type, preview_thumbnails, tags, added_date, metadata)
VALUES (99051fe9-6a9c-46c2-b949-38ef78858dd0,'My funny cat',d0f60aa8-54a9-4840-b70c-fe562b68842b, 'My cat likes to play the piano! So funny.','/us/vid/b3/b3a76c6b-7c7f-4af6-964f-803a9283c401',1,{'10':'/us/vid/b3/b3a76c6b-7c7f-4af6-964f-803a9283c401'},{'cats','piano','lol'},'2012-06-01 08:00:00',
{
{
height: 480,
width: 640,
encoding: 'MP4',
video_bit_rate:
{
'1000kbs',
'400kbs'
}
}
}
);
INSERT INTO videos (videoid, name, userid, description, location, location_type, preview_thumbnails, tags, added_date, metadata)
VALUES (b3a76c6b-7c7f-4af6-964f-803a9283c401,'Now my dog plays piano!',d0f60aa8-54a9-4840-b70c-fe562b68842b, 'My dog learned to play the piano because of the cat.','/us/vid/b3/b3a76c6b-7c7f-4af6-964f-803a9283c401',1,{'10':'/us/vid/b3/b3a76c6b-7c7f-4af6-964f-803a9283c401'},{'dogs','piano','lol'},'2012-08-30 16:50:00',
{
{
height: 480,
width: 640,
encoding: 'MP4',
video_bit_rate:
{
'1000kbs',
'400kbs'
}
}
}
);
INSERT INTO videos (videoid, name, userid, description, location, location_type, preview_thumbnails, tags, added_date, metadata)
VALUES (0c3f7e87-f6b6-41d2-9668-2b64d117102c,'An Introduction to Database Systems',522b1fe2-2e36-4cef-a667-cd4237d08b89, 'An overview of my book','/us/vid/0c/0c3f7e87-f6b6-41d2-9668-2b64d117102c',1,{'10':'/us/vid/0c/0c3f7e87-f6b6-41d2-9668-2b64d117102c'},{'database','relational','book'},'2012-09-03 10:30:00',
{
{
height: 480,
width: 640,
encoding: 'MP4',
video_bit_rate:
{
'1000kbs',
'400kbs'
}
}
}
);
INSERT INTO videos (videoid, name, userid, description, location, location_type, preview_thumbnails, tags, added_date, metadata)
VALUES (416a5ddc-00a5-49ed-adde-d99da9a27c0c,'Intro to CAP theorem',522b1fe2-2e36-4cef-a667-cd4237d08b89, 'I think there might be something to this.','/us/vid/41/416a5ddc-00a5-49ed-adde-d99da9a27c0c',1,{'10':'/us/vid/41/416a5ddc-00a5-49ed-adde-d99da9a27c0c'},{'database','cap','brewer'},'2012-12-01 11:29:00',
{
{
height: 480,
width: 640,
encoding: 'MP4',
video_bit_rate:
{
'1000kbs',
'400kbs'
}
}
}
);
INSERT INTO videos (videoid, name, userid, description, location, location_type, preview_thumbnails, tags, added_date, metadata)
VALUES (06049cbb-dfed-421f-b889-5f649a0de1ed,'The data model is dead. Long live the data model.',9761d3d7-7fbd-4269-9988-6cfd4e188678, 'First in a three part series for Cassandra Data Modeling','http://www.youtube.com/watch?v=px6U2n74q3g',1,{'YouTube':'http://www.youtube.com/watch?v=px6U2n74q3g'},{'cassandra','data model','relational','instruction'},'2013-05-02 12:30:29',
{
{
height: 480,
width: 640,
encoding: 'MP4',
video_bit_rate:
{
'1000kbs',
'400kbs'
}
}
}
);
INSERT INTO videos (videoid, name, userid, description, location, location_type, preview_thumbnails, tags, added_date, metadata)
VALUES (873ff430-9c23-4e60-be5f-278ea2bb21bd,'Become a Super Modeler',9761d3d7-7fbd-4269-9988-6cfd4e188678, 'Second in a three part series for Cassandra Data Modeling','http://www.youtube.com/watch?v=qphhxujn5Es',1,{'YouTube':'http://www.youtube.com/watch?v=qphhxujn5Es'},{'cassandra','data model','cql','instruction'},'2013-05-16 16:50:00',
{
{
height: 480,
width: 640,
encoding: 'MP4',
video_bit_rate:
{
'1000kbs',
'400kbs'
}
}
}
);
INSERT INTO videos (videoid, name, userid, description, location, location_type, preview_thumbnails, tags, added_date, metadata)
VALUES (49f64d40-7d89-4890-b910-dbf923563a33,'The World''s Next Top Data Model',9761d3d7-7fbd-4269-9988-6cfd4e188678, 'Third in a three part series for Cassandra Data Modeling','http://www.youtube.com/watch?v=HdJlsOZVGwM',1,{'YouTube':'http://www.youtube.com/watch?v=HdJlsOZVGwM'},{'cassandra','data model','examples','instruction'},'2013-06-11 11:00:00',
{
{
height: 480,
width: 640,
encoding: 'MP4',
video_bit_rate:
{
'1000kbs',
'400kbs'
}
}
}
);
// user_videos - Every video a user uploads is indexed into a single partition by username
INSERT INTO user_videos (userid, videoid, added_date, name, preview_image_location)
VALUES (d0f60aa8-54a9-4840-b70c-fe562b68842b,99051fe9-6a9c-46c2-b949-38ef78858dd0,'2012-06-01 08:00:00','My funny cat','/us/vid/b3/b3a76c6b-7c7f-4af6-964f-803a9283c401');
INSERT INTO user_videos (userid, videoid, added_date, name, preview_image_location)
VALUES (d0f60aa8-54a9-4840-b70c-fe562b68842b,b3a76c6b-7c7f-4af6-964f-803a9283c401,'2012-08-30 16:50:00','Now my dog plays piano!','/us/vid/b3/b3a76c6b-7c7f-4af6-964f-803a9283c401');
INSERT INTO user_videos (userid, videoid, added_date, name, preview_image_location)
VALUES (522b1fe2-2e36-4cef-a667-cd4237d08b89,0c3f7e87-f6b6-41d2-9668-2b64d117102c,'2013-05-02 12:30:29','An Introduction to Database Systems','/us/vid/0c/0c3f7e87-f6b6-41d2-9668-2b64d117102c');
INSERT INTO user_videos (userid, videoid, added_date, name, preview_image_location)
VALUES (522b1fe2-2e36-4cef-a667-cd4237d08b89,416a5ddc-00a5-49ed-adde-d99da9a27c0c,'2012-12-01 11:29:00','Intro to CAP theorem','/us/vid/41/416a5ddc-00a5-49ed-adde-d99da9a27c0c');
INSERT INTO user_videos (userid, videoid, added_date, name, preview_image_location)
VALUES (9761d3d7-7fbd-4269-9988-6cfd4e188678,06049cbb-dfed-421f-b889-5f649a0de1ed,'2013-05-02 12:30:29','The data model is dead. Long live the data model.','http://www.youtube.com/watch?v=px6U2n74q3g');
INSERT INTO user_videos (userid, videoid, added_date, name, preview_image_location)
VALUES (9761d3d7-7fbd-4269-9988-6cfd4e188678,873ff430-9c23-4e60-be5f-278ea2bb21bd,'2013-05-16 16:50:00','Become a Super Modeler','http://www.youtube.com/watch?v=qphhxujn5Es');
INSERT INTO user_videos (userid, videoid, added_date, name, preview_image_location)
VALUES (9761d3d7-7fbd-4269-9988-6cfd4e188678,49f64d40-7d89-4890-b910-dbf923563a33,'2013-06-11 11:00:00','The World''s Next Top Data Model','http://www.youtube.com/watch?v=HdJlsOZVGwM');
//latest_videos
INSERT INTO latest_videos (yyyymmdd, videoid, added_date, name, preview_image_location)
VALUES ('2012-06-01',99051fe9-6a9c-46c2-b949-38ef78858dd0,'2012-06-01 08:00:00','My funny cat','/us/vid/b3/b3a76c6b-7c7f-4af6-964f-803a9283c401');
INSERT INTO latest_videos (yyyymmdd, videoid, added_date, name, preview_image_location)
VALUES ('2012-08-30',b3a76c6b-7c7f-4af6-964f-803a9283c401,'2012-08-30 16:50:00','Now my dog plays piano!','/us/vid/b3/b3a76c6b-7c7f-4af6-964f-803a9283c401');
INSERT INTO latest_videos (yyyymmdd, videoid, added_date, name, preview_image_location)
VALUES ('2013-05-02',0c3f7e87-f6b6-41d2-9668-2b64d117102c,'2013-05-02 12:30:29','An Introduction to Database Systems','/us/vid/0c/0c3f7e87-f6b6-41d2-9668-2b64d117102c');
INSERT INTO latest_videos (yyyymmdd, videoid, added_date, name, preview_image_location)
VALUES ('2012-12-01',416a5ddc-00a5-49ed-adde-d99da9a27c0c,'2012-12-01 11:29:00','Intro to CAP theorem','/us/vid/41/416a5ddc-00a5-49ed-adde-d99da9a27c0c');
INSERT INTO latest_videos (yyyymmdd, videoid, added_date, name, preview_image_location)
VALUES ('2013-05-02',06049cbb-dfed-421f-b889-5f649a0de1ed,'2013-05-02 12:30:29','The data model is dead. Long live the data model.','http://www.youtube.com/watch?v=px6U2n74q3g');
INSERT INTO latest_videos (yyyymmdd, videoid, added_date, name, preview_image_location)
VALUES ('2013-05-16',873ff430-9c23-4e60-be5f-278ea2bb21bd,'2013-05-16 16:50:00','Become a Super Modeler','http://www.youtube.com/watch?v=qphhxujn5Es');
INSERT INTO latest_videos (yyyymmdd, videoid, added_date, name, preview_image_location)
VALUES ('2013-06-11',49f64d40-7d89-4890-b910-dbf923563a33,'2013-06-11 11:00:00','The World''s Next Top Data Model','http://www.youtube.com/watch?v=HdJlsOZVGwM');
// Video Rating counters
UPDATE video_rating SET rating_counter = rating_counter + 1, rating_total = rating_total + 3
WHERE videoid = 99051fe9-6a9c-46c2-b949-38ef78858dd0;
UPDATE video_rating SET rating_counter = rating_counter + 1, rating_total = rating_total + 5
WHERE videoid = 99051fe9-6a9c-46c2-b949-38ef78858dd0;
UPDATE video_rating SET rating_counter = rating_counter + 1, rating_total = rating_total + 4
WHERE videoid = 99051fe9-6a9c-46c2-b949-38ef78858dd0;
// video_ratings_by_user
INSERT INTO video_ratings_by_user (videoid, userid, rating)
VALUES ( 99051fe9-6a9c-46c2-b949-38ef78858dd0,9761d3d7-7fbd-4269-9988-6cfd4e188678 ,3);
INSERT INTO video_ratings_by_user (videoid, userid, rating)
VALUES ( 99051fe9-6a9c-46c2-b949-38ef78858dd0,9761d3d7-7fbd-4269-9988-6cfd4e188678 ,5);
INSERT INTO video_ratings_by_user (videoid, userid, rating)
VALUES ( 99051fe9-6a9c-46c2-b949-38ef78858dd0,9761d3d7-7fbd-4269-9988-6cfd4e188678 ,4);
// videos_by_tag
INSERT INTO videos_by_tag (tag, videoid, tagged_date, added_date, name, preview_image_location)
VALUES ('cats',99051fe9-6a9c-46c2-b949-38ef78858dd0,'2012-05-25 08:30:29','2012-06-01 08:00:00','My funny cat','/us/vid/b3/b3a76c6b-7c7f-4af6-964f-803a9283c401');
INSERT INTO videos_by_tag (tag, videoid, tagged_date, added_date, name, preview_image_location)
VALUES ('piano',99051fe9-6a9c-46c2-b949-38ef78858dd0, '2012-05-25 08:30:29','2012-06-01 08:00:00','My funny cat','/us/vid/b3/b3a76c6b-7c7f-4af6-964f-803a9283c401');
INSERT INTO videos_by_tag (tag, videoid, tagged_date, added_date, name, preview_image_location)
VALUES ('lol',99051fe9-6a9c-46c2-b949-38ef78858dd0, '2012-05-25 08:30:29','2012-06-01 08:00:00','My funny cat','/us/vid/b3/b3a76c6b-7c7f-4af6-964f-803a9283c401');
INSERT INTO videos_by_tag (tag, videoid, tagged_date, added_date, name, preview_image_location)
VALUES ('dogs',b3a76c6b-7c7f-4af6-964f-803a9283c401, '2012-08-30 16:50:00','2012-08-30 16:50:00','Now my dog plays piano!','/us/vid/b3/b3a76c6b-7c7f-4af6-964f-803a9283c401');
INSERT INTO videos_by_tag (tag, videoid, tagged_date, added_date, name, preview_image_location)
VALUES ('piano',b3a76c6b-7c7f-4af6-964f-803a9283c401, '2012-08-30 16:50:00','2012-08-30 16:50:00','Now my dog plays piano!','/us/vid/b3/b3a76c6b-7c7f-4af6-964f-803a9283c401');
INSERT INTO videos_by_tag (tag, videoid, tagged_date, added_date, name, preview_image_location)
VALUES ('lol',b3a76c6b-7c7f-4af6-964f-803a9283c401, '2012-08-30 16:50:00','2012-08-30 16:50:00','Now my dog plays piano!','/us/vid/b3/b3a76c6b-7c7f-4af6-964f-803a9283c401');
INSERT INTO videos_by_tag (tag, videoid, tagged_date, added_date, name, preview_image_location)
VALUES ('database',0c3f7e87-f6b6-41d2-9668-2b64d117102c, '2012-09-03 10:30:00','2013-05-02 12:30:29','An Introduction to Database Systems','/us/vid/0c/0c3f7e87-f6b6-41d2-9668-2b64d117102c');
INSERT INTO videos_by_tag (tag, videoid, tagged_date, added_date, name, preview_image_location)
VALUES ('relational',0c3f7e87-f6b6-41d2-9668-2b64d117102c, '2012-09-03 10:30:00','2013-05-02 12:30:29','An Introduction to Database Systems','/us/vid/0c/0c3f7e87-f6b6-41d2-9668-2b64d117102c');
INSERT INTO videos_by_tag (tag, videoid, tagged_date, added_date, name, preview_image_location)
VALUES ('book',0c3f7e87-f6b6-41d2-9668-2b64d117102c, '2012-09-03 10:30:00','2013-05-02 12:30:29','An Introduction to Database Systems','/us/vid/0c/0c3f7e87-f6b6-41d2-9668-2b64d117102c');
INSERT INTO videos_by_tag (tag, videoid, tagged_date, added_date, name, preview_image_location)
VALUES ('database',416a5ddc-00a5-49ed-adde-d99da9a27c0c, '2012-12-01 11:29:00','2012-12-01 11:29:00','Intro to CAP theorem','/us/vid/41/416a5ddc-00a5-49ed-adde-d99da9a27c0c');
INSERT INTO videos_by_tag (tag, videoid, tagged_date, added_date, name, preview_image_location)
VALUES ('cap',416a5ddc-00a5-49ed-adde-d99da9a27c0c, '2012-12-01 11:29:00','2012-12-01 11:29:00','Intro to CAP theorem','/us/vid/41/416a5ddc-00a5-49ed-adde-d99da9a27c0c');
INSERT INTO videos_by_tag (tag, videoid, tagged_date, added_date, name, preview_image_location)
VALUES ('brewer',416a5ddc-00a5-49ed-adde-d99da9a27c0c, '2012-12-01 11:29:00','2012-12-01 11:29:00','Intro to CAP theorem','/us/vid/41/416a5ddc-00a5-49ed-adde-d99da9a27c0c');
INSERT INTO videos_by_tag (tag, videoid, tagged_date, added_date, name, preview_image_location)
VALUES ('cassandra',06049cbb-dfed-421f-b889-5f649a0de1ed, '2013-05-02 12:30:29','2013-05-02 12:30:29','The data model is dead. Long live the data model.','http://www.youtube.com/watch?v=px6U2n74q3g');
INSERT INTO videos_by_tag (tag, videoid, tagged_date, added_date, name, preview_image_location)
VALUES ('data model',06049cbb-dfed-421f-b889-5f649a0de1ed, '2013-05-02 12:30:29','2013-05-02 12:30:29','The data model is dead. Long live the data model.','http://www.youtube.com/watch?v=px6U2n74q3g');
INSERT INTO videos_by_tag (tag, videoid, tagged_date, added_date, name, preview_image_location)
VALUES ('relational',06049cbb-dfed-421f-b889-5f649a0de1ed, '2013-05-02 12:30:29','2013-05-02 12:30:29','The data model is dead. Long live the data model.','http://www.youtube.com/watch?v=px6U2n74q3g');
INSERT INTO videos_by_tag (tag, videoid, tagged_date, added_date, name, preview_image_location)
VALUES ('instruction',06049cbb-dfed-421f-b889-5f649a0de1ed, '2013-05-02 12:30:29','2013-05-02 12:30:29','The data model is dead. Long live the data model.','http://www.youtube.com/watch?v=px6U2n74q3g');
INSERT INTO videos_by_tag (tag, videoid, tagged_date, added_date, name, preview_image_location)
VALUES ('cassandra',873ff430-9c23-4e60-be5f-278ea2bb21bd, '2013-05-16 16:50:00','2013-05-16 16:50:00','Become a Super Modeler','http://www.youtube.com/watch?v=qphhxujn5Es');
INSERT INTO videos_by_tag (tag, videoid, tagged_date, added_date, name, preview_image_location)
VALUES ('data model',873ff430-9c23-4e60-be5f-278ea2bb21bd, '2013-05-16 16:50:00','2013-05-16 16:50:00','Become a Super Modeler','http://www.youtube.com/watch?v=qphhxujn5Es');
INSERT INTO videos_by_tag (tag, videoid, tagged_date, added_date, name, preview_image_location)
VALUES ('relational',873ff430-9c23-4e60-be5f-278ea2bb21bd, '2013-05-16 16:50:00','2013-05-16 16:50:00','Become a Super Modeler','http://www.youtube.com/watch?v=qphhxujn5Es');
INSERT INTO videos_by_tag (tag, videoid, tagged_date, added_date, name, preview_image_location)
VALUES ('instruction',873ff430-9c23-4e60-be5f-278ea2bb21bd, '2013-05-16 16:50:00','2013-05-16 16:50:00','Become a Super Modeler','http://www.youtube.com/watch?v=qphhxujn5Es');
INSERT INTO videos_by_tag (tag, videoid, tagged_date, added_date, name, preview_image_location)
VALUES ('cassandra',49f64d40-7d89-4890-b910-dbf923563a33, '2013-06-11 11:00:00','2013-06-11 11:00:00','The World''s Next Top Data Model','http://www.youtube.com/watch?v=HdJlsOZVGwM');
INSERT INTO videos_by_tag (tag, videoid, tagged_date, added_date, name, preview_image_location)
VALUES ('data model',49f64d40-7d89-4890-b910-dbf923563a33, '2013-06-11 11:00:00','2013-06-11 11:00:00','The World''s Next Top Data Model','http://www.youtube.com/watch?v=HdJlsOZVGwM');
INSERT INTO videos_by_tag (tag, videoid, tagged_date, added_date, name, preview_image_location)
VALUES ('examples',49f64d40-7d89-4890-b910-dbf923563a33, '2013-06-11 11:00:00','2013-06-11 11:00:00','The World''s Next Top Data Model','http://www.youtube.com/watch?v=HdJlsOZVGwM');
INSERT INTO videos_by_tag (tag, videoid, tagged_date, added_date, name, preview_image_location)
VALUES ('instruction',49f64d40-7d89-4890-b910-dbf923563a33, '2013-06-11 11:00:00','2013-06-11 11:00:00','The World''s Next Top Data Model','http://www.youtube.com/watch?v=HdJlsOZVGwM');
// Video Comments. One for each side of the view.
// Insert in pairs
// This is done using the logged batch command to group our operations to ensure both actions are eventually taken.
BEGIN BATCH
INSERT INTO comments_by_video (videoid, userid, commentid, comment)
VALUES (99051fe9-6a9c-46c2-b949-38ef78858dd0,d0f60aa8-54a9-4840-b70c-fe562b68842b,now(), 'Worst. Video. Ever.')
INSERT INTO comments_by_video (videoid, userid, commentid, comment)
VALUES (99051fe9-6a9c-46c2-b949-38ef78858dd0,d0f60aa8-54a9-4840-b70c-fe562b68842b,now(), 'Worst. Video. Ever.')
APPLY BATCH;
BEGIN BATCH
INSERT INTO comments_by_video (videoid, userid, commentid, comment)
VALUES (99051fe9-6a9c-46c2-b949-38ef78858dd0,522b1fe2-2e36-4cef-a667-cd4237d08b89,now(), 'It is amazing')
INSERT INTO comments_by_video (videoid, userid, commentid, comment)
VALUES (99051fe9-6a9c-46c2-b949-38ef78858dd0,522b1fe2-2e36-4cef-a667-cd4237d08b89,now(), 'It is amazing')
APPLY BATCH;
// Video events
INSERT INTO video_event (videoid, userid, event, event_timestamp, video_timestamp)
VALUES (99051fe9-6a9c-46c2-b949-38ef78858dd0,d0f60aa8-54a9-4840-b70c-fe562b68842b,'start',now(),0);
INSERT INTO video_event (videoid, userid, event, event_timestamp, video_timestamp)
VALUES (99051fe9-6a9c-46c2-b949-38ef78858dd0,d0f60aa8-54a9-4840-b70c-fe562b68842b,'stop',now(),30000);
INSERT INTO video_event (videoid, userid, event, event_timestamp, video_timestamp)
VALUES (99051fe9-6a9c-46c2-b949-38ef78858dd0,d0f60aa8-54a9-4840-b70c-fe562b68842b,'start',now(),3000);
INSERT INTO video_event (videoid, userid, event, event_timestamp, video_timestamp)
VALUES (99051fe9-6a9c-46c2-b949-38ef78858dd0,d0f60aa8-54a9-4840-b70c-fe562b68842b,'stop',now(),230000);