# -*- coding: utf-8 -*- # Generated by Django 1.11.28 on 2021-06-22 14:56 from __future__ import unicode_literals import django.core.validators from django.db import migrations, models import django.db.models.deletion import ishtar_common.models_common import re class Migration(migrations.Migration): dependencies = [ ('archaeological_files', '0105_auto_20201204_1442'), ] operations = [ migrations.CreateModel( name='EquipmentCost', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('service_provider', models.CharField(default='-', max_length=200, verbose_name='Service provider')), ('flat_rate', models.BooleanField(default=False, verbose_name='Flat rate')), ('daily_cost', models.FloatField(blank=True, null=True, verbose_name='Daily cost')), ('monday', models.BooleanField(default=True, verbose_name='Monday')), ('tuesday', models.BooleanField(default=True, verbose_name='Tuesday')), ('wednesday', models.BooleanField(default=True, verbose_name='Wednesday')), ('thursday', models.BooleanField(default=True, verbose_name='Thursday')), ('friday', models.BooleanField(default=True, verbose_name='Friday')), ], options={ 'verbose_name': 'Equipment cost', 'verbose_name_plural': 'Equipment costs', }, ), migrations.CreateModel( name='EquipmentType', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('label', models.TextField(verbose_name='Label')), ('txt_idx', models.TextField(help_text='The slug is the standardized version of the name. It contains only lowercase letters, numbers and hyphens. Each slug must be unique.', unique=True, validators=[django.core.validators.RegexValidator(re.compile('^[-a-zA-Z0-9_]+\\Z', 32), "Enter a valid 'slug' consisting of letters, numbers, underscores or hyphens.", 'invalid')], verbose_name='Textual ID')), ('comment', models.TextField(blank=True, default='', verbose_name='Comment')), ('available', models.BooleanField(default=True, verbose_name='Available')), ], options={ 'verbose_name': 'Equipment type', 'verbose_name_plural': 'Equipment types', 'ordering': ('label',), }, bases=(ishtar_common.models_common.Cached, models.Model), ), migrations.CreateModel( name='GenericEquipmentType', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('label', models.TextField(verbose_name='Label')), ('txt_idx', models.TextField(help_text='The slug is the standardized version of the name. It contains only lowercase letters, numbers and hyphens. Each slug must be unique.', unique=True, validators=[django.core.validators.RegexValidator(re.compile('^[-a-zA-Z0-9_]+\\Z', 32), "Enter a valid 'slug' consisting of letters, numbers, underscores or hyphens.", 'invalid')], verbose_name='Textual ID')), ('comment', models.TextField(blank=True, default='', verbose_name='Comment')), ('available', models.BooleanField(default=True, verbose_name='Available')), ], options={ 'verbose_name': 'Generic equipment type', 'verbose_name_plural': 'Generic equipment types', 'ordering': ('label',), }, bases=(ishtar_common.models_common.Cached, models.Model), ), migrations.CreateModel( name='Job', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('label', models.TextField(verbose_name='Label')), ('txt_idx', models.TextField(help_text='The slug is the standardized version of the name. It contains only lowercase letters, numbers and hyphens. Each slug must be unique.', unique=True, validators=[django.core.validators.RegexValidator(re.compile('^[-a-zA-Z0-9_]+\\Z', 32), "Enter a valid 'slug' consisting of letters, numbers, underscores or hyphens.", 'invalid')], verbose_name='Textual ID')), ('comment', models.TextField(blank=True, default='', verbose_name='Comment')), ('available', models.BooleanField(default=True, verbose_name='Available')), ('ground_daily_cost', models.FloatField(blank=True, null=True, verbose_name='Ground daily cost')), ('daily_cost', models.FloatField(blank=True, null=True, verbose_name='Daily cost')), ('permanent_contract', models.NullBooleanField(verbose_name='Is a permanent contract')), ('default_daily_need_on_ground', models.FloatField(default=0, verbose_name='Default daily number needed on the ground')), ('default_daily_need', models.FloatField(default=0, verbose_name='Default daily number needed')), ], options={ 'verbose_name': 'Job', 'verbose_name_plural': 'Jobs', 'ordering': ('label',), }, bases=(ishtar_common.models_common.Cached, models.Model), ), migrations.CreateModel( name='ManDays', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('man_by_day_planned', models.FloatField(blank=True, null=True, verbose_name='Man by day - planned')), ('days_planned', models.FloatField(blank=True, null=True, verbose_name='Days - planned')), ('man_by_day_worked', models.FloatField(blank=True, null=True, verbose_name='Man by day - worked')), ('days_worked', models.FloatField(blank=True, null=True, verbose_name='Days - worked')), ], ), migrations.CreateModel( name='TechnicalService', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('label', models.TextField(verbose_name='Label')), ('txt_idx', models.TextField(help_text='The slug is the standardized version of the name. It contains only lowercase letters, numbers and hyphens. Each slug must be unique.', unique=True, validators=[django.core.validators.RegexValidator(re.compile('^[-a-zA-Z0-9_]+\\Z', 32), "Enter a valid 'slug' consisting of letters, numbers, underscores or hyphens.", 'invalid')], verbose_name='Textual ID')), ('comment', models.TextField(blank=True, default='', verbose_name='Comment')), ('available', models.BooleanField(default=True, verbose_name='Available')), ], options={ 'verbose_name': 'Technical service', 'verbose_name_plural': 'Technical services', 'ordering': ('label',), }, bases=(ishtar_common.models_common.Cached, models.Model), ), migrations.CreateModel( name='TechnicalServiceCost', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('service_provider', models.CharField(default='-', max_length=200, verbose_name='Service provider')), ('flat_rate', models.BooleanField(default=False, verbose_name='Flat rate')), ('unitary_cost', models.FloatField(blank=True, null=True, verbose_name='Unitary cost')), ('unit', models.CharField(blank=True, choices=[('D', 'Days'), ('M', 'Linear meter')], max_length=1, null=True, verbose_name='Unit')), ('technical_service', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='archaeological_files.TechnicalService', verbose_name='Technical service')), ], options={ 'verbose_name': 'Equipment cost', 'verbose_name_plural': 'Equipment costs', }, ), migrations.AddField( model_name='file', name='execution_report_date', field=models.DateField(blank=True, null=True, verbose_name='Execution report date'), ), migrations.AddField( model_name='file', name='ground_end_date', field=models.DateField(blank=True, null=True, verbose_name='Ground end date'), ), migrations.AddField( model_name='file', name='ground_start_date', field=models.DateField(blank=True, null=True, verbose_name='Ground start date'), ), migrations.AddField( model_name='file', name='linear_meter', field=models.IntegerField(blank=True, null=True, verbose_name='Linear meter'), ), migrations.AddField( model_name='file', name='start_date', field=models.DateField(blank=True, null=True, verbose_name='Start date'), ), migrations.AddField( model_name='file', name='study_period', field=models.CharField(blank=True, default='', max_length=200, verbose_name='Study period'), ), migrations.AddField( model_name='historicalfile', name='execution_report_date', field=models.DateField(blank=True, null=True, verbose_name='Execution report date'), ), migrations.AddField( model_name='historicalfile', name='ground_end_date', field=models.DateField(blank=True, null=True, verbose_name='Ground end date'), ), migrations.AddField( model_name='historicalfile', name='ground_start_date', field=models.DateField(blank=True, null=True, verbose_name='Ground start date'), ), migrations.AddField( model_name='historicalfile', name='linear_meter', field=models.IntegerField(blank=True, null=True, verbose_name='Linear meter'), ), migrations.AddField( model_name='historicalfile', name='start_date', field=models.DateField(blank=True, null=True, verbose_name='Start date'), ), migrations.AddField( model_name='historicalfile', name='study_period', field=models.CharField(blank=True, default='', max_length=200, verbose_name='Study period'), ), migrations.AlterField( model_name='file', name='end_date', field=models.DateField(blank=True, null=True, verbose_name='End date'), ), migrations.AlterField( model_name='historicalfile', name='end_date', field=models.DateField(blank=True, null=True, verbose_name='End date'), ), migrations.CreateModel( name='PreventiveFileEquipmentCost', fields=[ ('mandays_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='archaeological_files.ManDays')), ], bases=('archaeological_files.mandays',), ), migrations.CreateModel( name='PreventiveFileGroundJob', fields=[ ('mandays_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='archaeological_files.ManDays')), ('file', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='ground_jobs', to='archaeological_files.File')), ('job', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='archaeological_files.Job')), ], bases=('archaeological_files.mandays',), ), migrations.CreateModel( name='PreventiveFileJob', fields=[ ('mandays_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='archaeological_files.ManDays')), ('file', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='jobs', to='archaeological_files.File')), ('job', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='archaeological_files.Job')), ], bases=('archaeological_files.mandays',), ), migrations.CreateModel( name='PreventiveFileTechnicalServiceCost', fields=[ ('mandays_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='archaeological_files.ManDays')), ('file', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='technical_service_costs', to='archaeological_files.File')), ('technical_service_cost', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='archaeological_files.TechnicalServiceCost')), ], bases=('archaeological_files.mandays',), ), migrations.AddField( model_name='equipmenttype', name='generic_equipment_type', field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='archaeological_files.GenericEquipmentType', verbose_name='Generic type'), ), migrations.AddField( model_name='equipmentcost', name='equipment_type', field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='archaeological_files.EquipmentType', verbose_name='Equipment'), ), migrations.AddField( model_name='preventivefileequipmentcost', name='equipment_cost', field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='archaeological_files.EquipmentCost'), ), migrations.AddField( model_name='preventivefileequipmentcost', name='file', field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='equipment_costs', to='archaeological_files.File'), ), ]