32 lines
1.0 KiB
Python
32 lines
1.0 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='Exercise',
|
|
fields=[
|
|
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
|
|
('name', models.CharField(max_length=200)),
|
|
],
|
|
),
|
|
migrations.CreateModel(
|
|
name='Set',
|
|
fields=[
|
|
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
|
|
('date', models.DateField()),
|
|
('weight_kg', models.DecimalField(max_digits=7, decimal_places=3)),
|
|
('reps', models.PositiveIntegerField()),
|
|
('source', models.CharField(max_length=100)),
|
|
('exercise', models.ForeignKey(to='lifting.Exercise', related_name='sets')),
|
|
],
|
|
),
|
|
]
|