3
0
Fork 0
mirror of https://github.com/nanoy42/coope synced 2024-11-29 16:12:26 +00:00
coope/gestion/migrations/0004_consumption.py

26 lines
939 B
Python
Raw Normal View History

2018-11-25 12:52:32 +00:00
# Generated by Django 2.1 on 2018-11-23 13:03
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('gestion', '0003_auto_20181123_0330'),
]
operations = [
migrations.CreateModel(
name='Consumption',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('quantity', models.PositiveIntegerField(default=0)),
('customer', models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, related_name='consumption_global_taken', to=settings.AUTH_USER_MODEL)),
('product', models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, to='gestion.Product')),
],
),
]