Commit a596b6b5 authored by Lozac'h Loic's avatar Lozac'h Loic
Browse files

yoh

parent 94d91afb
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<?eclipse-pydev version="1.0"?><pydev_project>
<pydev_property name="org.python.pydev.PYTHON_PROJECT_INTERPRETER">Default</pydev_property>
<pydev_property name="org.python.pydev.PYTHON_PROJECT_VERSION">python interpreter</pydev_property>
<pydev_pathproperty name="org.python.pydev.PROJECT_SOURCE_PATH">
<path>/${PROJECT_DIR_NAME}/SentinelDM</path>
</pydev_pathproperty>
</pydev_project>
# Generated by Django 2.2.14 on 2020-07-17 17:53
import django.contrib.gis.db.models.fields
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='ParcelleGraphique',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('id_parcel', models.CharField(max_length=10)),
('surf_parc', models.FloatField()),
('code_cultu', models.CharField(max_length=3)),
('code_group', models.CharField(max_length=2)),
('culture_d1', models.CharField(blank=True, max_length=3, null=True)),
('culture_d2', models.CharField(blank=True, max_length=3, null=True)),
('mpoly', django.contrib.gis.db.models.fields.MultiPolygonField(srid=2154)),
],
),
migrations.CreateModel(
name='TileEnvelope',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('fid', models.BigIntegerField()),
('area', models.FloatField()),
('perimeter', models.FloatField()),
('tile', models.CharField(max_length=254)),
('geom', django.contrib.gis.db.models.fields.MultiPolygonField(srid=2154)),
('parcelles', models.ManyToManyField(to='frozenapp.ParcelleGraphique')),
],
),
migrations.CreateModel(
name='Sentinel1Image',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('sentinel1_date', models.DateTimeField()),
('sentinel1_pltf', models.CharField(blank=True, max_length=3, null=True)),
('sentinel1_orbit', models.CharField(blank=True, max_length=3, null=True)),
('processed', models.BooleanField(default=False)),
('tile', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='frozenapp.TileEnvelope')),
],
),
migrations.CreateModel(
name='ParcelEvent',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('meansigma40', models.FloatField()),
('meantemp', models.FloatField()),
('frozen_type', models.IntegerField(blank=True, null=True)),
('parcelle_type', models.IntegerField()),
('parcelle', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='frozenapp.ParcelleGraphique')),
('sentinel1', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='frozenapp.Sentinel1Image')),
],
),
migrations.AddConstraint(
model_name='sentinel1image',
constraint=models.UniqueConstraint(fields=('sentinel1_date', 'tile'), name='datepartile_unique'),
),
migrations.AddConstraint(
model_name='parcelevent',
constraint=models.UniqueConstraint(fields=('parcelle', 'sentinel1'), name='parcelpardate_unique'),
),
]
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment