# Generated by Django 3.2.9 on 2022-05-04 15:05

from django.conf import settings
import django.contrib.gis.db.models.fields
from django.db import migrations, models
import django.db.models.deletion
import rog.models


class Migration(migrations.Migration):

    initial = True

    dependencies = [
        ('auth', '0012_alter_user_first_name_max_length'),
    ]

    operations = [
        migrations.CreateModel(
            name='JpnAdminMainPerf',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('geom', django.contrib.gis.db.models.fields.MultiPolygonField(blank=True, null=True, srid=4326)),
                ('adm0_en', models.CharField(blank=True, max_length=254, null=True)),
                ('adm0_ja', models.CharField(blank=True, max_length=254, null=True)),
                ('adm0_pcode', models.CharField(blank=True, max_length=254, null=True)),
                ('adm1_en', models.CharField(blank=True, max_length=254, null=True)),
                ('adm1_ja', models.CharField(blank=True, max_length=254, null=True)),
                ('adm1_pcode', models.CharField(blank=True, max_length=254, null=True)),
            ],
            options={
                'db_table': 'jpn_admin_main_perf',
                'managed': False,
            },
        ),
        migrations.CreateModel(
            name='JpnAdminPerf',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('geom', django.contrib.gis.db.models.fields.MultiLineStringField(blank=True, null=True, srid=4326)),
                ('et_id', models.IntegerField(blank=True, null=True)),
                ('et_right', models.CharField(blank=True, max_length=80, null=True)),
                ('et_left', models.CharField(blank=True, max_length=80, null=True)),
                ('adm2_l', models.CharField(blank=True, max_length=50, null=True)),
                ('adm1_l', models.CharField(blank=True, max_length=50, null=True)),
                ('adm0_l', models.CharField(blank=True, max_length=50, null=True)),
                ('adm0_r', models.CharField(blank=True, max_length=50, null=True)),
                ('adm1_r', models.CharField(blank=True, max_length=50, null=True)),
                ('adm2_r', models.CharField(blank=True, max_length=50, null=True)),
                ('admlevel', models.IntegerField(blank=True, null=True)),
            ],
            options={
                'db_table': 'jpn_admin_perf',
                'managed': False,
            },
        ),
        migrations.CreateModel(
            name='JpnSubPerf',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('geom', django.contrib.gis.db.models.fields.MultiPolygonField(blank=True, null=True, srid=4326)),
                ('adm0_en', models.CharField(blank=True, max_length=254, null=True)),
                ('adm0_ja', models.CharField(blank=True, max_length=254, null=True)),
                ('adm0_pcode', models.CharField(blank=True, max_length=254, null=True)),
                ('adm1_en', models.CharField(blank=True, max_length=254, null=True)),
                ('adm1_ja', models.CharField(blank=True, max_length=254, null=True)),
                ('adm1_pcode', models.CharField(blank=True, max_length=254, null=True)),
                ('adm2_ja', models.CharField(blank=True, max_length=254, null=True)),
                ('adm2_en', models.CharField(blank=True, max_length=254, null=True)),
                ('adm2_pcode', models.CharField(blank=True, max_length=254, null=True)),
            ],
            options={
                'db_table': 'jpn_sub_perf',
                'managed': False,
            },
        ),
        migrations.CreateModel(
            name='CustomUser',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('password', models.CharField(max_length=128, verbose_name='password')),
                ('last_login', models.DateTimeField(blank=True, null=True, verbose_name='last login')),
                ('is_superuser', models.BooleanField(default=False, help_text='Designates that this user has all permissions without explicitly assigning them.', verbose_name='superuser status')),
                ('email', models.EmailField(max_length=254, unique=True, verbose_name='email address')),
                ('is_staff', models.BooleanField(default=False)),
                ('is_active', models.BooleanField(default=False)),
                ('groups', models.ManyToManyField(blank=True, help_text='The groups this user belongs to. A user will get all permissions granted to each of their groups.', related_name='user_set', related_query_name='user', to='auth.Group', verbose_name='groups')),
                ('user_permissions', models.ManyToManyField(blank=True, help_text='Specific permissions for this user.', related_name='user_set', related_query_name='user', to='auth.Permission', verbose_name='user permissions')),
            ],
            options={
                'abstract': False,
            },
        ),
        migrations.CreateModel(
            name='Location',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('location_id', models.IntegerField(blank=True, null=True, verbose_name='Location id')),
                ('location_name', models.CharField(default='--- 場所をお願いします --', max_length=255, verbose_name='Location Name')),
                ('category', models.CharField(blank=True, max_length=255, null=True, verbose_name='Category')),
                ('zip', models.CharField(blank=True, max_length=12, null=True, verbose_name='Zip code')),
                ('address', models.CharField(blank=True, max_length=512, null=True, verbose_name='Address')),
                ('prefecture', models.CharField(blank=True, max_length=255, null=True, verbose_name='Prefecture')),
                ('area', models.CharField(blank=True, max_length=255, null=True, verbose_name='Area')),
                ('city', models.CharField(blank=True, max_length=255, null=True, verbose_name='City')),
                ('latitude', models.FloatField(blank=True, null=True, verbose_name='Latitude')),
                ('longitude', models.FloatField(blank=True, null=True, verbose_name='Latitude')),
                ('photos', models.CharField(blank=True, max_length=255, null=True, verbose_name='Phptos')),
                ('videos', models.CharField(blank=True, max_length=255, null=True, verbose_name='Videos')),
                ('webcontents', models.CharField(blank=True, max_length=255, null=True, verbose_name='Web Content')),
                ('status', models.CharField(blank=True, max_length=255, null=True, verbose_name='Status')),
                ('portal', models.CharField(blank=True, max_length=255, null=True, verbose_name='Portal')),
                ('group', models.CharField(blank=True, max_length=255, null=True, verbose_name='Group')),
                ('phone', models.CharField(blank=True, max_length=255, null=True, verbose_name='Phone')),
                ('fax', models.CharField(blank=True, max_length=255, null=True, verbose_name='Fax')),
                ('email', models.EmailField(blank=True, max_length=255, null=True, verbose_name='Email')),
                ('facility', models.CharField(blank=True, max_length=255, null=True, verbose_name='Facility')),
                ('remark', models.CharField(blank=True, max_length=255, null=True, verbose_name='Remarks')),
                ('tags', models.CharField(blank=True, max_length=512, null=True, verbose_name='Tags')),
                ('parammeters', models.CharField(blank=True, max_length=512, null=True, verbose_name='Parameters')),
                ('created_at', models.DateTimeField(auto_now_add=True)),
                ('last_updated_at', models.DateTimeField(auto_now=True)),
                ('geom', django.contrib.gis.db.models.fields.MultiPointField(srid=4326)),
                ('last_updated_user', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.DO_NOTHING, related_name='location_updated_user', to=settings.AUTH_USER_MODEL)),
            ],
        ),
        migrations.CreateModel(
            name='ShapeLayers',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('name', models.CharField(max_length=255, verbose_name='Shape Layer')),
                ('file', models.FileField(blank=True, upload_to=rog.models.get_file_path)),
                ('uploaded_date', models.DateField(auto_now_add=True)),
                ('layerof', models.IntegerField(choices=[(1, 'location'), (2, 'Location_line'), (3, 'Location_polygon')], default=1)),
                ('table_name', models.CharField(blank=True, max_length=255, verbose_name='Table name')),
            ],
        ),
        migrations.CreateModel(
            name='TestModel',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('testbane', models.CharField(max_length=355, verbose_name='test field')),
                ('wanttogo', models.BooleanField(default=False)),
                ('like', models.BooleanField(default=False)),
                ('checkin', models.BooleanField(default=False)),
                ('created_at', models.DateTimeField(auto_now_add=True)),
                ('last_updated_at', models.DateTimeField(auto_now=True)),
            ],
        ),
        migrations.CreateModel(
            name='TravelList',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('travel_id', models.IntegerField(verbose_name='Travel Id')),
                ('start_date', models.DateTimeField(blank=True, null=True, verbose_name='Start date')),
                ('finish_date', models.DateTimeField(blank=True, null=True, verbose_name='End date')),
                ('category', models.CharField(choices=[('PRIVATE', 'Private'), ('GROUP', 'Group'), ('AGENT', 'Agent'), ('ROGAINING', 'Rogaining')], max_length=256)),
                ('title', models.CharField(max_length=255, verbose_name='Title')),
                ('transportation', models.CharField(blank=True, max_length=255, null=True, verbose_name='Transpotation')),
                ('moving_distance', models.IntegerField(blank=True, null=True)),
                ('duration', models.DurationField(blank=True, null=True, verbose_name='Duration')),
                ('eta', models.DateTimeField(blank=True, null=True)),
                ('parammeters', models.CharField(blank=True, max_length=512, null=True, verbose_name='Parameters')),
                ('created_at', models.DateTimeField(auto_now_add=True)),
                ('last_updated_at', models.DateTimeField(auto_now=True)),
                ('last_updated_user', models.ForeignKey(on_delete=django.db.models.deletion.DO_NOTHING, related_name='travel_list_updated_user', to=settings.AUTH_USER_MODEL)),
                ('user', models.ForeignKey(on_delete=django.db.models.deletion.DO_NOTHING, to=settings.AUTH_USER_MODEL)),
            ],
        ),
        migrations.CreateModel(
            name='Useractions',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('wanttogo', models.BooleanField(default=False)),
                ('like', models.BooleanField(default=False)),
                ('checkin', models.BooleanField(default=False)),
                ('created_at', models.DateTimeField(auto_now_add=True)),
                ('last_updated_at', models.DateTimeField(auto_now=True)),
                ('location', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='action_location', to='rog.location')),
                ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='action_user', to=settings.AUTH_USER_MODEL)),
            ],
        ),
        migrations.CreateModel(
            name='TravelPoint',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('distance', models.FloatField(blank=True, null=True)),
                ('transportation', models.CharField(blank=True, max_length=255, null=True, verbose_name='Transpotation')),
                ('eta', models.DateTimeField(blank=True, null=True)),
                ('order_number', models.IntegerField(blank=True, null=True)),
                ('parammeters', models.CharField(blank=True, max_length=512, null=True, verbose_name='Parameters')),
                ('created_at', models.DateTimeField(auto_now_add=True)),
                ('last_updated_at', models.DateTimeField(auto_now=True)),
                ('last_updated_user', models.ForeignKey(on_delete=django.db.models.deletion.DO_NOTHING, related_name='travelpoint_updated_user', to=settings.AUTH_USER_MODEL)),
                ('location', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='rog.location')),
                ('travel_list', models.ForeignKey(on_delete=django.db.models.deletion.DO_NOTHING, to='rog.travellist')),
            ],
        ),
        migrations.CreateModel(
            name='SystemSettings',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('setting_name', models.CharField(max_length=255, verbose_name='Settings Name')),
                ('version', models.CharField(blank=True, max_length=10, null=True, verbose_name='Version')),
                ('effective_date', models.DateTimeField()),
                ('end_date', models.DateTimeField()),
                ('parammeters', models.CharField(max_length=512, verbose_name='Parameters')),
                ('created_at', models.DateTimeField(auto_now_add=True)),
                ('last_updated_at', models.DateTimeField(auto_now=True)),
                ('last_updated_user', models.ForeignKey(on_delete=django.db.models.deletion.DO_NOTHING, related_name='system_setting_updated_user', to=settings.AUTH_USER_MODEL)),
            ],
        ),
        migrations.CreateModel(
            name='RogUser',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('email', models.EmailField(max_length=254, verbose_name='Email')),
                ('phone', models.CharField(max_length=55, verbose_name='Phone Number')),
                ('first_name', models.CharField(max_length=255, verbose_name='First Name')),
                ('middle_name', models.CharField(blank=True, max_length=255, null=True, verbose_name='Middle Name')),
                ('last_name', models.CharField(max_length=255, verbose_name='last_name')),
                ('nickname', models.CharField(blank=True, max_length=255, null=True, verbose_name='Nickname')),
                ('country', models.CharField(default='Japan', max_length=255, verbose_name='Country')),
                ('language', models.CharField(default='Japanese', max_length=255, verbose_name='Language')),
                ('prefecture', models.CharField(blank=True, max_length=255, null=True, verbose_name='Prefecture')),
                ('sex', models.CharField(blank=True, default='unknown', max_length=255, null=True, verbose_name='Sex')),
                ('birthyear', models.IntegerField(blank=True, null=True, verbose_name='Birth year')),
                ('family_structure', models.IntegerField(blank=True, null=True, verbose_name='Family Structure')),
                ('level', models.IntegerField(blank=True, default=0, null=True, verbose_name='Level')),
                ('parammeters', models.CharField(max_length=512, verbose_name='Parameters')),
                ('created_at', models.DateTimeField(auto_now_add=True)),
                ('last_updated_at', models.DateTimeField(auto_now=True)),
                ('introducer', models.ForeignKey(on_delete=django.db.models.deletion.DO_NOTHING, related_name='introduced_uesr', to=settings.AUTH_USER_MODEL)),
                ('last_updated_user', models.ForeignKey(on_delete=django.db.models.deletion.DO_NOTHING, related_name='roguser_updated_user', to=settings.AUTH_USER_MODEL)),
                ('user', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
            ],
        ),
        migrations.CreateModel(
            name='Location_polygon',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('location_id', models.IntegerField(blank=True, null=True, verbose_name='Location id')),
                ('location_name', models.CharField(max_length=255, verbose_name='Location Name')),
                ('category', models.CharField(blank=True, max_length=255, null=True, verbose_name='Category')),
                ('zip', models.CharField(blank=True, max_length=12, null=True, verbose_name='Zip code')),
                ('address', models.CharField(blank=True, max_length=512, null=True, verbose_name='Address')),
                ('prefecture', models.CharField(blank=True, max_length=255, null=True, verbose_name='Prefecture')),
                ('area', models.CharField(blank=True, max_length=255, null=True, verbose_name='Area')),
                ('city', models.CharField(blank=True, max_length=255, null=True, verbose_name='City')),
                ('photos', models.CharField(blank=True, max_length=255, null=True, verbose_name='Phptos')),
                ('videos', models.CharField(blank=True, max_length=255, null=True, verbose_name='Videos')),
                ('webcontents', models.CharField(blank=True, max_length=255, null=True, verbose_name='Web Content')),
                ('status', models.CharField(blank=True, max_length=255, null=True, verbose_name='Status')),
                ('portal', models.CharField(blank=True, max_length=255, null=True, verbose_name='Portal')),
                ('group', models.CharField(blank=True, max_length=255, null=True, verbose_name='Group')),
                ('phone', models.CharField(blank=True, max_length=255, null=True, verbose_name='Phone')),
                ('fax', models.CharField(blank=True, max_length=255, null=True, verbose_name='Fax')),
                ('email', models.EmailField(blank=True, max_length=255, null=True, verbose_name='Email')),
                ('facility', models.CharField(blank=True, max_length=255, null=True, verbose_name='Facility')),
                ('remark', models.CharField(blank=True, max_length=255, null=True, verbose_name='Remarks')),
                ('tags', models.CharField(blank=True, max_length=512, null=True, verbose_name='Tags')),
                ('parammeters', models.CharField(blank=True, max_length=512, null=True, verbose_name='Parameters')),
                ('created_at', models.DateTimeField(auto_now_add=True)),
                ('last_updated_at', models.DateTimeField(auto_now=True)),
                ('geom', django.contrib.gis.db.models.fields.MultiPolygonField(blank=True, null=True, srid=4326)),
                ('last_updated_user', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.DO_NOTHING, related_name='location_polygon_updated_user', to=settings.AUTH_USER_MODEL)),
            ],
        ),
        migrations.CreateModel(
            name='Location_line',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('location_id', models.IntegerField(blank=True, null=True, verbose_name='Location id')),
                ('location_name', models.CharField(max_length=255, verbose_name='Location Name')),
                ('category', models.CharField(blank=True, max_length=255, null=True, verbose_name='Category')),
                ('zip', models.CharField(blank=True, max_length=12, null=True, verbose_name='Zip code')),
                ('address', models.CharField(blank=True, max_length=512, null=True, verbose_name='Address')),
                ('prefecture', models.CharField(blank=True, max_length=255, null=True, verbose_name='Prefecture')),
                ('area', models.CharField(blank=True, max_length=255, null=True, verbose_name='Area')),
                ('city', models.CharField(blank=True, max_length=255, null=True, verbose_name='City')),
                ('photos', models.CharField(blank=True, max_length=255, null=True, verbose_name='Phptos')),
                ('videos', models.CharField(blank=True, max_length=255, null=True, verbose_name='Videos')),
                ('webcontents', models.CharField(blank=True, max_length=255, null=True, verbose_name='Web Content')),
                ('status', models.CharField(blank=True, max_length=255, null=True, verbose_name='Status')),
                ('portal', models.CharField(blank=True, max_length=255, null=True, verbose_name='Portal')),
                ('group', models.CharField(blank=True, max_length=255, null=True, verbose_name='Group')),
                ('phone', models.CharField(blank=True, max_length=255, null=True, verbose_name='Phone')),
                ('fax', models.CharField(blank=True, max_length=255, null=True, verbose_name='Fax')),
                ('email', models.EmailField(blank=True, max_length=255, null=True, verbose_name='Email')),
                ('facility', models.CharField(blank=True, max_length=255, null=True, verbose_name='Facility')),
                ('remark', models.CharField(blank=True, max_length=255, null=True, verbose_name='Remarks')),
                ('tags', models.CharField(blank=True, max_length=512, null=True, verbose_name='Tags')),
                ('parammeters', models.CharField(blank=True, max_length=512, null=True, verbose_name='Parameters')),
                ('created_at', models.DateTimeField(auto_now_add=True)),
                ('last_updated_at', models.DateTimeField(auto_now=True)),
                ('geom', django.contrib.gis.db.models.fields.MultiLineStringField(blank=True, null=True, srid=4326)),
                ('last_updated_user', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.DO_NOTHING, related_name='location_line_updated_user', to=settings.AUTH_USER_MODEL)),
            ],
        ),
        migrations.CreateModel(
            name='JoinedEvent',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('tagname', models.CharField(blank=True, max_length=255, null=True, verbose_name='Tag Name')),
                ('status', models.CharField(choices=[('REGISTERED', 'Registered'), ('ACCEPTED', 'accepted'), ('PAID', 'paid'), ('JOINED', 'joined'), ('CANCELED', 'Canceled')], max_length=256)),
                ('registrationid', models.CharField(max_length=56, verbose_name='Registration Id')),
                ('payment_code', models.CharField(max_length=255, verbose_name='Payment Code')),
                ('paid', models.IntegerField(default=0, verbose_name='Paid Amount')),
                ('remark', models.CharField(blank=True, max_length=255, null=True, verbose_name='Remark')),
                ('parammeters', models.CharField(max_length=512, verbose_name='Parameters')),
                ('created_at', models.DateTimeField(auto_now_add=True)),
                ('last_updated_at', models.DateTimeField(auto_now=True)),
                ('last_updated_user', models.ForeignKey(on_delete=django.db.models.deletion.DO_NOTHING, related_name='joined_event_updated_user', to=settings.AUTH_USER_MODEL)),
                ('user', models.ForeignKey(on_delete=django.db.models.deletion.DO_NOTHING, to=settings.AUTH_USER_MODEL)),
            ],
        ),
        migrations.CreateModel(
            name='Favorite',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('good', models.IntegerField(default=0, verbose_name='Good')),
                ('favorite', models.IntegerField(default=0, verbose_name='Favorite')),
                ('evaluation', models.IntegerField(default=0, verbose_name='Evaluation')),
                ('number_visit', models.IntegerField(default=0, verbose_name='Good')),
                ('last_visited', models.DateTimeField(blank=True, null=True, verbose_name='Last Visited')),
                ('parammeters', models.CharField(blank=True, max_length=512, null=True, verbose_name='Parameters')),
                ('created_at', models.DateTimeField(auto_now_add=True)),
                ('last_updated_at', models.DateTimeField(auto_now=True)),
                ('last_updated_user', models.ForeignKey(on_delete=django.db.models.deletion.DO_NOTHING, related_name='favorite_updated_user', to=settings.AUTH_USER_MODEL)),
                ('location', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='rog.location')),
                ('user', models.ForeignKey(on_delete=django.db.models.deletion.DO_NOTHING, to=settings.AUTH_USER_MODEL)),
            ],
        ),
        migrations.CreateModel(
            name='Event',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('tagname', models.CharField(blank=True, max_length=512, null=True, verbose_name='Parameters')),
                ('status', models.CharField(choices=[('PREPARING', 'Preparing'), ('PROMOTION', 'Promotion'), ('EVENT', 'Event'), ('END', 'End')], max_length=256)),
                ('price', models.IntegerField(default=0, verbose_name='Paid Amount')),
                ('promotion_date', models.DateTimeField(blank=True, null=True, verbose_name='Promotion date')),
                ('event_start', models.DateTimeField(blank=True, null=True, verbose_name='Promotion date')),
                ('event_end', models.DateTimeField(blank=True, null=True, verbose_name='Promotion date')),
                ('remark', models.CharField(blank=True, max_length=256, null=True)),
                ('parammeters', models.CharField(blank=True, max_length=512, null=True, verbose_name='Parameters')),
                ('created_at', models.DateTimeField(auto_now_add=True)),
                ('last_updated_at', models.DateTimeField(auto_now=True)),
                ('last_updated_user', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.DO_NOTHING, related_name='event_updated_user', to=settings.AUTH_USER_MODEL)),
            ],
        ),
    ]
