28 lines
999 B
Python
28 lines
999 B
Python
# Generated by Django 4.0 on 2022-01-02 18:28
|
|
|
|
from django.db import migrations, models
|
|
import django.db.models.deletion
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
dependencies = [
|
|
('app', '0001_initial'),
|
|
]
|
|
|
|
operations = [
|
|
migrations.CreateModel(
|
|
name='Resource',
|
|
fields=[
|
|
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
|
('name', models.CharField(max_length=128, unique=True)),
|
|
('unit', models.CharField(max_length=128, unique=True)),
|
|
('minimum_units', models.FloatField(blank=True, null=True)),
|
|
('maximum_units', models.FloatField(blank=True, null=True)),
|
|
('step_size', models.FloatField(default=1)),
|
|
('price', models.FloatField()),
|
|
('timeframe', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='app.timeframe')),
|
|
],
|
|
),
|
|
]
|