class Migration(migrations.Migration): initial = True dependencies = [ ('app', '0001_initial'), ('taggit', '0002_auto_20150616_2121'), ] operations = [ migrations.CreateModel( name='Book', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('code', models.CharField(max_length=10)), ('name', models.CharField(max_length=100)), ('title', models.CharField(blank=True, max_length=150, null=True)), ('slug', models.SlugField(blank=True, max_length=150, null=True)), ('option', models.CharField(blank=True, max_length=150, null=True)), ('preview', models.TextField(blank=True, null=True)), ('pages', models.IntegerField(default=0)), ('year', models.IntegerField(default=0)), ('price', models.DecimalField(decimal_places=2, default=0, max_digits=15)), ('price_ebook', models.DecimalField(decimal_places=2, default=0, max_digits=15)), ('sample', models.FileField(blank=True, null=True, upload_to=book.models.get_book_sample)), ('image', models.FileField(blank=True, null=True, upload_to=book.models.get_book_image)), ('published', models.BooleanField(default=True)), ('created', models.DateTimeField(auto_now_add=True)), ('updated', models.DateTimeField(auto_now=True)), ('category', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='app.Category')), ('tags', taggit.managers.TaggableManager( blank=True, help_text='A comma-separated list of tags.', through='taggit.TaggedItem', to='taggit.Tag', verbose_name='Tags')), ('teacher', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='app.Teacher')), ], options={ 'db_table': 'book', 'verbose_name_plural': 'Book', }, ), ]
class Migration(migrations.Migration): initial = True dependencies = [ ('book', '0001_initial'), ] operations = [ migrations.CreateModel( name='Book', fields=[ ('book_id', models.AutoField(primary_key=True, serialize=False)), ('name', models.CharField(max_length=20)), ('category', models.CharField(max_length=20)), ('publisher', models.CharField(max_length=15)), ('author', models.CharField(max_length=30)), ('origin_price', models.FloatField( max_length=6, validators=[book.validators.validate_not_negative_number ])), ('stock', models.IntegerField( default=0, validators=[book.validators.validate_not_negative_number ])), ('discount', models.DecimalField( decimal_places=2, default=1, max_digits=2, max_length=3, validators=[book.validators.validate_discount])), ('sale_number', models.IntegerField( default=0, validators=[book.validators.validate_not_negative_number ])), ('is_on_sale', models.BooleanField(default=True)), ('putaway_date', models.DateTimeField(auto_now_add=True)), ], ), migrations.CreateModel( name='BookDetail', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('cover', models.ImageField(default='img/cover/default.jpg', null=True, upload_to=book.models.get_book_file_path)), ('catalogue', models.FileField(null=True, upload_to=book.models.get_book_file_path)), ('summary', models.FileField(null=True, upload_to=book.models.get_book_file_path)), ('book', models.OneToOneField( on_delete=django.db.models.deletion.CASCADE, to='book.Book')), ], ), ]
class Migration(migrations.Migration): initial = True dependencies = [ ('taggit', '0002_auto_20150616_2121'), ('app', '0001_initial'), ] operations = [ migrations.CreateModel( name='Book', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('code', models.CharField(max_length=10)), ('name', models.CharField(max_length=100)), ('slug', models.SlugField(blank=True, max_length=250, null=True)), ('title', models.CharField(blank=True, max_length=100, null=True)), ('preview', models.TextField(blank=True, null=True)), ('type', models.CharField(choices=[(b'B', b'Both'), (b'E', b'e-Book'), (b'P', b'Paperback')], max_length=1)), ('pages', models.IntegerField(default=0)), ('years', models.IntegerField(default=0)), ('qty', models.IntegerField(default=0)), ('price', models.DecimalField(decimal_places=2, default=0, max_digits=15)), ('price_ebook', models.DecimalField(decimal_places=2, default=0, max_digits=15)), ('example', models.FileField(blank=True, null=True, upload_to=book.models.get_book_exam_file)), ('image', models.FileField(blank=True, null=True, upload_to=book.models.get_book_file)), ('published', models.BooleanField(default=True)), ('category', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='app.Category')), ('tags', taggit.managers.TaggableManager( help_text='A comma-separated list of tags.', through='taggit.TaggedItem', to='taggit.Tag', verbose_name='Tags')), ('teacher', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='app.Teacher')), ], options={ 'db_table': 'book', 'verbose_name_plural': 'Book', }, ), migrations.CreateModel( name='BookOption', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('option', models.CharField(max_length=50)), ('book', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='book.Book')), ], options={ 'db_table': 'book_option', 'verbose_name_plural': 'BookOption', }, ), migrations.CreateModel( name='Register', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=100)), ('phone', models.CharField(max_length=20)), ('email', models.EmailField(max_length=100)), ('reg_date', models.DateTimeField(auto_now_add=True, null=True)), ('paid', models.BooleanField(default=False)), ('paid_date', models.DateTimeField(blank=True, null=True)), ('paid_via', models.CharField(blank=True, max_length=50, null=True)), ('delivered', models.BooleanField(default=False)), ('book', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='book.Book')), ], options={ 'ordering': ['reg_date'], 'db_table': 'book_register', 'verbose_name_plural': 'Register', }, ), ]
class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] operations = [ migrations.CreateModel( name='Book', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('isbn10', models.CharField(blank=True, default='', max_length=10, verbose_name='ISBN10')), ('isbn13', models.CharField( max_length=13, validators=[book.models.BookEditValidator.isbn13], verbose_name='ISBN13')), ('face_l', models.URLField(blank=True, default='', max_length=255, verbose_name='Face_L')), ('face_m', models.URLField(blank=True, default='', max_length=255, verbose_name='Face_M')), ('face_s', models.URLField(blank=True, default='', max_length=255, verbose_name='Face_S')), ('title', models.CharField(max_length=128, verbose_name='Title')), ('subtitle', models.CharField(blank=True, default='', max_length=128, verbose_name='Subtitle')), ('pages', models.PositiveSmallIntegerField(blank=0, default=0, null=0, verbose_name='Pages')), ('author', models.CharField(blank=True, default='', max_length=256, verbose_name='Author')), ('translator', models.CharField(blank=True, default='', max_length=256, verbose_name='Translator')), ('publisher', models.CharField(blank=True, default='', max_length=256, verbose_name='Publisher')), ('price', models.DecimalField(blank=True, decimal_places=2, default=0, max_digits=5, null=True, verbose_name='Price')), ('binding', models.CharField(blank=True, default='', max_length=128, verbose_name='Binding')), ('pubdate', models.DateField(blank=True, help_text='(.etc 2017-11-13)', null=True, verbose_name='Date Published')), ('authorDesc', models.TextField(blank=True, default='', verbose_name='Author Desc')), ('summary', models.TextField(blank=True, default='', verbose_name='Summary')), ('rating', models.DecimalField(blank=True, decimal_places=2, default=0, max_digits=5, null=True, verbose_name='Rating')), ], ), migrations.CreateModel( name='Category', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=64, verbose_name='Category')), ], ), migrations.CreateModel( name='Location', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('zone', models.CharField(help_text='The name of zone', max_length=128, verbose_name='Zone')), ('shelf', models.PositiveSmallIntegerField( help_text='The number of shelf', verbose_name='Shelf')), ('row', models.PositiveSmallIntegerField(verbose_name='Row')), ('col', models.PositiveSmallIntegerField(verbose_name='Col')), ], ), migrations.CreateModel( name='Reader', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('readPages', models.PositiveSmallIntegerField(blank=0, default=0, help_text='(Pages Be Read)', null=0, verbose_name='Read Pages')), ('readStart', models.DateField(blank=True, help_text='(.etc 2017-11-13)', null=True, verbose_name='Reading Start')), ('readEnd', models.DateField(blank=True, help_text='(.etc 2017-11-13)', null=True, verbose_name='Reading Finished')), ('readTags', models.TextField(blank=True, default='', verbose_name='Reading Tags')), ('readNote', models.TextField(blank=True, default='', verbose_name='Reading Note')), ('boughtDate', models.DateField(blank=True, help_text='(.etc 2017-11-13)', null=True, verbose_name='Date Bought')), ('boughtPrice', models.DecimalField(blank=True, decimal_places=2, default=0, max_digits=5, null=True, verbose_name='Price Bought')), ('book', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='reader', to='book.Book', verbose_name='Book')), ('name', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='read', to=settings.AUTH_USER_MODEL, verbose_name='Name of Reader')), ], ), migrations.AddField( model_name='book', name='category', field=models.ForeignKey( blank=True, default='', null=True, on_delete=django.db.models.deletion.CASCADE, to='book.Category', verbose_name='Category'), ), migrations.AddField( model_name='book', name='location', field=models.ForeignKey( blank=True, default='', null=True, on_delete=django.db.models.deletion.CASCADE, to='book.Location', verbose_name='Location'), ), ]
class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] operations = [ migrations.CreateModel( name="SearchFdsnStationModel", fields=[ ( "id", models.AutoField( auto_created=True, primary_key=True, serialize=False, verbose_name="ID", ), ), ("network_code", models.CharField(blank=True, max_length=256)), ("station_code", models.CharField(blank=True, max_length=256)), ("site_name", models.CharField(blank=True, max_length=256)), ( "network_class", models.CharField( blank=True, choices=[ ("all", "All"), ("permanent", "Permanent"), ("temporary", "Temporary"), ], default="", max_length=256, ), ), ( "network_access", models.CharField( blank=True, choices=[ ("all", "All"), ("unrestricted", "Unrestricted"), ("restricted", "Restricted"), ], default="", max_length=256, ), ), ( "station_status", models.CharField( blank=True, choices=[ ("all", "All"), ("open", "Open"), ("closed", "Closed"), ], default="", max_length=256, ), ), ( "station_access", models.CharField( blank=True, choices=[ ("all", "All"), ("unrestricted", "Unrestricted"), ("restricted", "Restricted"), ], default="", max_length=256, ), ), ( "sensor_unit", models.CharField( blank=True, choices=[ ("all", "All"), ("m", "M"), ("ms", "M/S"), ("mss", "M/S^2"), ("pa", "PA"), ("c", "C"), ("deg", "DEG"), ("undefined", "Undefined"), ], default="", max_length=256, ), ), ( "sensor_type", models.CharField( blank=True, choices=[ ("all", "All"), ("vbb", "VBB"), ("bb", "BB"), ("sp", "SP"), ("sm", "SM"), ("obs", "OBS"), ("undefined", "Undefined"), ], default="", max_length=256, ), ), ( "latitude_min", models.DecimalField(blank=True, decimal_places=6, max_digits=9), ), ( "latitude_max", models.DecimalField(blank=True, decimal_places=6, max_digits=9), ), ( "longitude_min", models.DecimalField(blank=True, decimal_places=6, max_digits=9), ), ( "longitude_max", models.DecimalField(blank=True, decimal_places=6, max_digits=9), ), ("start_year_from", models.IntegerField(blank=True)), ("start_year_to", models.IntegerField(blank=True)), ("end_year_from", models.IntegerField(blank=True)), ("end_year_to", models.IntegerField(blank=True)), ( "geological_unit", models.CharField( blank=True, choices=[ ("unknown", "Unknown"), ("alluvial_deposits", "Alluvial deposits"), ("ancient_alluvialterraces", "Ancient alluvial terraces"), ("argillite", "Argillite"), ("breccias", "Breccias"), ("clay", "Clay"), ("conglomerate", "Conglomerate"), ("debris", "Debris"), ("diabase", "Diabase"), ("dolomite", "Dolomite"), ("fillade", "Fillade"), ("fluvial_deposits", "Fluvial deposits"), ("gneiss", "Gneiss"), ("granite", "Granite"), ("jasper", "Jasper"), ("lacustrine_deposits", "Lacustrine deposits"), ("limestone", "Limestone"), ("marls", "Marls"), ("metamorphic_rock", "Metamorphic rock"), ("micaschist", "Micaschist"), ("morainic_deposits", "Morainic deposits"), ("ophiolite", "Ophiolite"), ("rhyolitic_ignimbrite", "Rhyolitic ignimbrite"), ("sand_deposits", "Sand deposits"), ("sandstone", "Sandstone"), ("schist", "Schist"), ("torbidite", "Torbidite"), ("volcanic_deposits", "Volcanic deposits"), ("volcanic_rocks", "Volcanic rocks"), ], default="", max_length=256, ), ), ( "morphology_class", models.CharField( blank=True, choices=[ ("unknown", "Unknown"), ("t1", "T1"), ("t2", "T2"), ("t3", "T3"), ("t4", "T4"), ], default="", max_length=256, ), ), ( "ground_type_ec8", models.CharField( blank=True, choices=[ ("unknown", "Unknown"), ("a", "A"), ("b", "B"), ("c", "C"), ("d", "D"), ("e", "E"), ("s1", "S1"), ("s2", "S2"), ], default="", max_length=256, ), ), ("basin_flag", models.BooleanField(default=False)), ( "vs30_from", models.DecimalField(blank=True, decimal_places=6, max_digits=12), ), ( "vs30_to", models.DecimalField(blank=True, decimal_places=6, max_digits=12), ), ( "f0_from", models.DecimalField(blank=True, decimal_places=6, max_digits=12), ), ( "f0_to", models.DecimalField(blank=True, decimal_places=6, max_digits=12), ), ], options={"managed": False,}, ), migrations.CreateModel( name="ExtEntityBase", fields=[ ( "id", models.AutoField( auto_created=True, primary_key=True, serialize=False, verbose_name="ID", ), ), ( "ext_network_code", models.TextField(blank=True, default="", max_length=16384), ), ( "ext_network_start_year", models.TextField(blank=True, default="", max_length=16384), ), ( "ext_station_code", models.TextField(blank=True, default="", max_length=16384), ), ( "ext_station_start_year", models.TextField(blank=True, default="", max_length=16384), ), ("entity_removed", models.BooleanField(default=False)), ], ), migrations.CreateModel( name="FdsnNetwork", fields=[ ( "id", models.AutoField( auto_created=True, primary_key=True, serialize=False, verbose_name="ID", ), ), ("code", models.CharField(max_length=256)), ( "description", models.CharField(blank=True, default="", max_length=256), ), ( "start_date", models.DateTimeField(blank=True, default="", max_length=256), ), ( "restricted_status", models.CharField(blank=True, default="", max_length=256), ), ], options={"ordering": ["code"],}, ), migrations.CreateModel( name="FdsnNode", fields=[ ( "code", models.CharField( max_length=256, primary_key=True, serialize=False, unique=True ), ), ( "description", models.CharField(blank=True, default="", max_length=256), ), ( "url_dataselect", models.CharField(blank=True, default="", max_length=1024), ), ( "url_station", models.CharField(blank=True, default="", max_length=1024), ), ( "url_routing", models.CharField(blank=True, default="", max_length=1024), ), ( "url_wfcatalog", models.CharField(blank=True, default="", max_length=1024), ), ], ), migrations.CreateModel( name="FdsnStation", fields=[ ( "id", models.AutoField( auto_created=True, primary_key=True, serialize=False, verbose_name="ID", ), ), ("code", models.CharField(max_length=256)), ("site_name", models.CharField(blank=True, max_length=256)), ( "latitude", models.DecimalField(blank=True, decimal_places=6, max_digits=9), ), ( "longitude", models.DecimalField(blank=True, decimal_places=6, max_digits=9), ), ( "elevation", models.DecimalField(blank=True, decimal_places=2, max_digits=6), ), ("restricted_status", models.CharField(blank=True, max_length=256)), ("start_date", models.DateTimeField(blank=True, max_length=256)), ( "end_date", models.DateTimeField(blank=True, max_length=256, null=True), ), ( "creation_date", models.DateTimeField(blank=True, max_length=256, null=True), ), ( "fdsn_network", models.ForeignKey( default=None, on_delete=django.db.models.deletion.CASCADE, related_name="fdsn_stations", to="book.FdsnNetwork", ), ), ], options={ "ordering": [ "fdsn_network__fdsn_node__code", "fdsn_network__code", "code", ], }, ), migrations.CreateModel( name="Link", fields=[ ( "id", models.AutoField( auto_created=True, primary_key=True, serialize=False, verbose_name="ID", ), ), ("url", models.CharField(blank=True, max_length=1024, null=True)), ("category", models.CharField(blank=True, max_length=1024, null=True)), ( "description", models.CharField(blank=True, max_length=1024, null=True), ), ], ), migrations.CreateModel( name="Profile", fields=[ ( "id", models.AutoField( auto_created=True, primary_key=True, serialize=False, verbose_name="ID", ), ), ("about", models.CharField(blank=True, max_length=1024)), ("location", models.CharField(blank=True, max_length=1024)), ("agency", models.CharField(blank=True, max_length=1024)), ("department", models.CharField(blank=True, max_length=1024)), ("telephone", models.CharField(blank=True, max_length=1024)), ("skype", models.CharField(blank=True, max_length=1024)), ( "fdsn_networks", models.ManyToManyField( blank=True, related_name="editors", to="book.FdsnNetwork" ), ), ( "user", models.OneToOneField( on_delete=django.db.models.deletion.CASCADE, related_name="profile", to=settings.AUTH_USER_MODEL, ), ), ], ), migrations.CreateModel( name="ExtAccessData", fields=[ ( "extentitybase_ptr", models.OneToOneField( auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to="book.ExtEntityBase", ), ), ("updated_at", models.DateTimeField(null=True)), ( "description", models.CharField(blank=True, default="Change", max_length=256), ), ], options={"ordering": ["-updated_at"],}, bases=("book.extentitybase",), ), migrations.CreateModel( name="ExtBasicData", fields=[ ( "extentitybase_ptr", models.OneToOneField( auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to="book.ExtEntityBase", ), ), ( "description", models.TextField(blank=True, default="", max_length=16384), ), ("start", models.DateField(blank=True, null=True)), ("end", models.DateField(blank=True, null=True)), ( "imported_from_fdsn", models.DateTimeField(default=django.utils.timezone.now), ), ( "last_synced", models.DateTimeField(default=django.utils.timezone.now), ), ], bases=("book.extentitybase",), ), migrations.CreateModel( name="ExtBoreholeData", fields=[ ( "extentitybase_ptr", models.OneToOneField( auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to="book.ExtEntityBase", ), ), ("depth", models.IntegerField(default=0)), ], bases=("book.extentitybase",), ), migrations.CreateModel( name="ExtBoreholeLayerData", fields=[ ( "extentitybase_ptr", models.OneToOneField( auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to="book.ExtEntityBase", ), ), ( "description", models.CharField(blank=True, default="", max_length=256), ), ("depth_top", models.IntegerField(default=0)), ("depth_bottom", models.IntegerField(default=0)), ( "borehole_data", models.ForeignKey( null=True, on_delete=django.db.models.deletion.SET_NULL, related_name="borehole_layers", to="book.ExtBoreholeData", ), ), ], bases=("book.extentitybase",), ), migrations.CreateModel( name="ExtHousingData", fields=[ ( "extentitybase_ptr", models.OneToOneField( auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to="book.ExtEntityBase", ), ), ( "description", models.TextField(blank=True, default="", max_length=16384), ), ( "housing_class", models.CharField( blank=True, choices=[ ("borehole", "Borehole"), ("bridge", "Bridge"), ("building", "Building"), ("cave", "Cave"), ("dam", "Dam"), ("free_field", "Free field"), ("other_structure", "Other structure"), ("tunnel", "Tunnel"), ("underground_shelter", "Underground shelter"), ("urban_free_field", "Urban free field"), ], default="", max_length=256, ), ), ("in_building", models.BooleanField(default=True)), ("numer_of_storeys", models.IntegerField(default=0)), ("distance_to_building", models.IntegerField(default=0)), ], bases=("book.extentitybase",), ), migrations.CreateModel( name="ExtMorphologyData", fields=[ ( "extentitybase_ptr", models.OneToOneField( auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to="book.ExtEntityBase", ), ), ( "description", models.TextField(blank=True, default="", max_length=16384), ), ( "geological_unit", models.CharField( blank=True, choices=[ ("unknown", "Unknown"), ("alluvial_deposits", "Alluvial deposits"), ("ancient_alluvialterraces", "Ancient alluvial terraces"), ("argillite", "Argillite"), ("breccias", "Breccias"), ("clay", "Clay"), ("conglomerate", "Conglomerate"), ("debris", "Debris"), ("diabase", "Diabase"), ("dolomite", "Dolomite"), ("fillade", "Fillade"), ("fluvial_deposits", "Fluvial deposits"), ("gneiss", "Gneiss"), ("granite", "Granite"), ("jasper", "Jasper"), ("lacustrine_deposits", "Lacustrine deposits"), ("limestone", "Limestone"), ("marls", "Marls"), ("metamorphic_rock", "Metamorphic rock"), ("micaschist", "Micaschist"), ("morainic_deposits", "Morainic deposits"), ("ophiolite", "Ophiolite"), ("rhyolitic_ignimbrite", "Rhyolitic ignimbrite"), ("sand_deposits", "Sand deposits"), ("sandstone", "Sandstone"), ("schist", "Schist"), ("torbidite", "Torbidite"), ("volcanic_deposits", "Volcanic deposits"), ("volcanic_rocks", "Volcanic rocks"), ], default="", max_length=256, ), ), ( "morphology_class", models.CharField( blank=True, choices=[ ("unknown", "Unknown"), ("t1", "T1"), ("t2", "T2"), ("t3", "T3"), ("t4", "T4"), ], default="", max_length=256, ), ), ( "ground_type_ec8", models.CharField( blank=True, choices=[ ("unknown", "Unknown"), ("a", "A"), ("b", "B"), ("c", "C"), ("d", "D"), ("e", "E"), ("s1", "S1"), ("s2", "S2"), ], default="", max_length=256, ), ), ("groundwater_depth", models.IntegerField(default=0)), ("vs_30", models.IntegerField(default=0)), ("f0", models.IntegerField(default=0)), ("amp_f0", models.IntegerField(default=0)), ("basin_flag", models.BooleanField(default=False)), ("bedrock_depth", models.IntegerField(default=0)), ], bases=("book.extentitybase",), ), migrations.CreateModel( name="ExtOwnerData", fields=[ ( "extentitybase_ptr", models.OneToOneField( auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to="book.ExtEntityBase", ), ), ( "name_first", models.CharField(blank=True, default="n/a", max_length=256), ), ( "name_last", models.CharField(blank=True, default="n/a", max_length=256), ), ( "department", models.CharField(blank=True, default="n/a", max_length=256), ), ("agency", models.CharField(blank=True, default="n/a", max_length=256)), ("city", models.CharField(blank=True, default="n/a", max_length=256)), ("street", models.CharField(blank=True, default="n/a", max_length=256)), ( "country", models.CharField(blank=True, default="n/a", max_length=256), ), ("phone", models.CharField(blank=True, default="n/a", max_length=256)), ("email", models.CharField(blank=True, default="n/a", max_length=256)), ], bases=("book.extentitybase",), ), migrations.CreateModel( name="Photo", fields=[ ( "extentitybase_ptr", models.OneToOneField( auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to="book.ExtEntityBase", ), ), ("description", models.CharField(blank=True, max_length=1024)), ( "image", models.ImageField(upload_to=book.models.Photo.path_file_name), ), ("uploaded_at", models.DateTimeField(auto_now_add=True)), ( "fdsn_station", models.ForeignKey( null=True, on_delete=django.db.models.deletion.SET_NULL, related_name="photos", to="book.FdsnStation", ), ), ], options={"ordering": ["uploaded_at"],}, bases=("book.extentitybase",), ), migrations.AddField( model_name="fdsnnetwork", name="fdsn_node", field=models.ForeignKey( default=None, on_delete=django.db.models.deletion.CASCADE, related_name="fdsn_networks", to="book.FdsnNode", ), ), migrations.AddField( model_name="fdsnstation", name="ext_basic_data", field=models.OneToOneField( null=True, on_delete=django.db.models.deletion.SET_NULL, related_name="station", to="book.ExtBasicData", ), ), migrations.AddField( model_name="fdsnstation", name="ext_borehole_data", field=models.OneToOneField( null=True, on_delete=django.db.models.deletion.SET_NULL, related_name="station", to="book.ExtBoreholeData", ), ), migrations.AddField( model_name="fdsnstation", name="ext_housing_data", field=models.OneToOneField( null=True, on_delete=django.db.models.deletion.SET_NULL, related_name="station", to="book.ExtHousingData", ), ), migrations.AddField( model_name="fdsnstation", name="ext_morphology_data", field=models.OneToOneField( null=True, on_delete=django.db.models.deletion.SET_NULL, related_name="station", to="book.ExtMorphologyData", ), ), migrations.AddField( model_name="fdsnstation", name="ext_owner_data", field=models.OneToOneField( null=True, on_delete=django.db.models.deletion.SET_NULL, related_name="station", to="book.ExtOwnerData", ), ), migrations.AlterUniqueTogether( name="fdsnnetwork", unique_together={("fdsn_node", "code", "start_date")}, ), migrations.AddField( model_name="extaccessdata", name="fdsn_station", field=models.ForeignKey( null=True, on_delete=django.db.models.deletion.SET_NULL, related_name="access_data", to="book.FdsnStation", ), ), migrations.AddField( model_name="extaccessdata", name="updated_by", field=models.ForeignKey( null=True, on_delete=django.db.models.deletion.SET_NULL, related_name="+", to=settings.AUTH_USER_MODEL, ), ), migrations.AlterUniqueTogether( name="fdsnstation", unique_together={("fdsn_network", "code", "start_date")}, ), ]