diff --git a/apps/portfolio/migrations/0001_initial.py b/apps/portfolio/migrations/0001_initial.py new file mode 100644 index 0000000..c419e99 --- /dev/null +++ b/apps/portfolio/migrations/0001_initial.py @@ -0,0 +1,84 @@ +# Generated by Django 5.0.1 on 2024-01-24 18:24 + +import django.db.models.deletion +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', + 'ordering': ('name',), + }, + ), + migrations.CreateModel( + name='Skills', + 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 skill.', max_length=255, verbose_name='name')), + ('description', models.TextField(help_text='Description of the skill.', verbose_name='description')), + ('is_featured', models.BooleanField(default=False, help_text='Boolean field to mark if this skill is featured.', verbose_name='is featured')), + ], + options={ + 'verbose_name': 'skill', + 'verbose_name_plural': 'skills', + }, + ), + 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')), + ('display_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', + }, + ), + migrations.CreateModel( + name='ProjectImages', + 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')), + ('image', models.ImageField(help_text='Image for the project.', upload_to='projects/', verbose_name='image')), + ('project_image_id', models.IntegerField(help_text='Project image id.', verbose_name='project image id')), + ('project', models.ForeignKey(help_text='Project for the image.', on_delete=django.db.models.deletion.CASCADE, related_name='images', to='portfolio.projects', verbose_name='project')), + ], + options={ + 'verbose_name': 'project image', + 'verbose_name_plural': 'project images', + }, + ), + ] diff --git a/apps/users/migrations/0001_initial.py b/apps/users/migrations/0001_initial.py new file mode 100644 index 0000000..ac48eb6 --- /dev/null +++ b/apps/users/migrations/0001_initial.py @@ -0,0 +1,82 @@ +# Generated by Django 5.0.1 on 2024-01-24 18:24 + +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='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='UserTag', + fields=[ + ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), + ('name', models.CharField(help_text='Name of the user type.', max_length=255, verbose_name='name')), + ], + options={ + 'verbose_name': 'user type', + 'verbose_name_plural': 'user types', + 'ordering': ('name',), + }, + ), + 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, + }, + ), + 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')), + ('user_tag', models.ManyToManyField(help_text='User tag for the user.', related_name='users', to='users.usertag', verbose_name='user tag')), + ], + options={ + 'verbose_name': 'user', + 'verbose_name_plural': 'users', + 'ordering': ('-created', '-modified'), + }, + ), + ]