2015-03-31 21:25:19 +00:00
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
from __future__ import unicode_literals
|
|
|
|
|
|
|
|
from django.db import models, migrations
|
2015-04-01 20:39:02 +00:00
|
|
|
import django.contrib.postgres.fields
|
2015-03-31 21:25:19 +00:00
|
|
|
|
|
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
|
|
|
|
dependencies = [
|
|
|
|
]
|
|
|
|
|
|
|
|
operations = [
|
|
|
|
migrations.CreateModel(
|
|
|
|
name='Exercise',
|
|
|
|
fields=[
|
2015-04-01 20:39:02 +00:00
|
|
|
('id', models.AutoField(verbose_name='ID', auto_created=True, primary_key=True, serialize=False)),
|
|
|
|
('names', django.contrib.postgres.fields.ArrayField(base_field=models.CharField(max_length=200), size=None)),
|
2015-03-31 21:25:19 +00:00
|
|
|
],
|
|
|
|
),
|
|
|
|
migrations.CreateModel(
|
|
|
|
name='Set',
|
|
|
|
fields=[
|
2015-04-01 20:39:02 +00:00
|
|
|
('id', models.AutoField(verbose_name='ID', auto_created=True, primary_key=True, serialize=False)),
|
2015-03-31 21:25:19 +00:00
|
|
|
('date', models.DateField()),
|
2015-04-01 20:39:02 +00:00
|
|
|
('weight_kg', models.DecimalField(decimal_places=3, max_digits=7)),
|
2015-03-31 21:25:19 +00:00
|
|
|
('reps', models.PositiveIntegerField()),
|
|
|
|
('source', models.CharField(max_length=100)),
|
|
|
|
('exercise', models.ForeignKey(to='lifting.Exercise', related_name='sets')),
|
|
|
|
],
|
|
|
|
),
|
|
|
|
]
|