From e2c8e07ac35c2399d414312e9946a4d2e93cf683 Mon Sep 17 00:00:00 2001 From: Steve Yonkeu <yokwejuste@yahoo.com> Date: Wed, 24 Jan 2024 19:24:44 +0100 Subject: [PATCH] feat: updates to migrations --- apps/portfolio/migrations/0001_initial.py | 50 ---------------- apps/users/migrations/0001_initial.py | 69 ----------------------- 2 files changed, 119 deletions(-) delete mode 100644 apps/portfolio/migrations/0001_initial.py delete mode 100644 apps/users/migrations/0001_initial.py diff --git a/apps/portfolio/migrations/0001_initial.py b/apps/portfolio/migrations/0001_initial.py deleted file mode 100644 index 90acc21..0000000 --- a/apps/portfolio/migrations/0001_initial.py +++ /dev/null @@ -1,50 +0,0 @@ -# Generated by Django 5.0.1 on 2024-01-22 11:31 - -import utils.main -from django.db import migrations, models - - -class Migration(migrations.Migration): - - initial = True - - dependencies = [ - ] - - operations = [ - migrations.CreateModel( - name='Categories', - fields=[ - ('id', models.UUIDField(default=utils.main.generate_uuid, editable=False, help_text='Unique identifier for this object.', primary_key=True, serialize=False, verbose_name='id')), - ('created', models.DateTimeField(auto_now_add=True, help_text='Date and time when this object was created.', verbose_name='created')), - ('modified', models.DateTimeField(auto_now=True, help_text='Date and time when this object was last modified.', verbose_name='modified')), - ('is_deleted', models.BooleanField(default=False, help_text='Boolean field to mark if this object is deleted.', verbose_name='is deleted')), - ('name', models.CharField(help_text='Name of the category.', max_length=255, verbose_name='name')), - ('description', models.TextField(help_text='Description of the category.', verbose_name='description')), - ], - options={ - 'verbose_name': 'category', - 'verbose_name_plural': 'categories', - }, - ), - migrations.CreateModel( - name='Projects', - fields=[ - ('id', models.UUIDField(default=utils.main.generate_uuid, editable=False, help_text='Unique identifier for this object.', primary_key=True, serialize=False, verbose_name='id')), - ('created', models.DateTimeField(auto_now_add=True, help_text='Date and time when this object was created.', verbose_name='created')), - ('modified', models.DateTimeField(auto_now=True, help_text='Date and time when this object was last modified.', verbose_name='modified')), - ('is_deleted', models.BooleanField(default=False, help_text='Boolean field to mark if this object is deleted.', verbose_name='is deleted')), - ('name', models.CharField(help_text='Name of the project.', max_length=255, verbose_name='name')), - ('slug', models.SlugField(help_text='Slug for the project.', max_length=255, unique=True, verbose_name='slug')), - ('description', models.TextField(help_text='Description of the project.', verbose_name='description')), - ('image', models.ImageField(help_text='Image for the project.', upload_to='projects/', verbose_name='image')), - ('url', models.URLField(help_text='URL for the project.', max_length=255, verbose_name='url')), - ('is_featured', models.BooleanField(default=False, help_text='Boolean field to mark if this project is featured.', verbose_name='is featured')), - ('categories', models.ManyToManyField(help_text='Categories for the project.', related_name='projects', to='portfolio.categories', verbose_name='categories')), - ], - options={ - 'verbose_name': 'project', - 'verbose_name_plural': 'projects', - }, - ), - ] diff --git a/apps/users/migrations/0001_initial.py b/apps/users/migrations/0001_initial.py deleted file mode 100644 index ece3f81..0000000 --- a/apps/users/migrations/0001_initial.py +++ /dev/null @@ -1,69 +0,0 @@ -# Generated by Django 5.0.1 on 2024-01-22 11:31 - -import django.db.models.deletion -import django.utils.timezone -import django_tenants.postgresql_backend.base -import utils.main -from django.db import migrations, models - - -class Migration(migrations.Migration): - - initial = True - - dependencies = [ - ] - - operations = [ - migrations.CreateModel( - name='VisuleoUser', - fields=[ - ('password', models.CharField(max_length=128, verbose_name='password')), - ('id', models.UUIDField(default=utils.main.generate_uuid, editable=False, help_text='Unique identifier for this object.', primary_key=True, serialize=False, verbose_name='id')), - ('created', models.DateTimeField(auto_now_add=True, help_text='Date and time when this object was created.', verbose_name='created')), - ('modified', models.DateTimeField(auto_now=True, help_text='Date and time when this object was last modified.', verbose_name='modified')), - ('is_deleted', models.BooleanField(default=False, help_text='Boolean field to mark if this object is deleted.', verbose_name='is deleted')), - ('name', models.CharField(blank=True, help_text="User's full name.", max_length=255, verbose_name='name')), - ('email', models.EmailField(help_text="User's email address.", max_length=254, unique=True, verbose_name='email address')), - ('phone_number', models.CharField(blank=True, help_text="User's phone number.", max_length=20, verbose_name='phone number')), - ('is_email_verified', models.BooleanField(default=False, help_text="Boolean field to mark if this user's email is verified.", verbose_name='is email verified')), - ('is_phone_number_verified', models.BooleanField(default=False, help_text="Boolean field to mark if this user's phone number is verified.", verbose_name='is phone number verified')), - ('is_active', models.BooleanField(default=True, help_text='Boolean field to mark if this user is active.', verbose_name='is active')), - ('is_superuser', models.BooleanField(default=False, help_text='Boolean field to mark if this user is superuser.', verbose_name='is superuser')), - ('last_login', models.DateTimeField(default=django.utils.timezone.now, help_text='Date and time when this user last logged in.', verbose_name='last login')), - ('date_joined', models.DateTimeField(default=django.utils.timezone.now, help_text='Date and time when this user joined.', verbose_name='date joined')), - ], - options={ - 'verbose_name': 'user', - 'verbose_name_plural': 'users', - 'ordering': ('-created', '-modified'), - }, - ), - migrations.CreateModel( - name='Client', - fields=[ - ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), - ('schema_name', models.CharField(db_index=True, max_length=63, unique=True, validators=[django_tenants.postgresql_backend.base._check_schema_name])), - ('name', models.CharField(max_length=100)), - ('subdomain', models.CharField(max_length=100, unique=True)), - ('paid_until', models.DateField()), - ('on_trial', models.BooleanField()), - ('created_on', models.DateField(auto_now_add=True)), - ], - options={ - 'abstract': False, - }, - ), - migrations.CreateModel( - name='Domain', - fields=[ - ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), - ('domain', models.CharField(db_index=True, max_length=253, unique=True)), - ('is_primary', models.BooleanField(db_index=True, default=True)), - ('tenant', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='domains', to='users.client')), - ], - options={ - 'abstract': False, - }, - ), - ]