aboutsummaryrefslogtreecommitdiffstats
path: root/client/migrations
diff options
context:
space:
mode:
authorAndrea Lepori <alepori@student.ethz.ch>2020-06-18 23:17:08 +0200
committerAndrea Lepori <alepori@student.ethz.ch>2020-06-18 23:17:08 +0200
commitfbb4637a77dc5982b4e694dd31a0aa7d11cec17c (patch)
tree2b277a09a8dacff187211cacfad7da5b5a3dda9b /client/migrations
downloadscout-subs-fbb4637a77dc5982b4e694dd31a0aa7d11cec17c.tar.gz
scout-subs-fbb4637a77dc5982b4e694dd31a0aa7d11cec17c.zip
initial commit
Diffstat (limited to 'client/migrations')
-rw-r--r--client/migrations/0001_initial.py31
-rw-r--r--client/migrations/0002_usercode_user.py21
-rw-r--r--client/migrations/__init__.py0
3 files changed, 52 insertions, 0 deletions
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
--- /dev/null
+++ b/client/migrations/__init__.py