-
Notifications
You must be signed in to change notification settings - Fork 6
/
pcapi_schema.sql
1573 lines (1324 loc) · 49.5 KB
/
pcapi_schema.sql
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
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
-- phpMyAdmin SQL Dump
-- version 4.9.5deb2
-- https://www.phpmyadmin.net/
--
-- Host: localhost:3306
-- Generation Time: Aug 03, 2023 at 08:41 PM
-- Server version: 8.0.21
-- PHP Version: 7.4.3-4ubuntu2.18
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8mb4 */;
--
-- Database: `pcapi`
--
-- --------------------------------------------------------
--
-- Table structure for table `api_tokens`
--
CREATE TABLE `api_tokens` (
`id` bigint NOT NULL,
`userid` bigint NOT NULL COMMENT 'Link to id in the users table',
`keyval` varchar(20) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
`secretval` varchar(40) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
`createdon` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
`permlevel` int NOT NULL DEFAULT '0' COMMENT 'What permissions does this key have?',
`rate_limited` int NOT NULL DEFAULT '0' COMMENT 'Is a rate limit in effect?'
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_bin COMMENT='API tokens for accessing the REST api';
-- --------------------------------------------------------
--
-- Table structure for table `categories`
--
CREATE TABLE `categories` (
`id` bigint NOT NULL,
`name` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT ''
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='Categories for podcasts.';
-- --------------------------------------------------------
--
-- Table structure for table `category_map`
--
CREATE TABLE `category_map` (
`id` bigint NOT NULL,
`categoryid` bigint NOT NULL,
`feedid` bigint NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='A mapping of feeds to categories.';
-- --------------------------------------------------------
--
-- Table structure for table `developers`
--
CREATE TABLE `developers` (
`id` bigint NOT NULL,
`email` varchar(512) NOT NULL,
`name` varchar(255) NOT NULL DEFAULT '',
`active` tinyint NOT NULL DEFAULT '0',
`password` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '',
`lastlogin` datetime NOT NULL,
`lastpasschange` datetime NOT NULL,
`username` varchar(64) CHARACTER SET latin1 COLLATE latin1_general_cs NOT NULL DEFAULT '',
`activationcode` varchar(49) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT ''
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Developer accounts';
-- --------------------------------------------------------
--
-- Table structure for table `directory_apple`
--
CREATE TABLE `directory_apple` (
`id` bigint NOT NULL,
`description` varchar(512) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '',
`itunes_id` bigint NOT NULL,
`itunes_url` varchar(768) CHARACTER SET latin1 COLLATE latin1_general_cs NOT NULL,
`time_createdon` int NOT NULL,
`feed_url` varchar(768) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '',
`title_non_english` tinyint NOT NULL DEFAULT '0' COMMENT 'Does the title contain non-english characters',
`artwork_url_30` varchar(768) CHARACTER SET latin1 COLLATE latin1_general_cs NOT NULL DEFAULT '',
`artwork_url_60` varchar(768) CHARACTER SET latin1 COLLATE latin1_general_cs NOT NULL DEFAULT '',
`artwork_url_100` varchar(768) CHARACTER SET latin1 COLLATE latin1_general_cs NOT NULL DEFAULT '',
`artwork_url_600` varchar(768) CHARACTER SET latin1 COLLATE latin1_general_cs NOT NULL DEFAULT '',
`dead` tinyint NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_cs COMMENT='Apple metadata for linkage to feeds';
-- --------------------------------------------------------
--
-- Table structure for table `feeds_added`
--
CREATE TABLE `feeds_added` (
`id` bigint NOT NULL,
`feedid` bigint DEFAULT NULL,
`userid` int DEFAULT NULL,
`developerid` bigint DEFAULT NULL,
`time_added` int NOT NULL DEFAULT '0',
`source` tinyint NOT NULL DEFAULT '0' COMMENT '0-api, 1-api-batch, 2-cron',
`processed` tinyint NOT NULL DEFAULT '0',
`stage` tinyint NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='A record of every feed added and who added it.';
-- --------------------------------------------------------
--
-- Table structure for table `flags`
--
CREATE TABLE `flags` (
`name` varchar(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
`value` int NOT NULL,
`timeset` varchar(64) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
`setby` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_bin COMMENT='Server-wide flags.';
-- --------------------------------------------------------
--
-- Table structure for table `genres`
--
CREATE TABLE `genres` (
`id` int NOT NULL,
`itunes_genre_id` int NOT NULL DEFAULT '0',
`title` varchar(256) CHARACTER SET latin1 COLLATE latin1_general_ci NOT NULL,
`subgenre` int NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci COMMENT='Podcast categories';
-- --------------------------------------------------------
--
-- Table structure for table `newsfeeds`
--
CREATE TABLE `newsfeeds` (
`id` bigint NOT NULL,
`title` varchar(768) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '',
`url` varchar(768) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '',
`lastcheck` int NOT NULL DEFAULT '0',
`lastupdate` int NOT NULL DEFAULT '0',
`lastmod` int NOT NULL DEFAULT '0',
`createdon` int NOT NULL DEFAULT '0',
`content` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL,
`link` varchar(768) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '',
`errors` int NOT NULL DEFAULT '0',
`updated` tinyint NOT NULL DEFAULT '0',
`lastitemid` varchar(768) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL DEFAULT '',
`pubdate` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '',
`contenthash` varchar(40) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL DEFAULT '',
`lasthttpstatus` int NOT NULL DEFAULT '0',
`lastgoodhttpstatus` int NOT NULL DEFAULT '0',
`dead` tinyint NOT NULL DEFAULT '0',
`contenttype` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '',
`itunes_id` bigint DEFAULT NULL,
`duplicateof` bigint DEFAULT NULL,
`original_url` varchar(768) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL DEFAULT '',
`artwork_url_600` varchar(768) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL DEFAULT '',
`description` mediumtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL,
`itunes_author` varchar(2048) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL,
`itunes_owner_email` varchar(1024) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL,
`itunes_owner_name` varchar(1024) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL,
`itunes_new_feed_url` varchar(768) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL,
`explicit` tinyint NOT NULL DEFAULT '0',
`image` varchar(768) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '',
`itunes_type` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL,
`type` tinyint NOT NULL DEFAULT '0',
`generator` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL,
`parse_errors` int NOT NULL DEFAULT '0',
`lastparse` int NOT NULL DEFAULT '0',
`pullnow` tinyint NOT NULL DEFAULT '0' COMMENT 'Scan this feed immediately.',
`parsenow` tinyint NOT NULL DEFAULT '0' COMMENT 'Parse this feed immediately.',
`newest_item_pubdate` int NOT NULL DEFAULT '0',
`update_frequency` tinyint NOT NULL DEFAULT '0',
`priority` tinyint NOT NULL DEFAULT '0',
`language` varchar(8) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT 'Language stated in the feed.',
`detected_language` varchar(8) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT 'Language we detected.',
`chash` varchar(40) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL DEFAULT '',
`oldest_item_pubdate` int NOT NULL DEFAULT '0',
`item_count` int NOT NULL DEFAULT '0',
`popularity` int NOT NULL DEFAULT '0',
`podcast_chapters` varchar(768) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL DEFAULT '',
`podcast_locked` tinyint NOT NULL DEFAULT '0',
`podcast_owner` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT ''
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='The podcast feeds';
-- --------------------------------------------------------
--
-- Table structure for table `nfcategories`
--
CREATE TABLE `nfcategories` (
`id` bigint NOT NULL,
`feedid` bigint NOT NULL,
`catid1` bigint DEFAULT NULL,
`catid2` bigint DEFAULT NULL,
`catid3` bigint DEFAULT NULL,
`catid4` bigint DEFAULT NULL,
`catid5` bigint DEFAULT NULL,
`catid6` bigint DEFAULT NULL,
`catid7` bigint DEFAULT NULL,
`catid8` bigint DEFAULT NULL,
`catid9` bigint DEFAULT NULL,
`catid10` bigint DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
-- --------------------------------------------------------
--
-- Table structure for table `nfenclosures`
--
CREATE TABLE `nfenclosures` (
`id` bigint NOT NULL COMMENT 'Enclosure id',
`itemid` bigint NOT NULL COMMENT 'Newsfeed item id',
`url` varchar(2048) NOT NULL COMMENT 'Url of the enclosure',
`mimetype` varchar(64) NOT NULL COMMENT 'Mimetype of the enclosure',
`length` bigint NOT NULL COMMENT 'Size in bytes of the enclosure',
`time` datetime NOT NULL COMMENT 'Incoming enclosure time',
`type` int NOT NULL COMMENT 'Internal type spec',
`marker` int NOT NULL COMMENT 'Timestampe of last play marker',
`source` int NOT NULL COMMENT 'Is this an html scrape or an enclosure?'
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COMMENT='Enclosures from the newsfeed item table';
-- --------------------------------------------------------
--
-- Table structure for table `nfetags`
--
CREATE TABLE `nfetags` (
`id` bigint NOT NULL,
`feedid` bigint NOT NULL,
`updatedon` int NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
-- --------------------------------------------------------
--
-- Table structure for table `nffunding`
--
CREATE TABLE `nffunding` (
`feedid` bigint NOT NULL,
`url` varchar(768) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL DEFAULT '',
`message` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT ''
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
-- --------------------------------------------------------
--
-- Table structure for table `nfguids`
--
CREATE TABLE `nfguids` (
`id` bigint NOT NULL,
`feedid` bigint NOT NULL,
`guid` varchar(36) CHARACTER SET latin1 COLLATE latin1_general_ci NOT NULL DEFAULT ''
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
-- --------------------------------------------------------
--
-- Table structure for table `nfhashes`
--
CREATE TABLE `nfhashes` (
`id` bigint NOT NULL,
`feedid` bigint NOT NULL,
`hash` varchar(40) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL DEFAULT '',
`updatedon` int NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
-- --------------------------------------------------------
--
-- Table structure for table `nfimages`
--
CREATE TABLE `nfimages` (
`id` bigint NOT NULL,
`feedid` bigint NOT NULL,
`crc32` int UNSIGNED NOT NULL DEFAULT '0',
`type` tinyint UNSIGNED NOT NULL DEFAULT '0' COMMENT '0 = jpg',
`resolution` int UNSIGNED NOT NULL DEFAULT '300'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
-- --------------------------------------------------------
--
-- Table structure for table `nfitems`
--
CREATE TABLE `nfitems` (
`id` bigint NOT NULL,
`feedid` bigint NOT NULL,
`title` varchar(1024) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '',
`link` varchar(768) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL,
`description` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL,
`guid` varchar(740) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL DEFAULT '' COMMENT 'A unique id for this item.',
`timestamp` bigint NOT NULL DEFAULT '0',
`timeadded` int NOT NULL DEFAULT '0',
`enclosure_url` varchar(768) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '' COMMENT 'Enclosure url',
`enclosure_length` bigint NOT NULL DEFAULT '0',
`enclosure_type` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT 'audio/mpeg',
`itunes_episode` int DEFAULT NULL,
`itunes_episode_type` varchar(12) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL,
`itunes_explicit` tinyint DEFAULT NULL,
`itunes_duration` int DEFAULT NULL,
`image` varchar(768) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '',
`purge` tinyint NOT NULL DEFAULT '0',
`itunes_season` int NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COMMENT='Holds all the news feed items.';
-- --------------------------------------------------------
--
-- Table structure for table `nfitem_chapters`
--
CREATE TABLE `nfitem_chapters` (
`itemid` bigint NOT NULL,
`url` varchar(768) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '',
`type` tinyint NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
-- --------------------------------------------------------
--
-- Table structure for table `nfitem_images`
--
CREATE TABLE `nfitem_images` (
`id` bigint NOT NULL,
`episodeid` bigint NOT NULL,
`crc32` int UNSIGNED NOT NULL DEFAULT '0',
`type` tinyint UNSIGNED NOT NULL DEFAULT '0' COMMENT '0 = jpg',
`resolution` int UNSIGNED NOT NULL DEFAULT '300'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
-- --------------------------------------------------------
--
-- Table structure for table `nfitem_persons`
--
CREATE TABLE `nfitem_persons` (
`id` bigint UNSIGNED NOT NULL,
`itemid` bigint NOT NULL,
`name` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '',
`role` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT 'host',
`grp` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT 'cast',
`img` varchar(768) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '',
`href` varchar(768) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT ''
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
-- --------------------------------------------------------
--
-- Table structure for table `nfitem_socialinteract`
--
CREATE TABLE `nfitem_socialinteract` (
`id` bigint NOT NULL,
`itemid` bigint NOT NULL,
`uri` varchar(760) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL DEFAULT '',
`protocol` tinyint NOT NULL DEFAULT '0',
`accountId` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL DEFAULT '',
`accountUrl` varchar(768) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL DEFAULT '',
`priority` int NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='Social interact tags for newsfeed items.';
-- --------------------------------------------------------
--
-- Table structure for table `nfitem_soundbites`
--
CREATE TABLE `nfitem_soundbites` (
`itemid` bigint NOT NULL,
`title` varchar(512) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '',
`start_time` int NOT NULL DEFAULT '0',
`duration` int NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
-- --------------------------------------------------------
--
-- Table structure for table `nfitem_transcripts`
--
CREATE TABLE `nfitem_transcripts` (
`itemid` bigint NOT NULL,
`url` varchar(768) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL DEFAULT '',
`type` tinyint NOT NULL DEFAULT '0',
`captions` tinyint NOT NULL DEFAULT '0',
`language` varchar(40) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT ''
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='Transcripts for newsfeed items.';
-- --------------------------------------------------------
--
-- Table structure for table `nfitem_value`
--
CREATE TABLE `nfitem_value` (
`itemid` bigint NOT NULL,
`value_block` text CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL,
`type` tinyint NOT NULL DEFAULT '0' COMMENT '0=lightning',
`createdon` int NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
-- --------------------------------------------------------
--
-- Table structure for table `nflinkage`
--
CREATE TABLE `nflinkage` (
`id` bigint NOT NULL,
`feedid` bigint NOT NULL,
`itunes` varchar(400) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL DEFAULT '',
`google` varchar(400) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL DEFAULT '',
`spotify` varchar(400) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL DEFAULT '',
`stitcher` varchar(400) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL DEFAULT '',
`luminary` varchar(400) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL DEFAULT '',
`bullhorn` varchar(400) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL DEFAULT '',
`iheartradio` varchar(400) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL DEFAULT '',
`ivoox` varchar(400) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL DEFAULT '',
`amazon` varchar(400) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL DEFAULT ''
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='Links to a podcast on other sites and services.';
-- --------------------------------------------------------
--
-- Table structure for table `nfliveitems`
--
CREATE TABLE `nfliveitems` (
`id` bigint NOT NULL,
`feedid` bigint NOT NULL,
`title` varchar(1024) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '',
`link` varchar(768) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL,
`description` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL,
`guid` varchar(740) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL DEFAULT '' COMMENT 'A unique id for this item.',
`timestamp` bigint NOT NULL DEFAULT '0',
`timeadded` int NOT NULL DEFAULT '0',
`enclosure_url` varchar(768) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '' COMMENT 'Enclosure url',
`enclosure_length` bigint NOT NULL DEFAULT '0',
`enclosure_type` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT 'audio/mpeg',
`itunes_explicit` tinyint DEFAULT NULL,
`image` varchar(768) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '',
`purge` tinyint NOT NULL DEFAULT '0',
`start_time` int NOT NULL DEFAULT '0',
`end_time` int NOT NULL DEFAULT '0',
`status` tinyint NOT NULL DEFAULT '0' COMMENT '0=pending, 1=live, 2=ended',
`content_link` varchar(768) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT ''
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COMMENT='Holds all the live feed items.';
-- --------------------------------------------------------
--
-- Table structure for table `nflocations`
--
CREATE TABLE `nflocations` (
`id` bigint NOT NULL,
`feedid` bigint NOT NULL,
`locale` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '',
`osm` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '',
`latlon` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT ''
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='Location tags for newsfeeds';
-- --------------------------------------------------------
--
-- Table structure for table `nfmediums`
--
CREATE TABLE `nfmediums` (
`id` bigint NOT NULL,
`feedid` bigint NOT NULL,
`medium` varchar(36) CHARACTER SET latin1 COLLATE latin1_general_ci NOT NULL DEFAULT 'podcast'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
-- --------------------------------------------------------
--
-- Table structure for table `nfpersons`
--
CREATE TABLE `nfpersons` (
`id` bigint NOT NULL,
`feedid` bigint NOT NULL,
`role` tinyint NOT NULL DEFAULT '0',
`name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '',
`image` varchar(768) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL DEFAULT '',
`href` varchar(768) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL DEFAULT ''
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='Persons listed in feeds';
-- --------------------------------------------------------
--
-- Table structure for table `nfproblematic`
--
CREATE TABLE `nfproblematic` (
`id` bigint NOT NULL,
`feedid` bigint NOT NULL,
`reason` tinyint NOT NULL DEFAULT '0',
`updatedon` int NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
-- --------------------------------------------------------
--
-- Table structure for table `nfpublish`
--
CREATE TABLE `nfpublish` (
`id` bigint NOT NULL,
`feedid` bigint NOT NULL,
`pub_time` int NOT NULL,
`pub_dow` int NOT NULL,
`pub_dom` int NOT NULL,
`pub_slice` int NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='Episode publish history for newsfeeds';
-- --------------------------------------------------------
--
-- Table structure for table `nfschedule`
--
CREATE TABLE `nfschedule` (
`feedid` bigint NOT NULL,
`sun` tinyint NOT NULL,
`mon` tinyint NOT NULL,
`tue` tinyint NOT NULL,
`wed` tinyint NOT NULL,
`thu` tinyint NOT NULL,
`fri` tinyint NOT NULL,
`sat` tinyint NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='The feed update schedule';
-- --------------------------------------------------------
--
-- Table structure for table `nfsoundbites`
--
CREATE TABLE `nfsoundbites` (
`feedid` bigint NOT NULL,
`url` varchar(768) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL DEFAULT '',
`message` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT ''
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
-- --------------------------------------------------------
--
-- Table structure for table `nfsphinx`
--
CREATE TABLE `nfsphinx` (
`feedid` bigint NOT NULL,
`node` varchar(128) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '',
`updatedon` int NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
-- --------------------------------------------------------
--
-- Table structure for table `nfsubscriptions`
--
CREATE TABLE `nfsubscriptions` (
`apitoken` bigint NOT NULL,
`subscriberid` bigint NOT NULL,
`feedid` bigint NOT NULL,
`updated` int NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
-- --------------------------------------------------------
--
-- Table structure for table `nfvalue`
--
CREATE TABLE `nfvalue` (
`feedid` bigint NOT NULL,
`value_block` text CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL,
`type` tinyint NOT NULL DEFAULT '0' COMMENT '0=lightning',
`createdon` int NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
-- --------------------------------------------------------
--
-- Table structure for table `owners`
--
CREATE TABLE `owners` (
`id` bigint NOT NULL,
`feedid` bigint NOT NULL,
`email` varchar(512) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Owners of podcasts';
-- --------------------------------------------------------
--
-- Table structure for table `podcasts`
--
CREATE TABLE `podcasts` (
`id` bigint NOT NULL,
`ownerid` bigint NOT NULL,
`upid` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL DEFAULT '',
`feedid` bigint NOT NULL,
`createdon` int NOT NULL DEFAULT '0',
`validation_code` varchar(40) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT ''
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
-- --------------------------------------------------------
--
-- Table structure for table `prefs`
--
CREATE TABLE `prefs` (
`id` int NOT NULL COMMENT 'User id',
`maxfiles` int NOT NULL,
`avatarurl` varchar(767) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '',
`timezone` varchar(64) CHARACTER SET latin1 COLLATE latin1_general_ci NOT NULL DEFAULT 'UTC'
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_bin COMMENT='User level preferences';
-- --------------------------------------------------------
--
-- Table structure for table `pubsub`
--
CREATE TABLE `pubsub` (
`id` bigint NOT NULL,
`feedid` bigint NOT NULL,
`hub_url` varchar(768) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '',
`self_url` varchar(768) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '',
`lease_expire` int NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
-- --------------------------------------------------------
--
-- Table structure for table `sessions`
--
CREATE TABLE `sessions` (
`id` varchar(128) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
`userid` int NOT NULL,
`lastactivity` int NOT NULL,
`created` int NOT NULL,
`firstsourceip` varchar(24) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
`lastsourceip` varchar(24) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
`firstbrowser` varchar(128) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
`lastbrowser` varchar(128) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
`type` int NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_bin COMMENT='Active sessions';
-- --------------------------------------------------------
--
-- Table structure for table `subgenres`
--
CREATE TABLE `subgenres` (
`id` int NOT NULL,
`title` varchar(256) CHARACTER SET latin1 COLLATE latin1_general_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci COMMENT='Podcast sub-categories';
-- --------------------------------------------------------
--
-- Table structure for table `tos_accept`
--
CREATE TABLE `tos_accept` (
`id` bigint NOT NULL,
`userid` int NOT NULL,
`date` int NOT NULL,
`version` int NOT NULL,
`ip_address` varchar(40) NOT NULL,
`browser` varchar(255) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='A record of who agreed to the TOS, when and where.';
-- --------------------------------------------------------
--
-- Table structure for table `users`
--
CREATE TABLE `users` (
`id` int NOT NULL,
`name` varchar(128) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
`password` varchar(128) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
`email` varchar(128) CHARACTER SET latin1 COLLATE latin1_general_ci NOT NULL,
`active` tinyint NOT NULL DEFAULT '0',
`admin` tinyint NOT NULL DEFAULT '0',
`badlogins` tinyint NOT NULL DEFAULT '0',
`stage` tinyint NOT NULL DEFAULT '0',
`lastpasschange` datetime NOT NULL,
`username` varchar(64) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
`totpseed` varchar(40) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '',
`lastlogin` datetime NOT NULL,
`system` tinyint NOT NULL DEFAULT '0' COMMENT 'Is this a system account',
`developer` bigint DEFAULT NULL COMMENT 'Is this a developer stub account?',
`tos` tinyint NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_bin COMMENT='Main user table.';
--
-- Indexes for dumped tables
--
--
-- Indexes for table `api_tokens`
--
ALTER TABLE `api_tokens`
ADD PRIMARY KEY (`id`),
ADD KEY `userid` (`userid`),
ADD KEY `createdon` (`createdon`),
ADD KEY `permlevel` (`permlevel`),
ADD KEY `rate_limited` (`rate_limited`);
--
-- Indexes for table `categories`
--
ALTER TABLE `categories`
ADD PRIMARY KEY (`id`),
ADD UNIQUE KEY `name` (`name`);
--
-- Indexes for table `category_map`
--
ALTER TABLE `category_map`
ADD PRIMARY KEY (`id`),
ADD UNIQUE KEY `categoryid_2` (`categoryid`,`feedid`),
ADD KEY `categoryid` (`categoryid`),
ADD KEY `feedid` (`feedid`);
--
-- Indexes for table `developers`
--
ALTER TABLE `developers`
ADD PRIMARY KEY (`id`),
ADD UNIQUE KEY `email` (`email`);
--
-- Indexes for table `directory_apple`
--
ALTER TABLE `directory_apple`
ADD PRIMARY KEY (`id`),
ADD UNIQUE KEY `itunes_id` (`itunes_id`),
ADD KEY `description` (`description`),
ADD KEY `title_non_english` (`title_non_english`),
ADD KEY `feed_url` (`feed_url`);
--
-- Indexes for table `feeds_added`
--
ALTER TABLE `feeds_added`
ADD PRIMARY KEY (`id`),
ADD KEY `feedid` (`feedid`),
ADD KEY `userid` (`userid`),
ADD KEY `time_added` (`time_added`),
ADD KEY `source` (`source`),
ADD KEY `processed` (`processed`),
ADD KEY `developerid` (`developerid`),
ADD KEY `stage` (`stage`);
--
-- Indexes for table `flags`
--
ALTER TABLE `flags`
ADD PRIMARY KEY (`name`);
--
-- Indexes for table `genres`
--
ALTER TABLE `genres`
ADD PRIMARY KEY (`id`),
ADD UNIQUE KEY `title` (`title`),
ADD KEY `subgenre` (`subgenre`),
ADD KEY `itunes_genre_id` (`itunes_genre_id`);
--
-- Indexes for table `newsfeeds`
--
ALTER TABLE `newsfeeds`
ADD PRIMARY KEY (`id`),
ADD UNIQUE KEY `url` (`url`),
ADD KEY `title` (`title`),
ADD KEY `itunes_id` (`itunes_id`),
ADD KEY `updated` (`updated`),
ADD KEY `errors` (`errors`),
ADD KEY `lasthttpstatus` (`lasthttpstatus`),
ADD KEY `lastgoodhttpstatus` (`lastgoodhttpstatus`),
ADD KEY `dead` (`dead`),
ADD KEY `original_url` (`original_url`),
ADD KEY `lastcheck` (`lastcheck`),
ADD KEY `lastupdate` (`lastupdate`),
ADD KEY `pullnow` (`pullnow`),
ADD KEY `parsenow` (`parsenow`),
ADD KEY `newest_item_pubdate` (`newest_item_pubdate`),
ADD KEY `update_frequency` (`update_frequency`),
ADD KEY `language` (`language`),
ADD KEY `priority` (`priority`),
ADD KEY `chash` (`chash`),
ADD KEY `item_count` (`item_count`),
ADD KEY `podcast_locked` (`podcast_locked`),
ADD KEY `podcast_owner` (`podcast_owner`);
--
-- Indexes for table `nfcategories`
--
ALTER TABLE `nfcategories`
ADD PRIMARY KEY (`id`),
ADD UNIQUE KEY `feedid` (`feedid`),
ADD KEY `catid1` (`catid1`),
ADD KEY `catid2` (`catid2`),
ADD KEY `catid3` (`catid3`),
ADD KEY `catid4` (`catid4`),
ADD KEY `catid5` (`catid5`),
ADD KEY `catid6` (`catid6`),
ADD KEY `catid7` (`catid7`),
ADD KEY `catid8` (`catid8`),
ADD KEY `catid9` (`catid9`),
ADD KEY `catid10` (`catid10`);
--
-- Indexes for table `nfenclosures`
--
ALTER TABLE `nfenclosures`
ADD PRIMARY KEY (`id`),
ADD KEY `iid` (`itemid`),
ADD KEY `type` (`type`),
ADD KEY `time` (`time`);
--
-- Indexes for table `nfetags`
--
ALTER TABLE `nfetags`
ADD PRIMARY KEY (`id`),
ADD UNIQUE KEY `feedid` (`feedid`) USING BTREE,
ADD KEY `updatedon` (`updatedon`);
--
-- Indexes for table `nffunding`
--
ALTER TABLE `nffunding`
ADD PRIMARY KEY (`feedid`) USING BTREE,
ADD KEY `url` (`url`) USING BTREE;
--
-- Indexes for table `nfguids`
--
ALTER TABLE `nfguids`
ADD PRIMARY KEY (`id`),
ADD UNIQUE KEY `feedid` (`feedid`),
ADD KEY `guid` (`guid`) USING BTREE;
--
-- Indexes for table `nfhashes`
--
ALTER TABLE `nfhashes`
ADD PRIMARY KEY (`id`),
ADD UNIQUE KEY `feedid` (`feedid`) USING BTREE,
ADD KEY `hash` (`hash`),
ADD KEY `updatedon` (`updatedon`);
--
-- Indexes for table `nfimages`
--
ALTER TABLE `nfimages`
ADD PRIMARY KEY (`id`),
ADD UNIQUE KEY `crc32_2` (`crc32`,`feedid`,`id`,`resolution`),
ADD KEY `feedid` (`feedid`),
ADD KEY `crc32` (`crc32`),
ADD KEY `resolution` (`resolution`),
ADD KEY `type` (`type`);
--
-- Indexes for table `nfitems`
--
ALTER TABLE `nfitems`
ADD PRIMARY KEY (`id`) USING BTREE,
ADD UNIQUE KEY `feedid_2` (`feedid`,`guid`) USING BTREE,
ADD KEY `timeadded` (`timeadded`),
ADD KEY `feedid` (`feedid`),
ADD KEY `timestamp` (`timestamp`),
ADD KEY `purgeable` (`purge`);
--
-- Indexes for table `nfitem_chapters`
--
ALTER TABLE `nfitem_chapters`
ADD PRIMARY KEY (`itemid`),
ADD KEY `type` (`type`);
--
-- Indexes for table `nfitem_images`
--
ALTER TABLE `nfitem_images`
ADD PRIMARY KEY (`id`),
ADD UNIQUE KEY `crc32_2` (`crc32`,`episodeid`,`id`,`resolution`),
ADD KEY `crc32` (`crc32`),
ADD KEY `resolution` (`resolution`),
ADD KEY `type` (`type`),
ADD KEY `episodeid` (`episodeid`) USING BTREE;
--
-- Indexes for table `nfitem_persons`
--
ALTER TABLE `nfitem_persons`
ADD PRIMARY KEY (`id`),
ADD UNIQUE KEY `itemid_2` (`itemid`,`name`,`href`),
ADD KEY `itemid` (`itemid`) USING BTREE,
ADD KEY `href` (`href`),
ADD KEY `grp` (`grp`),
ADD KEY `role` (`role`),
ADD KEY `name` (`name`);
--
-- Indexes for table `nfitem_socialinteract`
--
ALTER TABLE `nfitem_socialinteract`
ADD PRIMARY KEY (`id`),
ADD UNIQUE KEY `itemid_2` (`itemid`,`uri`),
ADD KEY `priority` (`priority`),
ADD KEY `itemid` (`itemid`),
ADD KEY `protocol` (`protocol`),
ADD KEY `accountId` (`accountId`);
--
-- Indexes for table `nfitem_soundbites`
--
ALTER TABLE `nfitem_soundbites`
ADD KEY `itemid` (`itemid`) USING BTREE,
ADD KEY `duration` (`duration`);
--
-- Indexes for table `nfitem_transcripts`
--
ALTER TABLE `nfitem_transcripts`
ADD UNIQUE KEY `itemid_2` (`itemid`,`type`,`language`),
ADD KEY `type` (`type`),
ADD KEY `captions` (`captions`),
ADD KEY `language` (`language`),
ADD KEY `itemid` (`itemid`) USING BTREE;
--
-- Indexes for table `nfitem_value`
--
ALTER TABLE `nfitem_value`
ADD PRIMARY KEY (`itemid`) USING BTREE,
ADD KEY `type` (`type`),
ADD KEY `createdon` (`createdon`);
--
-- Indexes for table `nflinkage`
--
ALTER TABLE `nflinkage`
ADD PRIMARY KEY (`id`),
ADD KEY `feedid` (`feedid`);
--
-- Indexes for table `nfliveitems`
--
ALTER TABLE `nfliveitems`
ADD PRIMARY KEY (`id`) USING BTREE,
ADD UNIQUE KEY `feedid_2` (`feedid`,`guid`) USING BTREE,
ADD KEY `timeadded` (`timeadded`),
ADD KEY `feedid` (`feedid`),
ADD KEY `timestamp` (`timestamp`),
ADD KEY `purgeable` (`purge`),
ADD KEY `startTime` (`start_time`),