This repository has been archived by the owner on Apr 11, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
/
0001_initial.py
106 lines (101 loc) · 4.39 KB
/
0001_initial.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('plan', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='GarminActivity',
fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
('garmin_id', models.IntegerField(unique=True)),
('name', models.CharField(max_length=255)),
('time', models.DurationField(null=True, blank=True)),
('distance', models.FloatField()),
('speed', models.TimeField()),
('md5_raw', models.CharField(max_length=32)),
('md5_laps', models.CharField(max_length=32, null=True)),
('md5_details', models.CharField(max_length=32, null=True)),
('date', models.DateTimeField()),
('created', models.DateTimeField(auto_now_add=True)),
('updated', models.DateTimeField(auto_now=True)),
],
options={
'db_table': 'garmin_activity',
},
bases=(models.Model,),
),
migrations.CreateModel(
name='RaceCategory',
fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
('name', models.CharField(max_length=250)),
('distance', models.FloatField(null=True, blank=True)),
],
options={
'db_table': 'sport_race_category',
},
bases=(models.Model,),
),
migrations.CreateModel(
name='Sport',
fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
('name', models.CharField(max_length=250)),
('slug', models.SlugField(unique=True)),
('depth', models.IntegerField(default=0)),
],
options={
'db_table': 'sport_list',
},
bases=(models.Model,),
),
migrations.CreateModel(
name='SportDay',
fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
('date', models.DateField()),
],
options={
'db_table': 'sport_day',
},
bases=(models.Model,),
),
migrations.CreateModel(
name='SportSession',
fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
('time', models.DurationField(null=True, blank=True)),
('distance', models.FloatField(null=True, blank=True)),
('name', models.CharField(max_length=255, null=True, blank=True)),
('comment', models.TextField(null=True, blank=True)),
('type', models.CharField(default=b'training', max_length=12, choices=[(b'training', b'Entrainement'), (b'race', b'Course'), (b'rest', b'Repos')])),
('created', models.DateTimeField(auto_now_add=True)),
('updated', models.DateTimeField(auto_now=True)),
],
options={
'db_table': 'sport_session',
},
bases=(models.Model,),
),
migrations.CreateModel(
name='SportWeek',
fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
('year', models.IntegerField(default=2013)),
('week', models.IntegerField(default=0)),
('published', models.BooleanField(default=False)),
('created', models.DateTimeField(auto_now_add=True)),
('updated', models.DateTimeField(auto_now=True)),
('comment', models.TextField(null=True, blank=True)),
('task', models.CharField(max_length=36, null=True, blank=True)),
('plan_week', models.ForeignKey(blank=True, to='plan.PlanWeek', null=True)),
],
options={
'db_table': 'sport_week',
},
bases=(models.Model,),
),
]