49 lines
1.6 KiB
Python
49 lines
1.6 KiB
Python
# -*- coding: utf-8 -*-
|
|
from __future__ import unicode_literals
|
|
|
|
from django.db import models, migrations
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
dependencies = [
|
|
]
|
|
|
|
operations = [
|
|
migrations.CreateModel(
|
|
name='Point',
|
|
fields=[
|
|
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
|
|
('time', models.DateTimeField()),
|
|
('latitude', models.FloatField()),
|
|
('longitude', models.FloatField()),
|
|
('elevation', models.DecimalField(max_digits=20, decimal_places=2)),
|
|
],
|
|
),
|
|
migrations.CreateModel(
|
|
name='Segment',
|
|
fields=[
|
|
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
|
|
],
|
|
),
|
|
migrations.CreateModel(
|
|
name='Track',
|
|
fields=[
|
|
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
|
|
('start', models.DateTimeField()),
|
|
('name', models.CharField(max_length=1024)),
|
|
('description', models.TextField(blank=True)),
|
|
],
|
|
),
|
|
migrations.AddField(
|
|
model_name='segment',
|
|
name='track',
|
|
field=models.ForeignKey(to='tracking.Track'),
|
|
),
|
|
migrations.AddField(
|
|
model_name='point',
|
|
name='segment',
|
|
field=models.ForeignKey(to='tracking.Segment'),
|
|
),
|
|
]
|