summaryrefslogtreecommitdiffstats
path: root/myuser/migrations
diff options
context:
space:
mode:
Diffstat (limited to 'myuser/migrations')
-rw-r--r--myuser/migrations/0001_initial.py52
-rw-r--r--myuser/migrations/__init__.py0
2 files changed, 52 insertions, 0 deletions
diff --git a/myuser/migrations/0001_initial.py b/myuser/migrations/0001_initial.py
new file mode 100644
index 0000000..3442670
--- /dev/null
+++ b/myuser/migrations/0001_initial.py
@@ -0,0 +1,52 @@
+# Generated by Django 4.0.8 on 2022-11-02 09:00
+
+from django.db import migrations, models
+import django.db.models.deletion
+
+
+class Migration(migrations.Migration):
+
+ initial = True
+
+ dependencies = [
+ ('auth', '0012_alter_user_first_name_max_length'),
+ ('engagements', '0001_initial'),
+ ]
+
+ operations = [
+ migrations.CreateModel(
+ name='Team',
+ fields=[
+ ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
+ ('date_created', models.DateTimeField(auto_now_add=True)),
+ ('last_modified', models.DateTimeField(auto_now=True)),
+ ('name', models.CharField(max_length=256)),
+ ],
+ options={
+ 'abstract': False,
+ },
+ ),
+ migrations.CreateModel(
+ name='TeamUser',
+ fields=[
+ ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
+ ('password', models.CharField(max_length=128, verbose_name='password')),
+ ('last_login', models.DateTimeField(blank=True, null=True, verbose_name='last login')),
+ ('is_superuser', models.BooleanField(default=False, help_text='Designates that this user has all permissions without explicitly assigning them.', verbose_name='superuser status')),
+ ('email', models.EmailField(max_length=255, unique=True, verbose_name='email address')),
+ ('first_name', models.CharField(blank=True, max_length=20, null=True)),
+ ('last_name', models.CharField(blank=True, max_length=20, null=True)),
+ ('dapsy', models.BooleanField(default=False)),
+ ('is_active', models.BooleanField(default=True)),
+ ('is_admin', models.BooleanField(default=False)),
+ ('designation', models.CharField(blank=True, max_length=3, null=True)),
+ ('groups', models.ManyToManyField(blank=True, help_text='The groups this user belongs to. A user will get all permissions granted to each of their groups.', related_name='user_set', related_query_name='user', to='auth.group', verbose_name='groups')),
+ ('lead_for', models.ManyToManyField(blank=True, related_name='lead_inspector', to='engagements.organisation')),
+ ('team', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, related_name='team_members', to='myuser.team')),
+ ('user_permissions', models.ManyToManyField(blank=True, help_text='Specific permissions for this user.', related_name='user_set', related_query_name='user', to='auth.permission', verbose_name='user permissions')),
+ ],
+ options={
+ 'abstract': False,
+ },
+ ),
+ ]
diff --git a/myuser/migrations/__init__.py b/myuser/migrations/__init__.py
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/myuser/migrations/__init__.py