From fbb4637a77dc5982b4e694dd31a0aa7d11cec17c Mon Sep 17 00:00:00 2001 From: Andrea Lepori Date: Thu, 18 Jun 2020 23:17:08 +0200 Subject: initial commit --- client/migrations/0001_initial.py | 31 +++++++++++++++++++++++++++++++ client/migrations/0002_usercode_user.py | 21 +++++++++++++++++++++ client/migrations/__init__.py | 0 3 files changed, 52 insertions(+) create mode 100644 client/migrations/0001_initial.py create mode 100644 client/migrations/0002_usercode_user.py create mode 100644 client/migrations/__init__.py (limited to 'client/migrations') diff --git a/client/migrations/0001_initial.py b/client/migrations/0001_initial.py new file mode 100644 index 0000000..d680877 --- /dev/null +++ b/client/migrations/0001_initial.py @@ -0,0 +1,31 @@ +# Generated by Django 3.0.7 on 2020-06-18 16:25 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + initial = True + + dependencies = [ + ] + + operations = [ + migrations.CreateModel( + name='Document', + fields=[ + ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), + ('code', models.IntegerField(default=0)), + ], + options={ + 'permissions': [('approved', 'The user is approved')], + }, + ), + migrations.CreateModel( + name='UserCode', + fields=[ + ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), + ('code', models.IntegerField(default=0)), + ], + ), + ] diff --git a/client/migrations/0002_usercode_user.py b/client/migrations/0002_usercode_user.py new file mode 100644 index 0000000..aaaf193 --- /dev/null +++ b/client/migrations/0002_usercode_user.py @@ -0,0 +1,21 @@ +# Generated by Django 3.0.7 on 2020-06-18 16:41 + +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), + ('client', '0001_initial'), + ] + + operations = [ + migrations.AddField( + model_name='usercode', + name='user', + field=models.ForeignKey(default=None, on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL), + ), + ] diff --git a/client/migrations/__init__.py b/client/migrations/__init__.py new file mode 100644 index 0000000..e69de29 -- cgit v1.2.1