# -*- coding: utf-8 -*-
# Generated by Django 1.10.3.dev20161004124613 on 2016-10-10 12:42
from __future__ import unicode_literals

from django.db import migrations, models
import uuid


class Migration(migrations.Migration):

    dependencies = [
        ('api', '0003_recordtag'),
    ]

    operations = [
        migrations.CreateModel(
            name='GeoServiceMetadata',
            fields=[
                ('api_id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False, verbose_name='uuid')),
                ('identifier', models.CharField(max_length=255, verbose_name='external identifier')),
                ('language', models.CharField(choices=[('de', 'de'), ('fr', 'fr'), ('en', 'en')], default='de', max_length=20, verbose_name='language')),
                ('title', models.CharField(max_length=255, verbose_name='title')),
                ('abstract', models.TextField(verbose_name='abstract')),
                ('publication_year', models.IntegerField(verbose_name='publication year')),
                ('publication_lineage', models.CharField(blank=True, max_length=255, null=True, verbose_name='history')),
                ('is_latest', models.BooleanField(default=False, max_length=255, verbose_name='latest of series')),
                ('geography', models.CharField(default='Schweiz', max_length=255, verbose_name='geography')),
                ('extent', models.CharField(blank=True, help_text='needs follow the form `BOX(x1 y1,x2 y2)`', max_length=255, null=True, verbose_name='extent')),
                ('geodata_type', models.CharField(choices=[('raster', 'raster'), ('vector', 'vector'), ('other', 'other')], max_length=255, verbose_name='geodata type')),
                ('source', models.CharField(max_length=2083, verbose_name='source')),
                ('metadata_link', models.URLField(max_length=2083, verbose_name='metadata link')),
                ('access_link', models.URLField(max_length=2083, verbose_name='access link')),
                ('base_link', models.URLField(blank=True, max_length=2083, null=True, verbose_name='access to data')),
                ('collection', models.CharField(blank=True, max_length=255, null=True, verbose_name='group name')),
                ('dataset', models.CharField(blank=True, max_length=255, null=True, verbose_name='dataset name')),
                ('arcgis_layer_link', models.URLField(blank=True, max_length=2083, null=True, verbose_name='ArcGIS layer link')),
                ('qgis_layer_link', models.URLField(blank=True, max_length=2083, null=True, verbose_name='QGIS layer link')),
                ('arcgis_symbology_link', models.URLField(blank=True, max_length=2083, null=True, verbose_name='ArcGIS symbology link')),
                ('qgis_symbology_link', models.URLField(blank=True, max_length=2083, null=True, verbose_name='QGIS symbology link')),
                ('service_type', models.CharField(blank=True, max_length=255, null=True, verbose_name='service type')),
                ('crs', models.CharField(max_length=20, verbose_name='coordinate reference system')),
                ('term_link', models.URLField(max_length=2083, verbose_name='terms of use')),
                ('proved', models.DateField(blank=True, null=True, verbose_name='proving date')),
                ('visibility', models.CharField(choices=[('public', 'public'), ('test', 'test'), ('hsr-internal', 'hsr-internal')], default='public', max_length=255, verbose_name='access restriction')),
                ('login_name', models.CharField(max_length=255, verbose_name='login name')),
                ('modified', models.DateTimeField(auto_now=True, null=True, verbose_name='last modification')),
                ('created', models.DateTimeField(auto_now_add=True, verbose_name='created on')),
                ('imported', models.BooleanField(default=False, editable=False, verbose_name='imported')),
            ],
        ),
    ]
