Blame view

src/pyrosapp/migrations/0001_initial.py 29.6 KB
a958bda2   Etienne Pallier   ignore
1
# -*- coding: utf-8 -*-
94082e77   haribo   Date: 03/06/2016
2
# Generated by Django 1.9.4 on 2016-06-03 11:31
a958bda2   Etienne Pallier   ignore
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
from __future__ import unicode_literals

from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion


class Migration(migrations.Migration):

    initial = True

    dependencies = [
        migrations.swappable_dependency(settings.AUTH_USER_MODEL),
    ]

    operations = [
        migrations.CreateModel(
            name='Album',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('name', models.CharField(blank=True, max_length=45, null=True)),
                ('desc', models.TextField(blank=True, null=True)),
58fb93c1   Etienne Pallier   delete migrations...
25
26
                ('created', models.DateTimeField(auto_now_add=True, null=True)),
                ('updated', models.DateTimeField(auto_now=True, null=True)),
a958bda2   Etienne Pallier   ignore
27
28
            ],
            options={
58fb93c1   Etienne Pallier   delete migrations...
29
                'db_table': 'album',
94082e77   haribo   Date: 03/06/2016
30
                'managed': True,
a958bda2   Etienne Pallier   ignore
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
            },
        ),
        migrations.CreateModel(
            name='Alert',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('voevent_xml', models.TextField(blank=True, null=True)),
                ('type', models.CharField(blank=True, max_length=45, null=True)),
                ('client', models.CharField(blank=True, max_length=45, null=True)),
                ('burst_jd', models.CharField(blank=True, max_length=45, null=True)),
                ('burst_ra', models.CharField(blank=True, max_length=45, null=True)),
                ('burst_dec', models.CharField(blank=True, max_length=45, null=True)),
                ('equinox', models.CharField(blank=True, max_length=45, null=True)),
                ('jd_pkt', models.IntegerField(blank=True, null=True)),
                ('jd_send', models.IntegerField(blank=True, null=True)),
                ('jd_received', models.IntegerField(blank=True, null=True)),
                ('trigger_instrum', models.CharField(blank=True, max_length=45, null=True)),
                ('trigger_num', models.CharField(blank=True, max_length=45, null=True)),
                ('grb_error', models.CharField(blank=True, max_length=45, null=True)),
58fb93c1   Etienne Pallier   delete migrations...
50
                ('def_not_grb', models.BooleanField(default=False)),
a958bda2   Etienne Pallier   ignore
51
52
53
54
55
                ('editor', models.CharField(blank=True, max_length=45, null=True)),
                ('flag', models.CharField(blank=True, max_length=45, null=True)),
                ('idgcn_notice', models.IntegerField(blank=True, null=True)),
            ],
            options={
58fb93c1   Etienne Pallier   delete migrations...
56
                'db_table': 'alert',
94082e77   haribo   Date: 03/06/2016
57
                'managed': True,
a958bda2   Etienne Pallier   ignore
58
59
60
61
62
63
64
65
66
67
68
            },
        ),
        migrations.CreateModel(
            name='Country',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('name', models.CharField(blank=True, max_length=45, null=True)),
                ('desc', models.TextField(blank=True, null=True)),
                ('quota', models.FloatField(blank=True, null=True)),
            ],
            options={
58fb93c1   Etienne Pallier   delete migrations...
69
70
                'db_table': 'country',
                'verbose_name_plural': 'Countries',
94082e77   haribo   Date: 03/06/2016
71
                'managed': True,
a958bda2   Etienne Pallier   ignore
72
73
74
75
76
77
78
79
80
81
82
            },
        ),
        migrations.CreateModel(
            name='Detector',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('status', models.CharField(blank=True, max_length=7, null=True)),
                ('nb_photo_x', models.IntegerField(blank=True, null=True)),
                ('nb_photo_y', models.IntegerField(blank=True, null=True)),
                ('photo_size_x', models.IntegerField(blank=True, null=True)),
                ('photo_size_y', models.IntegerField(blank=True, null=True)),
58fb93c1   Etienne Pallier   delete migrations...
83
                ('has_shutter', models.BooleanField(default=False)),
a958bda2   Etienne Pallier   ignore
84
85
86
87
88
89
90
91
92
93
                ('equivalent_foc_len', models.CharField(blank=True, max_length=45, null=True)),
                ('acq_start', models.DateTimeField(blank=True, null=True)),
                ('acq_stop', models.DateTimeField(blank=True, null=True)),
                ('check_temp', models.FloatField(blank=True, null=True)),
                ('gain', models.FloatField(blank=True, null=True)),
                ('readout_noise', models.FloatField(blank=True, null=True)),
                ('readout_time', models.FloatField(blank=True, null=True)),
                ('idcam_readout_mode', models.IntegerField(blank=True, null=True)),
            ],
            options={
58fb93c1   Etienne Pallier   delete migrations...
94
                'db_table': 'detector',
94082e77   haribo   Date: 03/06/2016
95
                'managed': True,
a958bda2   Etienne Pallier   ignore
96
97
98
99
100
101
102
103
            },
        ),
        migrations.CreateModel(
            name='Device',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('name', models.CharField(blank=True, max_length=45, null=True)),
                ('desc', models.TextField(blank=True, null=True)),
58fb93c1   Etienne Pallier   delete migrations...
104
105
106
                ('created', models.DateTimeField(auto_now_add=True, null=True)),
                ('updated', models.DateTimeField(auto_now=True, null=True)),
                ('is_online', models.BooleanField(default=False)),
a958bda2   Etienne Pallier   ignore
107
108
109
110
                ('status', models.CharField(blank=True, max_length=11, null=True)),
                ('maintenance_date', models.DateTimeField(blank=True, null=True)),
            ],
            options={
58fb93c1   Etienne Pallier   delete migrations...
111
                'db_table': 'device',
94082e77   haribo   Date: 03/06/2016
112
                'managed': True,
a958bda2   Etienne Pallier   ignore
113
114
115
116
117
118
119
120
121
122
123
124
            },
        ),
        migrations.CreateModel(
            name='Filter',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('category', models.CharField(blank=True, max_length=1, null=True)),
                ('transmission_curve_doc', models.CharField(blank=True, max_length=45, null=True)),
                ('detector', models.ForeignKey(on_delete=django.db.models.deletion.DO_NOTHING, related_name='filters', to='pyrosapp.Detector')),
                ('device', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, to='pyrosapp.Device')),
            ],
            options={
58fb93c1   Etienne Pallier   delete migrations...
125
                'db_table': 'filter',
94082e77   haribo   Date: 03/06/2016
126
                'managed': True,
a958bda2   Etienne Pallier   ignore
127
128
129
130
131
132
133
134
            },
        ),
        migrations.CreateModel(
            name='Image',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('name', models.CharField(blank=True, max_length=45, null=True)),
                ('desc', models.TextField(blank=True, null=True)),
58fb93c1   Etienne Pallier   delete migrations...
135
136
                ('created', models.DateTimeField(auto_now_add=True, null=True)),
                ('updated', models.DateTimeField(auto_now=True, null=True)),
a958bda2   Etienne Pallier   ignore
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
                ('date_from_gps', models.CharField(blank=True, max_length=45, null=True)),
                ('level', models.IntegerField(blank=True, null=True)),
                ('type', models.CharField(blank=True, max_length=5, null=True)),
                ('quality', models.CharField(blank=True, max_length=45, null=True)),
                ('flaggps', models.CharField(blank=True, max_length=45, null=True)),
                ('exposure', models.CharField(blank=True, max_length=45, null=True)),
                ('tempext', models.CharField(blank=True, max_length=45, null=True)),
                ('pressure', models.CharField(blank=True, max_length=45, null=True)),
                ('humidext', models.CharField(blank=True, max_length=45, null=True)),
                ('wind', models.CharField(blank=True, max_length=45, null=True)),
                ('wind_dir', models.CharField(blank=True, max_length=45, null=True)),
                ('dwnimg', models.CharField(blank=True, max_length=45, null=True)),
                ('dwncata', models.CharField(blank=True, max_length=45, null=True)),
                ('dwn', models.CharField(blank=True, max_length=45, null=True)),
                ('level0_fits_name', models.CharField(blank=True, max_length=45, null=True)),
                ('level1a_fits_name', models.CharField(blank=True, max_length=45, null=True)),
                ('level1b_fits_name', models.CharField(blank=True, max_length=45, null=True)),
            ],
            options={
58fb93c1   Etienne Pallier   delete migrations...
156
                'db_table': 'image',
94082e77   haribo   Date: 03/06/2016
157
158
159
160
161
162
163
164
165
166
167
168
169
170
                'managed': True,
            },
        ),
        migrations.CreateModel(
            name='Log',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('agent', models.CharField(blank=True, max_length=45, null=True)),
                ('created', models.DateTimeField(auto_now_add=True, null=True)),
                ('message', models.TextField(blank=True, null=True)),
            ],
            options={
                'db_table': 'log',
                'managed': True,
a958bda2   Etienne Pallier   ignore
171
172
173
174
175
176
177
178
            },
        ),
        migrations.CreateModel(
            name='NrtAnalysis',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('name', models.CharField(blank=True, max_length=45, null=True)),
                ('desc', models.TextField(blank=True, null=True)),
58fb93c1   Etienne Pallier   delete migrations...
179
180
                ('created', models.DateTimeField(auto_now_add=True, null=True)),
                ('updated', models.DateTimeField(auto_now=True, null=True)),
a958bda2   Etienne Pallier   ignore
181
182
183
                ('analysis', models.TextField(blank=True, null=True)),
            ],
            options={
58fb93c1   Etienne Pallier   delete migrations...
184
185
                'db_table': 'nrtanalysis',
                'verbose_name_plural': 'Nrt analyzes',
94082e77   haribo   Date: 03/06/2016
186
                'managed': True,
a958bda2   Etienne Pallier   ignore
187
188
189
190
191
192
193
194
            },
        ),
        migrations.CreateModel(
            name='Plan',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('name', models.CharField(blank=True, max_length=45, null=True)),
                ('desc', models.CharField(blank=True, max_length=45, null=True)),
58fb93c1   Etienne Pallier   delete migrations...
195
196
                ('created', models.DateTimeField(auto_now_add=True, null=True)),
                ('updated', models.DateTimeField(auto_now=True, null=True)),
a958bda2   Etienne Pallier   ignore
197
198
199
200
                ('duration', models.FloatField(blank=True, null=True)),
                ('position', models.CharField(blank=True, max_length=45, null=True)),
                ('exposure_time', models.FloatField(blank=True, null=True)),
                ('nb_images', models.IntegerField(blank=True, null=True)),
58fb93c1   Etienne Pallier   delete migrations...
201
                ('dithering', models.BooleanField(default=False)),
a958bda2   Etienne Pallier   ignore
202
203
204
205
                ('album', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='plans', to='pyrosapp.Album')),
                ('filter', models.ForeignKey(on_delete=django.db.models.deletion.DO_NOTHING, related_name='plans', to='pyrosapp.Filter')),
            ],
            options={
58fb93c1   Etienne Pallier   delete migrations...
206
                'db_table': 'plan',
94082e77   haribo   Date: 03/06/2016
207
                'managed': True,
a958bda2   Etienne Pallier   ignore
208
209
210
211
212
213
214
            },
        ),
        migrations.CreateModel(
            name='PyrosUser',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('desc', models.TextField(blank=True, null=True)),
58fb93c1   Etienne Pallier   delete migrations...
215
216
                ('created', models.DateTimeField(auto_now_add=True, null=True)),
                ('updated', models.DateTimeField(auto_now=True, null=True)),
94082e77   haribo   Date: 03/06/2016
217
218
219
                ('tel', models.CharField(blank=True, max_length=45, null=True)),
                ('address', models.TextField(blank=True, max_length=100, null=True)),
                ('laboratory', models.CharField(blank=True, max_length=45, null=True)),
a958bda2   Etienne Pallier   ignore
220
221
222
223
224
225
226
227
228
229
230
                ('last_connect', models.DateTimeField(blank=True, null=True)),
                ('cur_connect', models.DateTimeField(blank=True, null=True)),
                ('putvalid_beg', models.DateTimeField(blank=True, null=True)),
                ('putvalid_end', models.DateTimeField(blank=True, null=True)),
                ('acqvalid_beg', models.CharField(blank=True, max_length=45, null=True)),
                ('acqvalid_end', models.CharField(blank=True, max_length=45, null=True)),
                ('quota', models.FloatField(blank=True, null=True)),
                ('quota_rea', models.FloatField(blank=True, null=True)),
                ('u_priority', models.IntegerField(blank=True, null=True)),
                ('p_priority', models.IntegerField(blank=True, null=True)),
                ('dir_level', models.IntegerField(blank=True, null=True)),
58fb93c1   Etienne Pallier   delete migrations...
231
                ('can_del_void_req', models.BooleanField(default=False)),
a958bda2   Etienne Pallier   ignore
232
233
234
235
                ('country', models.ForeignKey(on_delete=django.db.models.deletion.DO_NOTHING, related_name='pyros_users', to='pyrosapp.Country')),
                ('user', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
            ],
            options={
58fb93c1   Etienne Pallier   delete migrations...
236
                'db_table': 'pyros_user',
94082e77   haribo   Date: 03/06/2016
237
                'managed': True,
a958bda2   Etienne Pallier   ignore
238
239
240
241
242
243
244
245
            },
        ),
        migrations.CreateModel(
            name='Request',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('name', models.CharField(blank=True, max_length=45, null=True)),
                ('desc', models.TextField(blank=True, null=True)),
58fb93c1   Etienne Pallier   delete migrations...
246
247
248
                ('created', models.DateTimeField(auto_now_add=True, null=True)),
                ('updated', models.DateTimeField(auto_now=True, null=True)),
                ('is_alert', models.BooleanField(default=False)),
a958bda2   Etienne Pallier   ignore
249
250
251
252
                ('type', models.CharField(blank=True, max_length=8, null=True)),
                ('status', models.CharField(blank=True, max_length=10, null=True)),
                ('target_or_theme', models.CharField(blank=True, max_length=45, null=True)),
                ('priority', models.IntegerField(blank=True, null=True)),
58fb93c1   Etienne Pallier   delete migrations...
253
                ('autodeposit', models.BooleanField(default=False)),
a958bda2   Etienne Pallier   ignore
254
255
256
257
258
                ('checkpoint', models.CharField(blank=True, max_length=45, null=True)),
                ('flag', models.CharField(blank=True, max_length=45, null=True)),
                ('pyros_user', models.ForeignKey(on_delete=django.db.models.deletion.DO_NOTHING, related_name='requests', to='pyrosapp.PyrosUser')),
            ],
            options={
58fb93c1   Etienne Pallier   delete migrations...
259
                'db_table': 'request',
94082e77   haribo   Date: 03/06/2016
260
                'managed': True,
a958bda2   Etienne Pallier   ignore
261
262
263
264
265
266
            },
        ),
        migrations.CreateModel(
            name='Schedule',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
58fb93c1   Etienne Pallier   delete migrations...
267
                ('created', models.DateTimeField(auto_now_add=True, null=True)),
94082e77   haribo   Date: 03/06/2016
268
269
270
                ('plan_night_start', models.DecimalField(decimal_places=8, default=0.0, max_digits=15)),
                ('plan_end', models.DecimalField(decimal_places=8, default=0.0, max_digits=15)),
                ('plan_start', models.DecimalField(decimal_places=8, default=0.0, max_digits=15)),
a958bda2   Etienne Pallier   ignore
271
272
273
                ('flag', models.CharField(blank=True, max_length=45, null=True)),
            ],
            options={
58fb93c1   Etienne Pallier   delete migrations...
274
                'db_table': 'schedule',
94082e77   haribo   Date: 03/06/2016
275
276
                'verbose_name_plural': 'Schedules',
                'managed': True,
a958bda2   Etienne Pallier   ignore
277
278
279
            },
        ),
        migrations.CreateModel(
94082e77   haribo   Date: 03/06/2016
280
            name='ScheduleHasSequences',
a958bda2   Etienne Pallier   ignore
281
282
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
94082e77   haribo   Date: 03/06/2016
283
284
285
286
287
288
289
                ('status', models.CharField(blank=True, choices=[('TBP', 'To be planned'), ('OBS', 'Observable'), ('UNPLN', 'Unplannable'), ('PNDG', 'Pending'), ('EXD', 'Executed'), ('EXING', 'Executing'), ('RJTD', 'Rejected'), ('CNCLD', 'Cancelled'), ('INVL', 'Invalid')], max_length=11, null=True)),
                ('desc', models.CharField(blank=True, max_length=45, null=True)),
                ('tsp', models.DecimalField(decimal_places=8, default=-1.0, max_digits=15)),
                ('tep', models.DecimalField(decimal_places=8, default=-1.0, max_digits=15)),
                ('deltaTL', models.DecimalField(decimal_places=8, default=-1.0, max_digits=15)),
                ('deltaTR', models.DecimalField(decimal_places=8, default=-1.0, max_digits=15)),
                ('schedule', models.ForeignKey(on_delete=django.db.models.deletion.DO_NOTHING, related_name='shs', to='pyrosapp.Schedule')),
a958bda2   Etienne Pallier   ignore
290
291
            ],
            options={
94082e77   haribo   Date: 03/06/2016
292
                'db_table': 'schedule_has_sequences',
a958bda2   Etienne Pallier   ignore
293
                'managed': True,
a958bda2   Etienne Pallier   ignore
294
295
296
297
298
299
300
301
302
303
            },
        ),
        migrations.CreateModel(
            name='ScientificProgram',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('name', models.CharField(blank=True, max_length=45, null=True)),
                ('desc', models.TextField(blank=True, null=True)),
                ('quota', models.FloatField(blank=True, null=True)),
                ('priority', models.IntegerField(blank=True, null=True)),
94082e77   haribo   Date: 03/06/2016
304
                ('pyros_users', models.ManyToManyField(related_name='scientific_programs', to='pyrosapp.PyrosUser')),
a958bda2   Etienne Pallier   ignore
305
306
            ],
            options={
94082e77   haribo   Date: 03/06/2016
307
                'db_table': 'scientific_program',
a958bda2   Etienne Pallier   ignore
308
                'managed': True,
a958bda2   Etienne Pallier   ignore
309
310
311
312
313
314
315
316
            },
        ),
        migrations.CreateModel(
            name='Sequence',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('name', models.CharField(blank=True, max_length=45, null=True)),
                ('desc', models.TextField(blank=True, null=True)),
58fb93c1   Etienne Pallier   delete migrations...
317
318
319
                ('created', models.DateTimeField(auto_now_add=True, null=True)),
                ('updated', models.DateTimeField(auto_now=True, null=True)),
                ('is_alert', models.BooleanField(default=False)),
94082e77   haribo   Date: 03/06/2016
320
                ('status', models.CharField(blank=True, choices=[('TBP', 'To be planned'), ('OBS', 'Observable'), ('UNPLN', 'Unplannable'), ('PNDG', 'Pending'), ('EXD', 'Executed'), ('EXING', 'Executing'), ('RJTD', 'Rejected'), ('CNCLD', 'Cancelled'), ('INVL', 'Invalid')], max_length=11, null=True)),
a958bda2   Etienne Pallier   ignore
321
                ('pointing', models.CharField(blank=True, max_length=45, null=True)),
58fb93c1   Etienne Pallier   delete migrations...
322
                ('with_drift', models.BooleanField(default=False)),
a958bda2   Etienne Pallier   ignore
323
324
                ('priority', models.IntegerField(blank=True, null=True)),
                ('analysis_method', models.CharField(blank=True, max_length=45, null=True)),
a958bda2   Etienne Pallier   ignore
325
326
327
328
329
                ('moon_min', models.IntegerField(blank=True, null=True)),
                ('alt_min', models.IntegerField(blank=True, null=True)),
                ('type', models.CharField(blank=True, max_length=6, null=True)),
                ('img_current', models.CharField(blank=True, max_length=45, null=True)),
                ('img_total', models.CharField(blank=True, max_length=45, null=True)),
58fb93c1   Etienne Pallier   delete migrations...
330
331
332
                ('not_obs', models.BooleanField(default=False)),
                ('obsolete', models.BooleanField(default=False)),
                ('processing', models.BooleanField(default=False)),
a958bda2   Etienne Pallier   ignore
333
                ('flag', models.CharField(blank=True, max_length=45, null=True)),
94082e77   haribo   Date: 03/06/2016
334
335
336
337
338
                ('jd1', models.DecimalField(decimal_places=8, default=0.0, max_digits=15)),
                ('jd2', models.DecimalField(decimal_places=8, default=0.0, max_digits=15)),
                ('t_prefered', models.DecimalField(decimal_places=8, default=-1.0, max_digits=15)),
                ('duration', models.DecimalField(decimal_places=8, default=-1.0, max_digits=15)),
                ('overhead', models.DecimalField(decimal_places=8, default=0, max_digits=15)),
a958bda2   Etienne Pallier   ignore
339
                ('request', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='sequences', to='pyrosapp.Request')),
a958bda2   Etienne Pallier   ignore
340
341
            ],
            options={
58fb93c1   Etienne Pallier   delete migrations...
342
                'db_table': 'sequence',
a958bda2   Etienne Pallier   ignore
343
                'managed': True,
a958bda2   Etienne Pallier   ignore
344
345
346
347
348
349
            },
        ),
        migrations.CreateModel(
            name='SiteWatch',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
58fb93c1   Etienne Pallier   delete migrations...
350
                ('updated', models.DateTimeField(auto_now=True, null=True)),
a958bda2   Etienne Pallier   ignore
351
352
353
354
355
356
                ('lights', models.CharField(blank=True, max_length=45, null=True)),
                ('dome', models.CharField(blank=True, max_length=45, null=True)),
                ('doors', models.CharField(blank=True, max_length=45, null=True)),
                ('temperature', models.FloatField(blank=True, null=True)),
            ],
            options={
58fb93c1   Etienne Pallier   delete migrations...
357
358
                'db_table': 'sitewatch',
                'verbose_name_plural': 'Site watches',
94082e77   haribo   Date: 03/06/2016
359
                'managed': True,
a958bda2   Etienne Pallier   ignore
360
361
362
363
364
365
366
367
            },
        ),
        migrations.CreateModel(
            name='SiteWatchHistory',
            fields=[
                ('id', models.IntegerField(primary_key=True, serialize=False)),
            ],
            options={
58fb93c1   Etienne Pallier   delete migrations...
368
369
                'db_table': 'sitewatchhistory',
                'verbose_name_plural': 'Site watch histories',
94082e77   haribo   Date: 03/06/2016
370
                'managed': True,
a958bda2   Etienne Pallier   ignore
371
372
373
374
375
376
377
378
            },
        ),
        migrations.CreateModel(
            name='StrategyObs',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('name', models.CharField(blank=True, max_length=45, null=True)),
                ('desc', models.TextField(blank=True, null=True)),
94082e77   haribo   Date: 03/06/2016
379
                ('xml_file', models.CharField(blank=True, max_length=45, null=True)),
a958bda2   Etienne Pallier   ignore
380
381
            ],
            options={
58fb93c1   Etienne Pallier   delete migrations...
382
383
                'db_table': 'strategyobs',
                'verbose_name_plural': 'Strategy obs',
94082e77   haribo   Date: 03/06/2016
384
385
386
387
388
389
390
391
392
393
394
395
396
397
                'managed': True,
            },
        ),
        migrations.CreateModel(
            name='TaskId',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('task', models.CharField(blank=True, max_length=45, null=True)),
                ('created', models.DateTimeField(auto_now_add=True, null=True)),
                ('task_id', models.CharField(blank=True, max_length=45, null=True)),
            ],
            options={
                'db_table': 'task_id',
                'managed': True,
a958bda2   Etienne Pallier   ignore
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
            },
        ),
        migrations.CreateModel(
            name='Telescope',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('mount_type', models.CharField(blank=True, max_length=9, null=True)),
                ('diameter', models.FloatField(blank=True, null=True)),
                ('status', models.CharField(blank=True, max_length=45, null=True)),
                ('latitude', models.FloatField(blank=True, null=True)),
                ('longitude', models.FloatField(blank=True, null=True)),
                ('sens', models.CharField(blank=True, max_length=1, null=True)),
                ('altitude', models.FloatField(blank=True, null=True)),
                ('readout_time', models.IntegerField(blank=True, null=True)),
                ('slew_time', models.IntegerField(blank=True, null=True)),
                ('slew_dead', models.IntegerField(blank=True, null=True)),
                ('slew_rate_max', models.FloatField(blank=True, null=True)),
                ('horizon_type', models.CharField(blank=True, max_length=45, null=True)),
                ('horizon_def', models.FloatField(blank=True, null=True)),
                ('lim_dec_max', models.FloatField(blank=True, null=True)),
                ('lim_dec_min', models.FloatField(blank=True, null=True)),
                ('lim_ha_rise', models.FloatField(blank=True, null=True)),
                ('lim_ha_set', models.FloatField(blank=True, null=True)),
                ('address', models.CharField(blank=True, max_length=45, null=True)),
                ('night_elev_sun', models.FloatField(blank=True, null=True)),
                ('mpc_code', models.CharField(blank=True, max_length=45, null=True)),
                ('device', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, to='pyrosapp.Device')),
            ],
            options={
58fb93c1   Etienne Pallier   delete migrations...
427
                'db_table': 'telescope',
94082e77   haribo   Date: 03/06/2016
428
                'managed': True,
a958bda2   Etienne Pallier   ignore
429
430
431
432
433
434
435
436
437
438
439
440
            },
        ),
        migrations.CreateModel(
            name='UserLevel',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('name', models.CharField(blank=True, max_length=45, null=True)),
                ('desc', models.TextField(blank=True, null=True)),
                ('priority', models.IntegerField(blank=True, null=True)),
                ('quota', models.FloatField(blank=True, null=True)),
            ],
            options={
94082e77   haribo   Date: 03/06/2016
441
                'db_table': 'user_level',
a958bda2   Etienne Pallier   ignore
442
                'managed': True,
a958bda2   Etienne Pallier   ignore
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
            },
        ),
        migrations.CreateModel(
            name='WeatherWatch',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('updated', models.DateTimeField(blank=True, null=True)),
                ('humid_int', models.FloatField(blank=True, null=True)),
                ('humid_ext', models.FloatField(blank=True, null=True)),
                ('wind', models.FloatField(blank=True, null=True)),
                ('wind_dir', models.CharField(blank=True, max_length=1, null=True)),
                ('temp_int', models.FloatField(blank=True, null=True)),
                ('temp_ext', models.FloatField(blank=True, null=True)),
                ('pressure', models.FloatField(blank=True, null=True)),
                ('rain', models.FloatField(blank=True, null=True)),
                ('dwn', models.CharField(blank=True, max_length=45, null=True)),
            ],
            options={
58fb93c1   Etienne Pallier   delete migrations...
461
462
                'db_table': 'weatherwatch',
                'verbose_name_plural': 'Weather watches',
94082e77   haribo   Date: 03/06/2016
463
                'managed': True,
a958bda2   Etienne Pallier   ignore
464
465
466
467
468
469
            },
        ),
        migrations.CreateModel(
            name='WeatherWatchHistory',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
58fb93c1   Etienne Pallier   delete migrations...
470
                ('datetime', models.DateTimeField(auto_now_add=True, null=True)),
a958bda2   Etienne Pallier   ignore
471
472
473
474
475
476
477
478
479
480
481
                ('humid_int', models.CharField(blank=True, max_length=45, null=True)),
                ('humid_ext', models.CharField(blank=True, max_length=45, null=True)),
                ('wind', models.CharField(blank=True, max_length=45, null=True)),
                ('wind_dir', models.CharField(blank=True, max_length=45, null=True)),
                ('temp_int', models.CharField(blank=True, max_length=45, null=True)),
                ('temp_ext', models.CharField(blank=True, max_length=45, null=True)),
                ('pressure', models.CharField(blank=True, max_length=45, null=True)),
                ('rain', models.CharField(blank=True, max_length=45, null=True)),
                ('dwn', models.CharField(blank=True, max_length=45, null=True)),
            ],
            options={
58fb93c1   Etienne Pallier   delete migrations...
482
483
                'db_table': 'weatherwatchhistory',
                'verbose_name_plural': 'Weather watch histories',
94082e77   haribo   Date: 03/06/2016
484
                'managed': True,
a958bda2   Etienne Pallier   ignore
485
486
487
            },
        ),
        migrations.AddField(
94082e77   haribo   Date: 03/06/2016
488
489
490
            model_name='schedulehassequences',
            name='sequence',
            field=models.ForeignKey(on_delete=django.db.models.deletion.DO_NOTHING, related_name='shs', to='pyrosapp.Sequence'),
a958bda2   Etienne Pallier   ignore
491
492
        ),
        migrations.AddField(
94082e77   haribo   Date: 03/06/2016
493
            model_name='schedule',
a958bda2   Etienne Pallier   ignore
494
            name='sequences',
94082e77   haribo   Date: 03/06/2016
495
            field=models.ManyToManyField(related_name='schedules', through='pyrosapp.ScheduleHasSequences', to='pyrosapp.Sequence'),
a958bda2   Etienne Pallier   ignore
496
497
498
        ),
        migrations.AddField(
            model_name='request',
94082e77   haribo   Date: 03/06/2016
499
            name='scientific_program',
a958bda2   Etienne Pallier   ignore
500
501
502
503
            field=models.ForeignKey(on_delete=django.db.models.deletion.DO_NOTHING, related_name='requests', to='pyrosapp.ScientificProgram'),
        ),
        migrations.AddField(
            model_name='pyrosuser',
94082e77   haribo   Date: 03/06/2016
504
            name='user_level',
a958bda2   Etienne Pallier   ignore
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
            field=models.ForeignKey(on_delete=django.db.models.deletion.DO_NOTHING, related_name='pyros_users', to='pyrosapp.UserLevel'),
        ),
        migrations.AddField(
            model_name='image',
            name='nrtanalysis',
            field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.DO_NOTHING, related_name='images', to='pyrosapp.NrtAnalysis'),
        ),
        migrations.AddField(
            model_name='image',
            name='plan',
            field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='images', to='pyrosapp.Plan'),
        ),
        migrations.AddField(
            model_name='detector',
            name='device',
            field=models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, to='pyrosapp.Device'),
        ),
        migrations.AddField(
            model_name='detector',
            name='telescope',
            field=models.ForeignKey(on_delete=django.db.models.deletion.DO_NOTHING, related_name='detectors', to='pyrosapp.Telescope'),
        ),
        migrations.AddField(
            model_name='alert',
            name='request',
            field=models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, to='pyrosapp.Request'),
        ),
        migrations.AddField(
            model_name='alert',
            name='strategyobs',
94082e77   haribo   Date: 03/06/2016
535
            field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.DO_NOTHING, related_name='alerts', to='pyrosapp.StrategyObs'),
a958bda2   Etienne Pallier   ignore
536
537
538
539
540
541
542
543
544
545
546
547
        ),
        migrations.AddField(
            model_name='album',
            name='detector',
            field=models.ForeignKey(on_delete=django.db.models.deletion.DO_NOTHING, related_name='albums', to='pyrosapp.Detector'),
        ),
        migrations.AddField(
            model_name='album',
            name='sequence',
            field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='albums', to='pyrosapp.Sequence'),
        ),
    ]