-
Notifications
You must be signed in to change notification settings - Fork 16
/
supernova.sql
1334 lines (1086 loc) · 43.4 KB
/
supernova.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
# ************************************************************
# Sequel Pro SQL dump
# Version 4541
#
# http://www.sequelpro.com/
# https://github.com/sequelpro/sequelpro
#
# Host: 127.0.0.1 (MySQL 5.7.12)
# Database: supernova
# Generation Time: 2020-02-01 00:34:12 +0000
# ************************************************************
/*!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 utf8 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
set session sql_mode = 'NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION';
set global sql_mode = 'NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION';
CREATE DATABASE ${LCOSNDBNAME};
CREATE USER '${LCOSNDBUSER}' IDENTIFIED BY '${LCOSNDBPASS}';
GRANT ALL PRIVILEGES ON *.* TO '${LCOSNDBUSER}'@'%' IDENTIFIED BY '${LCOSNDBPASS}';
USE '${LCOSNDBNAME}';
DROP TABLE IF EXISTS `aseatide`;
CREATE TABLE `aseatide` (
`GRA` double DEFAULT NULL,
`GDEC` double DEFAULT NULL,
`OBJID` bigint(11) DEFAULT NULL,
`E_BV` double DEFAULT NULL,
`MAG_FUV` double DEFAULT NULL,
`MAG_NUV` double DEFAULT NULL,
`S2N_NUV` double DEFAULT NULL,
`MAGERR_FUV` double DEFAULT NULL,
`MAGERR_NUV` double DEFAULT NULL,
`MAG_D3P0_FUV` double DEFAULT NULL,
`MAG_D3P0_NUV` double DEFAULT NULL,
`MAG_D12P0_FUV` double DEFAULT NULL,
`MAG_D12P0_NUV` double DEFAULT NULL,
`FLUX20_RADIUS_NUV` double DEFAULT NULL,
`FLUX50_RADIUS_NUV` double DEFAULT NULL,
`FLUX90_RADIUS_NUV` double DEFAULT NULL,
`FLUX20_RADIUS_FUV` double DEFAULT NULL,
`FLUX50_RADIUS_FUV` double DEFAULT NULL,
`FLUX90_RADIUS_FUV` double DEFAULT NULL,
`Z` double DEFAULT NULL,
`RA0` double DEFAULT NULL,
`DEC0` double DEFAULT NULL,
`SPECOBJID` bigint(11) DEFAULT NULL,
`COLUMN1` bigint(11) DEFAULT NULL,
`SN_MEDIAN` double DEFAULT NULL,
`H_ALPHA_EQW` double DEFAULT NULL,
`H_ALPHA_EQW_ERR` double DEFAULT NULL,
`LICK_HD_A` double DEFAULT NULL,
`LICK_HD_A_ERR` double DEFAULT NULL,
`H_ALPHA_FLUX` double DEFAULT NULL,
`H_ALPHA_FLUX_ERR` double DEFAULT NULL,
`D4000_N` double DEFAULT NULL,
`D4000_N_ERR` double DEFAULT NULL,
`MODELMAG_U` double DEFAULT NULL,
`MODELMAG_G` double DEFAULT NULL,
`MODELMAG_R` double DEFAULT NULL,
`MODELMAG_I` double DEFAULT NULL,
`MODELMAG_Z` double DEFAULT NULL,
`FIBERMAG_U` double DEFAULT NULL,
`FIBERMAG_G` double DEFAULT NULL,
`FIBERMAG_R` double DEFAULT NULL,
`FIBERMAG_I` double DEFAULT NULL,
`FIBERMAG_Z` double DEFAULT NULL,
`LGM_TOT_P50` double DEFAULT NULL,
`SFR_TOT_P50` double DEFAULT NULL,
`W1MPRO` double DEFAULT NULL,
`W2MPRO` double DEFAULT NULL,
`W3MPRO` double DEFAULT NULL,
`W4MPRO` double DEFAULT NULL,
`W1RSEMI` double DEFAULT NULL,
`W2RSEMI` double DEFAULT NULL,
`W3RSEMI` double DEFAULT NULL,
`W4RSEMI` double DEFAULT NULL,
`W1SNR` double DEFAULT NULL,
`W2SNR` double DEFAULT NULL,
`W3SNR` double DEFAULT NULL,
`W4SNR` double DEFAULT NULL,
`SEARCH_ID` int(11) DEFAULT NULL,
`MATCHED_ID` bigint(11) DEFAULT NULL,
`NAME` varchar(255) DEFAULT NULL,
`num_of_images` int(11) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
# Dump of table atels
# ------------------------------------------------------------
DROP TABLE IF EXISTS `atels`;
CREATE TABLE `atels` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`atelid` bigint(20) NOT NULL,
`ateldate` datetime DEFAULT NULL,
`ra_orig` text COMMENT 'Original RA string in ATel',
`dec_orig` text COMMENT 'Original dec string in ATel',
`ra_str` text COMMENT 'Parsed RA string',
`dec_str` text COMMENT 'Parsed dec string',
`ra0` double DEFAULT NULL,
`dec0` double DEFAULT NULL,
`title` text,
`keywords` text,
`authors` text,
`datecreated` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`lastmodified` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
# Dump of table classifications
# ------------------------------------------------------------
DROP TABLE IF EXISTS `classifications`;
CREATE TABLE `classifications` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`name` text NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
# Dump of table contention
# ------------------------------------------------------------
DROP TABLE IF EXISTS `contention`;
CREATE TABLE `contention` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`starttime` datetime DEFAULT NULL,
`program_id` varchar(20) DEFAULT '',
`program_title` text,
`hoursfromnow` float DEFAULT NULL,
`pressure` float DEFAULT NULL,
`site` varchar(5) DEFAULT NULL,
`instrument` varchar(20) DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `starttime` (`starttime`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
# Dump of table datarequests
# ------------------------------------------------------------
DROP TABLE IF EXISTS `datarequests`;
CREATE TABLE `datarequests` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`targetid` bigint(11) DEFAULT NULL,
`type` char(11) DEFAULT NULL,
`userid` bigint(11) DEFAULT NULL,
`formats` char(20) DEFAULT 'fits',
`ids` text,
`maxfilesize` float DEFAULT '2000',
`status` varchar(11) DEFAULT 'new',
`datecreated` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
`lastmodified` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
# Dump of table dbsyncs
# ------------------------------------------------------------
DROP TABLE IF EXISTS `dbsyncs`;
CREATE TABLE `dbsyncs` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`origindb` varchar(100) NOT NULL,
`origintable` varchar(100) NOT NULL,
`originid` bigint(20) NOT NULL,
`destdb` varchar(100) NOT NULL,
`desttable` varchar(100) NOT NULL,
`destid` bigint(20) NOT NULL,
`datecreated` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
PRIMARY KEY (`id`),
KEY `datecreated` (`datecreated`),
KEY `originid` (`originid`),
KEY `destid` (`destid`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COMMENT='Syncing data to/from iPTF and others';
# Dump of table eseatide
# ------------------------------------------------------------
DROP TABLE IF EXISTS `eseatide`;
CREATE TABLE `eseatide` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`ra0` double DEFAULT NULL,
`dec0` double DEFAULT NULL,
`redshift` double DEFAULT NULL,
`source` varchar(30) DEFAULT '',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
# Dump of table favorites
# ------------------------------------------------------------
DROP TABLE IF EXISTS `favorites`;
CREATE TABLE `favorites` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`targetid` bigint(20) NOT NULL,
`userid` bigint(20) NOT NULL,
`favorited` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`unfavorited` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
# Dump of table glade
# ------------------------------------------------------------
DROP TABLE IF EXISTS `glade`;
CREATE TABLE `glade` (
`ra0` double DEFAULT NULL,
`dec0` double DEFAULT NULL,
`dist` double DEFAULT NULL,
`bmag` double DEFAULT NULL,
`bt_hyp` double DEFAULT NULL,
`e_bt_hyp` double DEFAULT NULL,
`it_hyp` double DEFAULT NULL,
`e_it_hyp` double DEFAULT NULL,
`modz_hyp` double DEFAULT NULL,
`mod0_hyp` double DEFAULT NULL,
`logd25_hyp` double DEFAULT NULL,
`e_logd25_hyp` double DEFAULT NULL,
`logr25_hyp` double DEFAULT NULL,
`e_logr25_hyp` double DEFAULT NULL,
`logdc_hyp` double DEFAULT NULL,
`pa_hyp` double DEFAULT NULL,
`btc_hyp` double DEFAULT NULL,
`itc_hyp` double DEFAULT NULL,
`ubtc_hyp` double DEFAULT NULL,
`bvtc_hyp` double DEFAULT NULL,
`jmag_2mass` double DEFAULT NULL,
`errjmag_2mass` double DEFAULT NULL,
`hmag_2mass` double DEFAULT NULL,
`errhmag_2mass` double DEFAULT NULL,
`kmag_2mass` double DEFAULT NULL,
`errkmag_2mass` double DEFAULT NULL,
`ab_ratio_2mass` double DEFAULT NULL,
`pa_in_kmag_2mass` double DEFAULT NULL,
`bmag_gwgc` double DEFAULT NULL,
`majdiam_gwgc` double DEFAULT NULL,
`errmd_gwgc` double DEFAULT NULL,
`mindiam_gwgc` double DEFAULT NULL,
`errmid_gwgc` double DEFAULT NULL,
`pa_gwgc` double DEFAULT NULL,
`dist_gwgc` double DEFAULT NULL,
`errdist_gwgc` double DEFAULT NULL,
`errbmag_gwgc` double DEFAULT NULL,
`kmag_2mpz` double DEFAULT NULL,
`errkmag_2mpz` double DEFAULT NULL,
`bmag_2mpz` double DEFAULT NULL,
`errbmag_2mpz` double DEFAULT NULL,
`errbmag_2_2mpz` double DEFAULT NULL,
`zspec_2mpz` double DEFAULT NULL,
`zphot_2mpz` double DEFAULT NULL,
`errzphot_2mpz` double DEFAULT NULL,
`errzphot_2_2mpz` double DEFAULT NULL,
`flag` double DEFAULT NULL,
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
PRIMARY KEY (`id`),
KEY `ra0` (`ra0`,`dec0`,`dist`,`bmag`),
KEY `dec0` (`dec0`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
# Dump of table glade_2
# ------------------------------------------------------------
DROP TABLE IF EXISTS `glade_2`;
CREATE TABLE `glade_2` (
`pgc` varchar(255) DEFAULT NULL,
`gwgc_name` varchar(255) DEFAULT NULL,
`hyperleda_name` varchar(255) DEFAULT NULL,
`2mass_name` varchar(255) DEFAULT NULL,
`sdss_dr12_name` varchar(255) DEFAULT NULL,
`flag1` char(2) DEFAULT NULL,
`ra0` double DEFAULT NULL,
`dec0` double DEFAULT NULL,
`dist` double DEFAULT NULL,
`dist_err` double DEFAULT NULL,
`z` double DEFAULT NULL,
`b` double DEFAULT NULL,
`b_err` double DEFAULT NULL,
`j` double DEFAULT NULL,
`j_err` double DEFAULT NULL,
`h` double DEFAULT NULL,
`h_err` double DEFAULT NULL,
`k` double DEFAULT NULL,
`k_err` double DEFAULT NULL,
`flag2` int(11) DEFAULT NULL,
`flag3` int(11) DEFAULT NULL,
`b_err_min` double DEFAULT NULL,
`b_err_max` double DEFAULT NULL,
`flag4` int(11) DEFAULT NULL,
`z_err_min` double DEFAULT NULL,
`z_err_max` double DEFAULT NULL,
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
PRIMARY KEY (`id`),
KEY `ra0` (`ra0`),
KEY `dec0` (`dec0`),
KEY `dist` (`dist`),
KEY `b` (`b`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
# Dump of table groups
# ------------------------------------------------------------
DROP TABLE IF EXISTS `groups`;
CREATE TABLE `groups` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`name` varchar(20) NOT NULL,
`description` text,
`idcode` bigint(20) NOT NULL,
`sharing` int(11) DEFAULT NULL,
`datecreated` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`lastmodified` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COMMENT='User groups';
# Dump of table headerdefaults
# ------------------------------------------------------------
DROP TABLE IF EXISTS `headerdefaults`;
CREATE TABLE `headerdefaults` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`tablename` varchar(20) DEFAULT NULL,
`columnname` varchar(20) DEFAULT NULL,
`keywords` text,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
# Dump of table hitslogger
# ------------------------------------------------------------
DROP TABLE IF EXISTS `hitslogger`;
CREATE TABLE `hitslogger` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`targetid` bigint(20) NOT NULL,
`lastmodified` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COMMENT='Logging times that objects are viewed for most popular stars';
# Dump of table iaunames
# ------------------------------------------------------------
DROP TABLE IF EXISTS `iaunames`;
CREATE TABLE `iaunames` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`name` text NOT NULL,
`ra0` double DEFAULT NULL,
`dec0` double DEFAULT NULL,
`type` text,
`discoverydate` datetime DEFAULT NULL,
`discoverymag` double DEFAULT NULL,
`hostname` text,
`hostra` double DEFAULT NULL,
`hostdec` double DEFAULT NULL,
`offsetew` text,
`offsetns` text,
`discoveryref` text,
`positionref` text,
`discoverer` text,
`datecreated` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`lastmodified` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
# Dump of table instruments
# ------------------------------------------------------------
DROP TABLE IF EXISTS `instruments`;
CREATE TABLE `instruments` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`name` text NOT NULL,
`type` text,
`webpage` text,
`datecreated` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`lastmodified` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
# Dump of table interests
# ------------------------------------------------------------
DROP TABLE IF EXISTS `interests`;
CREATE TABLE `interests` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`targetid` bigint(20) NOT NULL,
`userid` bigint(20) NOT NULL,
`interested` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`uninterested` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
# Dump of table lvc_galaxies
# ------------------------------------------------------------
DROP TABLE IF EXISTS `lvc_galaxies`;
CREATE TABLE `lvc_galaxies` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`voeventid` bigint(20) DEFAULT NULL,
`glade_ver` double DEFAULT NULL,
`gladeid` bigint(20) DEFAULT NULL,
`score` double DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
# Dump of table lvc_triggers
# ------------------------------------------------------------
DROP TABLE IF EXISTS `lvc_triggers`;
CREATE TABLE `lvc_triggers` (
`id` bigint(11) unsigned NOT NULL AUTO_INCREMENT,
`voeventid` bigint(11) DEFAULT NULL,
`gladeid` bigint(20) DEFAULT NULL,
`obsrequestsid` bigint(11) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
# Dump of table notes
# ------------------------------------------------------------
DROP TABLE IF EXISTS `notes`;
CREATE TABLE `notes` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`targetid` bigint(20) NOT NULL,
`note` text NOT NULL,
`tablename` text COMMENT 'Table to which the comment refers',
`tableid` bigint(20) DEFAULT NULL COMMENT 'ID in the table to which the comment refers',
`posttime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`userid` bigint(20) NOT NULL,
`groupidcode` bigint(20) DEFAULT NULL COMMENT 'Which groups can see this',
`datecreated` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`lastmodified` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COMMENT='Notes on targets, images, spectra, atels, etc.';
# Dump of table obslog
# ------------------------------------------------------------
DROP TABLE IF EXISTS `obslog`;
CREATE TABLE `obslog` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`user` varchar(20) DEFAULT NULL,
`targetid` bigint(20) DEFAULT NULL,
`triggerjd` double DEFAULT NULL,
`windowstart` double DEFAULT NULL,
`windowend` double DEFAULT NULL,
`filters` varchar(30) DEFAULT NULL,
`exptime` varchar(39) DEFAULT NULL,
`numexp` varchar(30) DEFAULT NULL,
`proposal` varchar(30) DEFAULT NULL,
`site` varchar(10) DEFAULT NULL,
`instrument` varchar(30) DEFAULT NULL,
`sky` float DEFAULT '9999',
`seeing` float DEFAULT '9999',
`airmass` float DEFAULT '9999',
`slit` varchar(15) DEFAULT '9999',
`acqmode` varchar(20) DEFAULT NULL,
`priority` varchar(50) DEFAULT NULL,
`ipp` float DEFAULT NULL,
`reqnumber` int(11) DEFAULT NULL,
`tracknumber` int(11) DEFAULT NULL,
`requestsid` bigint(20) DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `obslog_targid_idx` (`targetid`),
KEY `tracknumber` (`tracknumber`),
KEY `requestsid` (`requestsid`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
# Dump of table obsrequests
# ------------------------------------------------------------
DROP TABLE IF EXISTS `obsrequests`;
CREATE TABLE `obsrequests` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`targetid` bigint(20) NOT NULL,
`sequencestart` timestamp NULL DEFAULT NULL,
`sequenceend` timestamp NULL DEFAULT NULL,
`userstart` varchar(20) NOT NULL DEFAULT '',
`userend` varchar(20) DEFAULT NULL,
`cadence` double DEFAULT NULL COMMENT 'Cadence in days',
`window` double DEFAULT NULL COMMENT 'Window length in days',
`filters` varchar(100) DEFAULT NULL,
`exptimes` varchar(100) DEFAULT NULL,
`expnums` varchar(100) DEFAULT NULL,
`blocknums` varchar(100) DEFAULT NULL,
`proposalid` text,
`ipp` float DEFAULT '1',
`site` varchar(10) DEFAULT NULL,
`instrument` varchar(20) DEFAULT NULL,
`airmass` float DEFAULT '9999' COMMENT 'Requested airmass limit',
`moondistlimit` float DEFAULT NULL,
`slit` float DEFAULT '9999',
`acqradius` double DEFAULT '0',
`guidermode` varchar(50) DEFAULT NULL,
`guiderexptime` int(11) DEFAULT '10',
`priority` varchar(50) DEFAULT NULL,
`approved` int(11) DEFAULT '0',
`nextreminder` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`groupidcode` bigint(20) DEFAULT NULL COMMENT 'Which groups can see this',
`dismissed` int(11) NOT NULL DEFAULT '0',
`autostop` int(11) NOT NULL DEFAULT '0',
`datecreated` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`lastmodified` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
PRIMARY KEY (`id`),
UNIQUE KEY `combo` (`targetid`,`sequenceend`,`cadence`,`filters`,`exptimes`,`expnums`,`blocknums`,`site`,`instrument`,`airmass`,`slit`,`priority`,`groupidcode`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COMMENT='Requested observations';
# Dump of table obsrequests_tags
# ------------------------------------------------------------
DROP TABLE IF EXISTS `obsrequests_tags`;
CREATE TABLE `obsrequests_tags` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`tagid` bigint(20) NOT NULL,
`requestsid` bigint(20) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COMMENT='Connecting observations requests to tags';
# Dump of table papers
# ------------------------------------------------------------
DROP TABLE IF EXISTS `papers`;
CREATE TABLE `papers` (
`id` bigint(11) unsigned NOT NULL AUTO_INCREMENT,
`targetid` bigint(11) NOT NULL,
`reference` text,
`status` text,
`contents` text,
`datecreated` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
`lastmodified` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
# Dump of table permissionlog
# ------------------------------------------------------------
DROP TABLE IF EXISTS `permissionlog`;
CREATE TABLE `permissionlog` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`targetid` bigint(20) DEFAULT NULL,
`groupname` bigint(20) DEFAULT NULL,
`jd` float DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
# Dump of table phot_deprecated
# ------------------------------------------------------------
DROP TABLE IF EXISTS `phot_deprecated`;
CREATE TABLE `phot_deprecated` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`targetid` bigint(20) NOT NULL,
`photlcoid` bigint(20) DEFAULT NULL,
`telescopeid` bigint(20) DEFAULT NULL,
`instrumentid` bigint(20) DEFAULT NULL,
`exptime` float DEFAULT NULL,
`mjd` double DEFAULT NULL,
`mag` double DEFAULT NULL,
`dmag` double DEFAULT NULL,
`limmag` double DEFAULT NULL,
`filter` text,
`issub` int(11) DEFAULT NULL COMMENT '0: Not template subtracted, 1: Template subtracted',
`refsys` text,
`observer` text,
`reducer` text,
`pipeline` text,
`groupidcode` bigint(20) DEFAULT NULL,
`datecreated` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`lastmodified` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
PRIMARY KEY (`id`),
KEY `targetid` (`targetid`,`photlcoid`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COMMENT='All reduced photometry (including external sources)';
# Dump of table photlco
# ------------------------------------------------------------
DROP TABLE IF EXISTS `photlco`;
CREATE TABLE `photlco` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`targetid` bigint(20) NOT NULL,
`objname` text COMMENT 'Object name used in the header',
`dayobs` text COMMENT 'Date used to identify the night',
`dateobs` date DEFAULT NULL COMMENT 'Date of observation',
`ut` time DEFAULT NULL COMMENT 'UT time of observation',
`mjd` double DEFAULT NULL COMMENT 'MJD of observation',
`exptime` float DEFAULT NULL,
`filter` varchar(10) DEFAULT NULL,
`telescopeid` bigint(20) DEFAULT NULL,
`instrumentid` bigint(20) DEFAULT NULL,
`telescope` text,
`instrument` text,
`mag` double DEFAULT '9999',
`dmag` double DEFAULT '9999',
`airmass` float DEFAULT NULL,
`wcs` float DEFAULT NULL COMMENT '0: Good solution, >=1: Error in solution',
`psf` varchar(100) DEFAULT 'X' COMMENT 'Fits file containing the PSF',
`apmag` double DEFAULT '9999' COMMENT 'Aperture photometry magnitude (instrumental)',
`psfx` double DEFAULT '9999' COMMENT 'x-position of object center in image',
`psfy` double DEFAULT '9999' COMMENT 'y-position of object center in image',
`psfmag` double DEFAULT '9999' COMMENT 'PSF magnitude (instrumental)',
`psfdmag` double DEFAULT '9999' COMMENT 'Error in psfmag',
`z1` float DEFAULT '9999' COMMENT 'Zeropoint using zcol1',
`z2` float DEFAULT '9999' COMMENT 'Zeropoint using zcol2',
`zn` float DEFAULT '9999' COMMENT 'Zeropoint for the natural system',
`c1` float DEFAULT '9999' COMMENT 'Colorterm for z1',
`c2` float DEFAULT '9999' COMMENT 'Colorterm for z2',
`znnum` float DEFAULT NULL COMMENT 'Number of stars used for zn',
`dz1` float DEFAULT '9999' COMMENT 'Error for z1',
`dz2` float DEFAULT '9999' COMMENT 'Error for z2',
`dzn` float DEFAULT NULL COMMENT 'Error for zn',
`dc1` float DEFAULT '9999' COMMENT 'Error for c1',
`dc2` float DEFAULT '9999' COMMENT 'Error for c2',
`zcol1` varchar(2) DEFAULT NULL COMMENT 'Color for z1',
`zcol2` varchar(2) DEFAULT NULL COMMENT 'Color for z2',
`quality` tinyint(1) DEFAULT '127' COMMENT '0: Bad, 1: Good',
`zcat` varchar(100) DEFAULT 'X' COMMENT 'Catalog file used to determine the zeropoint',
`abscat` varchar(100) DEFAULT 'X' COMMENT 'Catalog file used to calibrate mag',
`fwhm` float DEFAULT '9999' COMMENT 'Units: pixels',
`magtype` int(11) DEFAULT '1' COMMENT '-1: Non-detection limit, 1: None, 2: PSF fitting, 3: Aperture photometry',
`ra0` double DEFAULT '9999' COMMENT 'RA in the image header',
`dec0` double DEFAULT '9999' COMMENT 'Dec in the image header',
`tracknumber` int(11) DEFAULT NULL,
`filename` varchar(100) DEFAULT NULL COMMENT 'Image fits file',
`difftype` tinyint(4) DEFAULT NULL COMMENT 'Type of difference algorithm used (0: Hotpants, 1: Optimal)',
`filepath` text COMMENT 'Path to image file',
`filetype` tinyint(4) DEFAULT NULL COMMENT 'standard (1), merged (2), difference image (3), template (4)',
`groupidcode` bigint(20) DEFAULT NULL COMMENT 'Which groups can see this',
`datecreated` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`lastmodified` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
`apflux` double DEFAULT '9999' COMMENT 'Aperture flux',
`dapflux` double DEFAULT '9999' COMMENT 'Aperture flux error',
`dapmag` double DEFAULT '9999' COMMENT 'Aperture magnitude error',
`limmag` double DEFAULT NULL COMMENT 'Three sigma limiting magnitude of the image as a whole',
`lastunpacked` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
`apercorr` float DEFAULT NULL COMMENT 'Aperture correction to correct psfmag to apmag',
PRIMARY KEY (`id`),
UNIQUE KEY `filename` (`filename`),
KEY `targetid` (`targetid`),
KEY `telescopeid` (`telescopeid`),
KEY `instrumentid` (`instrumentid`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COMMENT='Reduced LCOGT photometry';
# Dump of table photlcoraw
# ------------------------------------------------------------
DROP TABLE IF EXISTS `photlcoraw`;
CREATE TABLE `photlcoraw` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`targetid` bigint(20) NOT NULL,
`objname` text COMMENT 'Object name used in the header',
`dayobs` text COMMENT 'Date used to identify the night',
`dateobs` date DEFAULT NULL COMMENT 'Date of observation',
`ut` time DEFAULT NULL COMMENT 'UT time of observation',
`mjd` double DEFAULT NULL COMMENT 'MJD of observation',
`exptime` float DEFAULT NULL,
`filter` varchar(10) DEFAULT NULL,
`telescopeid` bigint(20) DEFAULT NULL,
`instrumentid` bigint(20) DEFAULT NULL,
`telescope` text,
`instrument` text,
`airmass` float DEFAULT NULL,
`ra0` double DEFAULT '9999' COMMENT 'RA in the image header',
`dec0` double DEFAULT '9999' COMMENT 'Dec in the image header',
`cat_ra` double DEFAULT NULL,
`cat_dec` double DEFAULT NULL,
`temperature` float DEFAULT NULL,
`propid` text,
`obid` int(11) DEFAULT NULL,
`rotskypa` float DEFAULT NULL,
`userid` varchar(30) DEFAULT NULL,
`fwhm` float DEFAULT '9999',
`tracknumber` int(11) DEFAULT NULL,
`filename` varchar(100) DEFAULT NULL COMMENT 'Image fits file',
`filepath` text COMMENT 'Path to image file',
`groupidcode` bigint(20) DEFAULT NULL COMMENT 'Which groups can see this',
`datecreated` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`lastmodified` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
`moonfrac` float DEFAULT NULL,
`moondist` float DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `filename` (`filename`),
KEY `targetid` (`targetid`),
KEY `tracknumber` (`tracknumber`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COMMENT='Raw LCOGT photometry';
# Dump of table photpairing
# ------------------------------------------------------------
DROP TABLE IF EXISTS `photpairing`;
CREATE TABLE `photpairing` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`namein` text COMMENT 'Filename of single image',
`tablein` text COMMENT 'Tablename of single image',
`nameout` text COMMENT 'Filename of combined/subtracted image',
`tableout` text COMMENT 'Tablename of combined/subtracted image',
`nametemplate` text COMMENT 'Filename of template image',
`tabletemplate` text COMMENT 'Tablename of template image',
`datecreated` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`lastmodified` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COMMENT='Connecting combined / subtracted images to their original fi';
# Dump of table programs
# ------------------------------------------------------------
DROP TABLE IF EXISTS `programs`;
CREATE TABLE `programs` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`idcode` varchar(20) NOT NULL DEFAULT '',
`fullname` varchar(200) DEFAULT '',
`shortname` varchar(50) DEFAULT NULL,
`type` varchar(20) DEFAULT NULL,
`username` varchar(50) DEFAULT NULL,
`userpw` varchar(50) DEFAULT NULL,
`groupidcode` bigint(20) DEFAULT NULL,
`ingest` tinyint(1) DEFAULT NULL,
`log_used_time` tinyint(1) DEFAULT '0',
`programstart` timestamp NULL DEFAULT NULL,
`programend` timestamp NULL DEFAULT NULL,
`timecritical_idcode` varchar(20) DEFAULT NULL,
`replacedwith` int(11) DEFAULT NULL,
`datecreated` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`lastmodified` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (`id`),
UNIQUE KEY `idcode` (`idcode`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
# Dump of table psns
# ------------------------------------------------------------
DROP TABLE IF EXISTS `psns`;
CREATE TABLE `psns` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`name` varchar(50) DEFAULT NULL,
`ra` float DEFAULT NULL,
`dec` float DEFAULT NULL,
`discodate` datetime DEFAULT NULL,
`discomag` float DEFAULT NULL,
`discofilter` int(11) DEFAULT NULL,
`offsete` float DEFAULT NULL,
`offsetn` float DEFAULT NULL,
`galaxy` varchar(50) DEFAULT NULL,
`discoverer` char(11) DEFAULT NULL,
`arc` char(11) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
# Dump of table reference_status
# ------------------------------------------------------------
DROP TABLE IF EXISTS `reference_status`;
CREATE TABLE `reference_status` (
`id` bigint(11) unsigned NOT NULL AUTO_INCREMENT,
`targetid` bigint(11) DEFAULT NULL,
`status` varchar(100) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
# Dump of table scheduling_run
# ------------------------------------------------------------
DROP TABLE IF EXISTS `scheduling_run`;
CREATE TABLE `scheduling_run` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`last_successful_run` datetime DEFAULT NULL,
`failure_alert_sent` int(11) NOT NULL DEFAULT '0',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
# Dump of table schedulinglog
# ------------------------------------------------------------
DROP TABLE IF EXISTS `schedulinglog`;
CREATE TABLE `schedulinglog` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`runstart` timestamp NULL DEFAULT NULL,
`sequenceid` bigint(20) NOT NULL,
`action` text NOT NULL,
`datecreated` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
`notvisible` int(11) DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `datecreated_schedlog_index` (`datecreated`),
KEY `notvisible` (`notvisible`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COMMENT='Observation Scheduling Log';
# Dump of table spec
# ------------------------------------------------------------
DROP TABLE IF EXISTS `spec`;
CREATE TABLE `spec` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`targetid` bigint(20) NOT NULL,
`objname` varchar(50) NOT NULL,
`dayobs` text COMMENT 'Date used to identify the night',
`dateobs` date DEFAULT NULL COMMENT 'Date of observation',
`ut` time DEFAULT NULL COMMENT 'UT time of observation',
`mjd` double DEFAULT NULL COMMENT 'MJD of observation',
`exptime` float DEFAULT NULL,
`filter` varchar(10) DEFAULT NULL,
`grism` varchar(20) DEFAULT NULL,
`telescopeid` bigint(20) DEFAULT NULL,
`instrumentid` bigint(20) DEFAULT NULL,
`telescope` text,
`instrument` text,
`airmass` float DEFAULT NULL,
`slit` varchar(20) DEFAULT NULL,
`original` varchar(100) DEFAULT NULL COMMENT 'Raw data filename',
`ra0` double DEFAULT '9999' COMMENT 'RA in the image header',
`dec0` double DEFAULT '9999' COMMENT 'Dec in the image header',
`observer` text,
`reducer` text,
`filename` varchar(100) DEFAULT NULL COMMENT 'Spectrum fits file',
`filepath` text COMMENT 'Path to image file',
`groupidcode` bigint(20) DEFAULT NULL COMMENT 'Which groups can see this',
`datecreated` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`lastmodified` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
`uploadedby` int(11) DEFAULT '0',
`deleted` int(11) NOT NULL DEFAULT '0',
PRIMARY KEY (`id`),
UNIQUE KEY `filename` (`filename`),
KEY `objname` (`objname`),
KEY `original` (`original`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COMMENT='All reduced spectroscopy (including external sources)';
# Dump of table speclcoguider
# ------------------------------------------------------------
DROP TABLE IF EXISTS `speclcoguider`;
CREATE TABLE `speclcoguider` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`tracknumber` int(11) DEFAULT NULL,
`blockid` int(11) DEFAULT NULL,
`link` text,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
# Dump of table speclcoraw
# ------------------------------------------------------------
DROP TABLE IF EXISTS `speclcoraw`;
CREATE TABLE `speclcoraw` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`targetid` bigint(20) NOT NULL,
`objname` varchar(50) DEFAULT NULL,
`dayobs` text COMMENT 'Date used to identify the night',
`dateobs` date DEFAULT NULL COMMENT 'Date of observation',
`ut` time DEFAULT NULL COMMENT 'UT time of observation',
`mjd` double DEFAULT NULL COMMENT 'MJD of observation',
`exptime` float DEFAULT NULL,
`filter` varchar(10) DEFAULT NULL,
`grism` varchar(20) DEFAULT NULL,
`telescopeid` bigint(20) DEFAULT NULL,
`instrumentid` bigint(20) DEFAULT NULL,
`telescope` text,
`instrument` text,
`type` varchar(20) DEFAULT NULL,
`airmass` float DEFAULT NULL,
`slit` varchar(20) DEFAULT NULL,
`lamp` varchar(20) DEFAULT NULL,
`ra0` double DEFAULT '9999' COMMENT 'RA in the image header',
`dec0` double DEFAULT '9999' COMMENT 'Dec in the image header',
`cat_ra` double DEFAULT NULL,
`cat_dec` double DEFAULT NULL,
`temperature` float DEFAULT NULL,
`propid` varchar(30) DEFAULT NULL,
`obid` int(11) DEFAULT NULL,
`rotskypa` float DEFAULT NULL,
`observer` varchar(30) DEFAULT NULL,
`userid` varchar(30) DEFAULT NULL,
`fwhm` float DEFAULT '9999',
`tracknumber` int(11) DEFAULT NULL,
`filename` varchar(100) DEFAULT NULL COMMENT 'Spectrum fits file',
`filepath` text COMMENT 'Path to image file',
`groupidcode` bigint(20) DEFAULT NULL COMMENT 'Which groups can see this',
`markedasbad` tinyint(1) DEFAULT '0',
`markedasbad_by` varchar(50) DEFAULT NULL,
`markedasbad_because` text,
`datecreated` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`lastmodified` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
PRIMARY KEY (`id`),
UNIQUE KEY `filename` (`filename`),
KEY `objname` (`objname`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COMMENT='Raw LCOGT spectroscopy';
# Dump of table tags
# ------------------------------------------------------------
DROP TABLE IF EXISTS `tags`;