Skip to content

Commit

Permalink
Formatting.
Browse files Browse the repository at this point in the history
  • Loading branch information
Theophile-Madet committed Oct 20, 2023
1 parent 7d374ec commit 4f2b054
Show file tree
Hide file tree
Showing 3 changed files with 62 additions and 29 deletions.
61 changes: 44 additions & 17 deletions tapir/statistics/migrations/0001_initial.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
# Generated by Django 3.2.21 on 2023-10-20 13:41

import django.db.models.deletion
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion


class Migration(migrations.Migration):

initial = True

dependencies = [
Expand All @@ -15,26 +14,54 @@ class Migration(migrations.Migration):

operations = [
migrations.CreateModel(
name='ProcessedPurchaseFiles',
name="ProcessedPurchaseFiles",
fields=[
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('file_name', models.CharField(max_length=255)),
('processed_on', models.DateTimeField()),
(
"id",
models.BigAutoField(
auto_created=True,
primary_key=True,
serialize=False,
verbose_name="ID",
),
),
("file_name", models.CharField(max_length=255)),
("processed_on", models.DateTimeField()),
],
),
migrations.CreateModel(
name='PurchaseBasket',
name="PurchaseBasket",
fields=[
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('purchase_date', models.DateTimeField()),
('cashier', models.IntegerField()),
('purchase_counter', models.IntegerField()),
('gross_amount', models.FloatField()),
('first_net_amount', models.FloatField()),
('second_net_amount', models.FloatField()),
('discount', models.FloatField()),
('source_file', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='statistics.processedpurchasefiles')),
('tapir_user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
(
"id",
models.BigAutoField(
auto_created=True,
primary_key=True,
serialize=False,
verbose_name="ID",
),
),
("purchase_date", models.DateTimeField()),
("cashier", models.IntegerField()),
("purchase_counter", models.IntegerField()),
("gross_amount", models.FloatField()),
("first_net_amount", models.FloatField()),
("second_net_amount", models.FloatField()),
("discount", models.FloatField()),
(
"source_file",
models.ForeignKey(
on_delete=django.db.models.deletion.CASCADE,
to="statistics.processedpurchasefiles",
),
),
(
"tapir_user",
models.ForeignKey(
on_delete=django.db.models.deletion.CASCADE,
to=settings.AUTH_USER_MODEL,
),
),
],
),
]
Original file line number Diff line number Diff line change
@@ -1,21 +1,24 @@
# Generated by Django 3.2.21 on 2023-10-20 16:09

import django.db.models.deletion
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),
('statistics', '0001_initial'),
("statistics", "0001_initial"),
]

operations = [
migrations.AlterField(
model_name='purchasebasket',
name='tapir_user',
field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL),
model_name="purchasebasket",
name="tapir_user",
field=models.ForeignKey(
null=True,
on_delete=django.db.models.deletion.CASCADE,
to=settings.AUTH_USER_MODEL,
),
),
]
Original file line number Diff line number Diff line change
@@ -1,21 +1,24 @@
# Generated by Django 3.2.21 on 2023-10-20 16:24

import django.db.models.deletion
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),
('statistics', '0002_alter_purchasebasket_tapir_user'),
("statistics", "0002_alter_purchasebasket_tapir_user"),
]

operations = [
migrations.AlterField(
model_name='purchasebasket',
name='tapir_user',
field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, to=settings.AUTH_USER_MODEL),
model_name="purchasebasket",
name="tapir_user",
field=models.ForeignKey(
null=True,
on_delete=django.db.models.deletion.SET_NULL,
to=settings.AUTH_USER_MODEL,
),
),
]

0 comments on commit 4f2b054

Please sign in to comment.