class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Image', fields=[ ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('image', cloudinary.models.CloudinaryField(max_length=255, verbose_name='photo')), ('name', models.CharField(max_length=30)), ('caption', models.TextField(max_length=2200)), ('likes', models.IntegerField()), ], ), migrations.CreateModel( name='Profile', fields=[ ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('photo', cloudinary.models.CloudinaryField(max_length=255, verbose_name='photo')), ('bio', models.CharField(max_length=150)), ], ), ]
class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] operations = [ migrations.CreateModel( name='Profile', fields=[ ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('profile_pic', cloudinary.models.CloudinaryField(max_length=255, verbose_name='image')), ('bio', models.TextField(blank=True)), ('followers', models.IntegerField(default=0)), ('following', models.IntegerField(default=0)), ('user', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], ), migrations.CreateModel( name='Image', fields=[ ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('image', cloudinary.models.CloudinaryField(max_length=255, verbose_name='image')), ('name', models.CharField(max_length=30)), ('caption', models.TextField(blank=True)), ('post_date', models.DateTimeField(auto_now_add=True)), ('likes', models.ManyToManyField(related_name='posts', to='igclone.Profile')), ('profile', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='igclone.profile')), ], options={ 'ordering': ['-post_date'], }, ), migrations.CreateModel( name='Follow', fields=[ ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('posted', models.DateTimeField(auto_now_add=True)), ('followed', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='profile_followed', to='igclone.profile')), ('follower', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='profile_following', to='igclone.profile')), ], ), migrations.CreateModel( name='Comment', fields=[ ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('content', models.TextField()), ('post_date', models.DateTimeField(auto_now_add=True)), ('image', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='comments', to='igclone.image')), ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], options={ 'ordering': ['-post_date'], }, ), ]
class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] operations = [ migrations.CreateModel( name='Category', fields=[ ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=50)), ], ), migrations.CreateModel( name='Location', fields=[ ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=100)), ], ), migrations.CreateModel( name='Photos', fields=[ ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('caption', models.CharField(max_length=50)), ('date_posted', models.DateTimeField(auto_now_add=True)), ('image', cloudinary.models.CloudinaryField(max_length=255, verbose_name='image')), ('Location', models.ForeignKey( blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to='photos.location')), ('category', models.ManyToManyField(to='photos.Category')), ('owner', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], ), ]
class Migration(migrations.Migration): initial = True dependencies = [] operations = [ migrations.CreateModel( name='Category', fields=[ ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=30)), ], ), migrations.CreateModel( name='Location', fields=[ ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=30)), ], ), migrations.CreateModel( name='Image', fields=[ ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('photo', cloudinary.models.CloudinaryField(max_length=255, verbose_name='photo')), ('name', models.CharField(max_length=30)), ('description', models.CharField(max_length=80)), ('post_date', models.DateTimeField(auto_now_add=True)), ('category', models.ForeignKey( on_delete=django.db.models.deletion.DO_NOTHING, to='gallery.category')), ('location', models.ForeignKey( on_delete=django.db.models.deletion.DO_NOTHING, to='gallery.location')), ], options={ 'ordering': ['-post_date'], }, ), ]
class Migration(migrations.Migration): initial = True dependencies = [ ('JWTAuth', '0001_initial'), ] operations = [ migrations.CreateModel( name='Training', fields=[ ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=50)), ('img', cloudinary.models.CloudinaryField(max_length=255, verbose_name='image')), ], ), migrations.CreateModel( name='TrainingOwned', fields=[ ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('owner', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='JWTAuth.employee')), ('training', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='training.training')), ], ), migrations.CreateModel( name='Schedule', fields=[ ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('title', models.CharField(max_length=50)), ('date', models.DateTimeField()), ('startTime', models.DateTimeField()), ('endTime', models.DateTimeField()), ('training', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='training.training')), ], ), ]
class Migration(migrations.Migration): initial = True dependencies = [] operations = [ migrations.CreateModel( name='Comment', fields=[ ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('comment', models.CharField(max_length=500)), ], ), migrations.CreateModel( name='Profile', fields=[ ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('profile_photo', cloudinary.models.CloudinaryField(max_length=255, verbose_name='image')), ('bio', models.CharField(max_length=200)), ], ), migrations.CreateModel( name='Image', fields=[ ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('image', cloudinary.models.CloudinaryField(max_length=255, verbose_name='image')), ('image_name', models.CharField(max_length=80)), ('caption', models.TextField()), ('likes', models.IntegerField(default=0)), ('comments', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='instaclone.comment')), ('profile', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='instaclone.profile')), ], ), ]
class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('instaClone', '0010_auto_20210523_2259'), ] operations = [ migrations.CreateModel( name='Profile', fields=[ ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('user_name', models.CharField(max_length=30)), ('profile_pic', cloudinary.models.CloudinaryField(max_length=255, null=True, verbose_name='image')), ('bio', models.TextField(blank=True, default='Bio', max_length=500)), ('email', models.EmailField(max_length=254)), ('phone_number', models.CharField(blank=True, max_length=10)), ('user', models.OneToOneField(null=True, on_delete=django.db.models.deletion.CASCADE, related_name='profile', to=settings.AUTH_USER_MODEL)), ], options={ 'ordering': ['user_name'], }, ), migrations.CreateModel( name='Image', fields=[ ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('image', cloudinary.models.CloudinaryField(max_length=255, null=True, verbose_name='image')), ('image_name', models.CharField(max_length=50)), ('image_caption', models.TextField()), ('pub_date', models.DateTimeField(auto_now_add=True)), ('creator', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, related_name='creator', to='instaClone.profile')), ('likes', models.ManyToManyField(blank=True, related_name='likes', to=settings.AUTH_USER_MODEL)), ], options={ 'ordering': ['pub_date'], }, ), migrations.CreateModel( name='Comment', fields=[ ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('comment', models.TextField()), ('pub_date', models.DateTimeField(auto_now_add=True)), ('image', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='comments', to='instaClone.image')), ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='comments', to=settings.AUTH_USER_MODEL)), ], options={ 'ordering': ['pub_date'], }, ), ]
class Migration(migrations.Migration): initial = True dependencies = [] operations = [ migrations.CreateModel( name='Category', fields=[ ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=50)), ], ), migrations.CreateModel( name='Location', fields=[ ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=50)), ], ), migrations.CreateModel( name='Image', fields=[ ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=60)), ('picture', cloudinary.models.CloudinaryField(max_length=255, verbose_name='photo')), ('description', models.TextField()), ('image_category', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='gallery.category')), ('image_location', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='gallery.location')), ], options={ 'ordering': ['name'], }, ), ]
class Migration(migrations.Migration): dependencies = [ ('website', '0002_auto_20180910_0110'), ] operations = [ migrations.CreateModel( name='Alumni', fields=[ ('id', models.BigAutoField(primary_key=True, serialize=False)), ('name', models.CharField(max_length=150)), ('about', models.TextField(blank=True, max_length=500, null=True)), ('acd_year', models.CharField(max_length=50)), ('picture', cloudinary.models.CloudinaryField(blank=True, max_length=255, null=True, verbose_name='image')), ('github', models.URLField(blank=True, null=True)), ('linkedin', models.URLField(blank=True, null=True)), ('website', models.URLField(blank=True, null=True)), ('twitter', models.URLField(blank=True, null=True)), ('behance', models.URLField(blank=True, null=True)), ('dateCreated', models.DateTimeField(auto_now_add=True)), ('dateUpdated', models.DateTimeField(auto_now=True)), ], ), migrations.CreateModel( name='Mentor', fields=[ ('id', models.BigAutoField(primary_key=True, serialize=False)), ('name', models.CharField(max_length=150)), ('designation', models.CharField(blank=True, max_length=150, null=True)), ('about', models.TextField(blank=True, max_length=500, null=True)), ('picture', cloudinary.models.CloudinaryField(blank=True, max_length=255, null=True, verbose_name='image')), ('github', models.URLField(blank=True, null=True)), ('linkedin', models.URLField(blank=True, null=True)), ('website', models.URLField(blank=True, null=True)), ('twitter', models.URLField(blank=True, null=True)), ('behance', models.URLField(blank=True, null=True)), ('dateCreated', models.DateTimeField(auto_now_add=True)), ('dateUpdated', models.DateTimeField(auto_now=True)), ], ), ]
class Migration(migrations.Migration): initial = True dependencies = [] operations = [ migrations.CreateModel( name='categories', fields=[ ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=30)), ], ), migrations.CreateModel( name='Location', fields=[ ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=30)), ], ), migrations.CreateModel( name='Image', fields=[ ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('title', models.CharField(max_length=30)), ('description', models.TextField()), ('image_url', models.ImageField(blank=True, upload_to='images/')), ('image', cloudinary.models.CloudinaryField(max_length=255, verbose_name='images')), ('categories', models.ManyToManyField(to='gallery.categories')), ('location', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='gallery.location')), ], ), ]
class Migration(migrations.Migration): initial = True dependencies = [] operations = [ migrations.CreateModel( name='Category', fields=[ ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=60)), ], ), migrations.CreateModel( name='Location', fields=[ ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=60)), ], ), migrations.CreateModel( name='Picture', fields=[ ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('image', cloudinary.models.CloudinaryField(max_length=255, verbose_name='image')), ('name', models.CharField(max_length=60)), ('upload_date', models.DateTimeField(auto_now_add=True)), ('category', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='photos.category')), ('location', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='photos.location')), ], ), ]
class Migration(migrations.Migration): initial = True dependencies = [] operations = [ migrations.CreateModel( name='Profile', fields=[ ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('profile_photo', cloudinary.models.CloudinaryField(default=None, max_length=255, verbose_name='image')), ('bio', models.TextField()), ('user_name', models.CharField(max_length=255)), ('followers', django.contrib.postgres.fields.ArrayField( base_field=models.IntegerField(), size=None)), ('following', django.contrib.postgres.fields.ArrayField( base_field=models.IntegerField(), size=None)), ], ), migrations.CreateModel( name='Image', fields=[ ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('image', cloudinary.models.CloudinaryField(default=None, max_length=255, verbose_name='image')), ('image_name', models.CharField(max_length=255)), ('image_caption', models.CharField(max_length=255)), ('likes', models.IntegerField()), ('profile_id', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='image.profile')), ], ), ]
class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('clone', '0001_initial'), ] operations = [ migrations.CreateModel( name='Profile', fields=[ ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('profile_pic', cloudinary.models.CloudinaryField(max_length=255, verbose_name='image')), ('bio', models.TextField(blank=True)), ('followers', models.IntegerField(default=0)), ('following', models.IntegerField(default=0)), ('user', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], ), migrations.AddField( model_name='image', name='profile', field=models.ForeignKey(default=1, on_delete=django.db.models.deletion.CASCADE, to='clone.profile'), preserve_default=False, ), ]
class Migration(migrations.Migration): initial = True dependencies = [] operations = [ migrations.CreateModel( name='Profile', fields=[ ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('user_name', models.CharField(max_length=30)), ('profile_pic', cloudinary.models.CloudinaryField(max_length=255, null=True, verbose_name='image')), ('bio', models.TextField(blank=True, default='Bio', max_length=500)), ('email', models.EmailField(max_length=254)), ('phone_number', models.CharField(blank=True, max_length=10)), ], options={ 'ordering': ['user_name'], }, ), ]
class Migration(migrations.Migration): dependencies = [ ('main', '0005_comment_rating_ratingstar'), ] operations = [ migrations.CreateModel( name='Photo', fields=[ ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('title', models.CharField(blank=True, max_length=200, verbose_name='Title (optional)')), ('image', cloudinary.models.CloudinaryField(max_length=255, verbose_name='image')), ('company', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='main.company')), ], ), ]
class Migration(migrations.Migration): dependencies = [ ('haqqimizda', '0003_auto_20210414_1547'), ] operations = [ migrations.CreateModel( name='About', fields=[ ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('description', ckeditor.fields.RichTextField( blank=True, null=True, verbose_name='Haqqında Ətraflı Məlumat')), ], ), migrations.AlterField( model_name='gallery', name='image', field=cloudinary.models.CloudinaryField(blank=True, max_length=255, null=True), ), ]
class Migration(migrations.Migration): dependencies = [ ('gallery', '0003_location'), ] operations = [ migrations.CreateModel( name='Image', fields=[ ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('img', cloudinary.models.CloudinaryField(max_length=255, verbose_name='photo')), ('img_name', models.CharField(max_length=30)), ('img_description', models.TextField()), ('category', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='gallery.category')), ('editor', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='gallery.editor')), ('location', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='gallery.location')), ], ), ]
class Migration(migrations.Migration): dependencies = [ ('instaClone', '0001_initial'), ] operations = [ migrations.CreateModel( name='Image', fields=[ ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('image', cloudinary.models.CloudinaryField(max_length=255, null=True, verbose_name='image')), ('image_name', models.CharField(max_length=50)), ('image_caption', models.TextField()), ('pub_date', models.DateTimeField(auto_now_add=True)), ], ), ]
class Migration(migrations.Migration): dependencies = [ ('team', '0001_initial'), ] operations = [ migrations.CreateModel( name='Member', fields=[ ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('created_at', models.DateTimeField(auto_now_add=True)), ('updated_at', models.DateTimeField(auto_now=True)), ('name', models.CharField(max_length=100)), ('title', models.CharField(max_length=100)), ('about', models.TextField(blank=True)), ('picture', cloudinary.models.CloudinaryField(max_length=255, verbose_name='Image')), ], ), migrations.DeleteModel(name='Team', ), ]
class Migration(migrations.Migration): dependencies = [ ('photos', '0001_initial'), ] operations = [ migrations.CreateModel( name='Image', fields=[ ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('image', cloudinary.models.CloudinaryField(max_length=255, verbose_name='image')), ('name', models.CharField(max_length=60)), ('caption', models.TextField()), ('likes', models.IntegerField()), ('comment', models.TextField()), ('profile', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='photos.profile')), ], ), ]
class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] operations = [ migrations.CreateModel( name='Profile', fields=[ ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('profilephoto', cloudinary.models.CloudinaryField( max_length=255, verbose_name='profile photo')), ('Bio', models.CharField(max_length=30)), ('user', models.OneToOneField( on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], ), ]
class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('instaClone', '0003_auto_20210522_2359'), ] operations = [ migrations.CreateModel( name='Image', fields=[ ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('image', cloudinary.models.CloudinaryField(max_length=255, null=True, verbose_name='image')), ('image_name', models.CharField(max_length=50)), ('image_caption', models.TextField()), ('pub_date', models.DateTimeField(auto_now_add=True)), ('creator', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, to='instaClone.profile')), ('likes', models.ManyToManyField(blank=True, related_name='likes', to=settings.AUTH_USER_MODEL)), ], ), ]
class Migration(migrations.Migration): dependencies = [ ('main_app', '0002_mensservice_sharedservice'), ] operations = [ migrations.CreateModel( name='ImageTest', fields=[ ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('image', cloudinary.models.CloudinaryField(max_length=255, verbose_name='image')), ('name', models.CharField(blank=True, max_length=255, null=True)), ], ), migrations.DeleteModel(name='MensService', ), migrations.DeleteModel(name='SharedService', ), ]
class Migration(migrations.Migration): dependencies = [ ('instagram', '0001_initial'), ] operations = [ migrations.CreateModel( name='Photo', fields=[ ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('image', cloudinary.models.CloudinaryField(max_length=255, verbose_name='image')), ], ), ]
class Migration(migrations.Migration): dependencies = [ ('photos', '0002_alter_image_image'), ] operations = [ migrations.CreateModel( name='uploads', fields=[ ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('title', models.CharField(max_length=100)), ('image', cloudinary.models.CloudinaryField(max_length=255, verbose_name='image')), ], ), ]
class Migration(migrations.Migration): initial = True dependencies = [] operations = [ migrations.CreateModel( name='Image', fields=[ ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('image', cloudinary.models.CloudinaryField(max_length=255, verbose_name='image')), ('name', models.CharField(max_length=60)), ('description', models.TextField()), ], ), ]
class Migration(migrations.Migration): dependencies = [ ('products', '0001_initial'), ] operations = [ migrations.CreateModel( name='Product', fields=[ ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=200)), ('slug', models.SlugField()), ('description', models.TextField(blank=True, null=True)), ('price', models.DecimalField(decimal_places=2, max_digits=6)), ('image', cloudinary.models.CloudinaryField(max_length=255, verbose_name='image')), ('thumbnail', cloudinary.models.CloudinaryField(max_length=255, verbose_name='image')), ('vendor', models.CharField(blank=True, max_length=50, null=True)), ('size', models.CharField(blank=True, max_length=20, null=True)), ('date_added', models.DateTimeField(auto_now_add=True)), ('category', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='products', to='products.category')), ], ), ]
class Migration(migrations.Migration): dependencies = [ ('website', '0001_initial'), ] operations = [ migrations.CreateModel( name='Agenda', fields=[ ('id', models.BigAutoField(primary_key=True, serialize=False)), ('name', models.CharField(max_length=150)), ('description', models.TextField(max_length=500)), ('agenda_type', models.CharField(max_length=50)), ('start_date', models.DateField()), ('end_date', models.DateField()), ('time', models.TimeField(blank=True, null=True)), ('dateCreated', models.DateTimeField(auto_now_add=True)), ('dateUpdated', models.DateTimeField(auto_now=True)), ], ), migrations.CreateModel( name='Image', fields=[ ('id', models.BigAutoField(primary_key=True, serialize=False)), ('name', models.CharField(blank=True, max_length=150, null=True)), ('picture', cloudinary.models.CloudinaryField(blank=True, max_length=255, null=True, verbose_name='image')), ], ), migrations.DeleteModel(name='Calendar', ), migrations.RenameField( model_name='event', old_name='desc', new_name='description', ), migrations.RenameField( model_name='event', old_name='event_date', new_name='end_date', ), migrations.RenameField( model_name='project', old_name='desc', new_name='description', ), migrations.RemoveField( model_name='event', name='photos', ), migrations.RemoveField( model_name='event', name='poc', ), migrations.RemoveField( model_name='gallery', name='desc', ), migrations.RemoveField( model_name='project', name='screenshot', ), migrations.AddField( model_name='event', name='start_date', field=models.DateField(default=django.utils.timezone.now), preserve_default=False, ), migrations.AddField( model_name='gallery', name='description', field=models.TextField(blank=True, max_length=500, null=True), ), migrations.AddField( model_name='project', name='picture', field=cloudinary.models.CloudinaryField(blank=True, max_length=255, null=True, verbose_name='image'), ), migrations.AddField( model_name='project', name='when', field=models.DateField(default=django.utils.timezone.now), preserve_default=False, ), migrations.RemoveField( model_name='gallery', name='image', ), migrations.AlterField( model_name='project', name='created_by', field=models.ManyToManyField(blank=True, null=True, to='portalapp.ACEUserProfile'), ), migrations.DeleteModel(name='Member', ), migrations.AddField( model_name='event', name='images', field=models.ManyToManyField(to='website.Image'), ), migrations.AddField( model_name='gallery', name='image', field=models.ManyToManyField(to='website.Image'), ), ]
class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] operations = [ migrations.CreateModel( name='Activity', fields=[ ('activity_id', models.BigAutoField(primary_key=True, serialize=False)), ('activity', models.CharField(db_index=True, max_length=100)), ], options={ 'verbose_name_plural': 'activities', }, ), migrations.CreateModel( name='ActivityType', fields=[ ('activity_type_id', models.BigIntegerField(primary_key=True, serialize=False)), ('activity_type', models.CharField(db_index=True, max_length=100)), ], ), migrations.CreateModel( name='UserActivity', fields=[ ('user_activity_id', models.BigAutoField(primary_key=True, serialize=False)), ('location', models.CharField(max_length=200)), ('lat', models.CharField(max_length=100)), ('lon', models.CharField(max_length=100)), ('monday', models.BooleanField(default=True)), ('tuesday', models.BooleanField(default=True)), ('wednesday', models.BooleanField(default=True)), ('thursday', models.BooleanField(default=True)), ('friday', models.BooleanField(default=True)), ('saturday', models.BooleanField(default=False)), ('sunday', models.BooleanField(default=False)), ('open_from', models.TimeField()), ('open_to', models.TimeField()), ('description', models.CharField(max_length=350)), ('activity', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='main.Activity')), ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], ), migrations.CreateModel( name='UserActivityAlbum', fields=[ ('user_activity_album_id', models.BigAutoField(primary_key=True, serialize=False)), ('photo', cloudinary.models.CloudinaryField(max_length=255, verbose_name='image')), ('user_activity', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='main.UserActivity')), ], ), migrations.CreateModel( name='Profile', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('gender', models.CharField(choices=[('M', 'Male'), ('F', 'Female')], default='M', max_length=1)), ('location', models.CharField(blank=True, max_length=100, null=True)), ('birth_date', models.DateField(blank=True, null=True)), ('join_date', models.DateField(auto_now_add=True)), ('phone', models.CharField(blank=True, max_length=20, null=True)), ('score', models.DecimalField(blank=True, decimal_places=4, max_digits=10, null=True)), ('profile_picture', cloudinary.models.CloudinaryField(max_length=255, verbose_name='image')), ('user', models.OneToOneField( on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], ), migrations.CreateModel( name='Deal', fields=[ ('deal_id', models.BigAutoField(primary_key=True, serialize=False)), ('request_date', models.DateTimeField(auto_now_add=True)), ('request_modified', models.DateTimeField(auto_now=True)), ('status', models.CharField(choices=[('R', 'Request'), ('A', 'Accepted'), ('D', 'Declined'), ('F', 'Finished')], default='R', max_length=1)), ('rating', models.IntegerField(default=5)), ('review', models.TextField(blank=True, null=True)), ('request_from', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ('request_to', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='request_to', to=settings.AUTH_USER_MODEL)), ], ), migrations.AddField( model_name='activity', name='activity_type', field=models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, to='main.ActivityType'), ), ]
class Migration(migrations.Migration): initial = True dependencies = [] operations = [ migrations.CreateModel( name='brands', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('NameA', models.TextField(max_length=2550, null=True)), ('NameL', models.TextField(max_length=2550)), ], ), migrations.CreateModel( name='cartTransactionMasters', fields=[ ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('DateCreated', models.DateTimeField()), ], ), migrations.CreateModel( name='cartTransactions', fields=[ ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('Quantity', models.FloatField()), ('IsOrdered', models.IntegerField()), ('MasterId', models.ForeignKey( db_column='MasterId', db_constraint=False, on_delete=django.db.models.deletion.DO_NOTHING, to='PyCommerce.carttransactionmasters')), ], ), migrations.CreateModel( name='categories', fields=[ ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('NameA', models.TextField(max_length=2550, null=True)), ('NameL', models.TextField(max_length=2550)), ('Level', models.IntegerField()), ('ImageUrl', models.TextField(max_length=2550, null=True)), ('MainCategoryId', models.ForeignKey( db_column='MainCategoryId', db_constraint=False, default='null', null=True, on_delete=django.db.models.deletion.DO_NOTHING, to='PyCommerce.categories')), ], ), migrations.CreateModel( name='countries', fields=[ ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('NameA', models.TextField(max_length=2550, null=True)), ('NameL', models.TextField(max_length=2550)), ('Symbol', models.TextField(max_length=2550)), ], ), migrations.CreateModel( name='orders', fields=[ ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('UnitPrice', models.FloatField()), ('TotalPrice', models.FloatField()), ('isDelivered', models.BooleanField()), ('Latitude', models.TextField(max_length=2550, null=True)), ('Longitude', models.TextField(max_length=2550, null=True)), ('Quantity', models.FloatField()), ], ), migrations.CreateModel( name='orderStatus', fields=[ ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('Code', models.IntegerField()), ('StatusNameA', models.TextField(max_length=2550, null=True)), ('StatusNameL', models.TextField(max_length=2550)), ], ), migrations.CreateModel( name='products', fields=[ ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('NameA', models.TextField(max_length=2550, null=True)), ('NameL', models.TextField(max_length=2550)), ('Image', models.ImageField(blank=True, null=True, upload_to='')), ('Image2', models.ImageField(blank=True, null=True, upload_to='')), ('Image3', models.ImageField(blank=True, null=True, upload_to='')), ('Image4', cloudinary.models.CloudinaryField(max_length=255, verbose_name='image')), ('Description', models.TextField(max_length=2550, null=True)), ('BrandId', models.ForeignKey( db_column='BrandId', db_constraint=False, on_delete=django.db.models.deletion.DO_NOTHING, to='PyCommerce.brands')), ('CategoryId', models.ForeignKey( db_column='CategoryId', db_constraint=False, on_delete=django.db.models.deletion.DO_NOTHING, to='PyCommerce.categories')), ], ), migrations.CreateModel( name='shippingAgents', fields=[ ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('NameA', models.TextField(max_length=2550, null=True)), ('NameL', models.TextField(max_length=2550)), ('Address1', models.TextField(max_length=2550)), ('Address2', models.TextField(max_length=2550, null=True)), ('Phone', models.TextField(max_length=2550, null=True)), ('Email', models.TextField(max_length=2550)), ('Password', models.TextField(max_length=2550)), ('PostCode', models.TextField(max_length=2550, null=True)), ], ), migrations.CreateModel( name='specifications', fields=[ ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('NameA', models.TextField(max_length=2550, null=True)), ('NameL', models.TextField(max_length=2550)), ('ShowInFilter', models.BooleanField(null=True)), ], ), migrations.CreateModel( name='specificationValue', fields=[ ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('Name', models.TextField(max_length=2550)), ], ), migrations.CreateModel( name='stores', fields=[ ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('NameA', models.TextField(max_length=2550, null=True)), ('NameL', models.TextField(max_length=2550)), ('Email', models.TextField(max_length=2550)), ('Address', models.TextField(max_length=2550, null=True)), ('City', models.TextField(max_length=2550)), ('Latitude', models.TextField(max_length=2550, null=True)), ('Longitude', models.TextField(max_length=2550, null=True)), ('CountryId', models.ForeignKey( db_column='CountryId', db_constraint=False, on_delete=django.db.models.deletion.DO_NOTHING, to='PyCommerce.countries')), ('ShippingAgentId', models.ForeignKey( db_column='ShippingAgentId', db_constraint=False, on_delete=django.db.models.deletion.DO_NOTHING, to='PyCommerce.shippingagents')), ], ), migrations.CreateModel( name='transactionTypes', fields=[ ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('Code', models.IntegerField()), ('NameA', models.TextField(max_length=2550, null=True)), ('NameL', models.TextField(max_length=2550)), ], ), migrations.CreateModel( name='users', fields=[ ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('NameA', models.TextField(max_length=2550, null=True)), ('NameL', models.TextField(max_length=2550)), ('Email', models.TextField(max_length=2550)), ('Password', models.TextField(max_length=2550)), ('Address1', models.TextField(max_length=2550, null=True)), ('Address2', models.TextField(max_length=2550, null=True)), ('Phone', models.IntegerField(null=True)), ('City', models.TextField(max_length=2550, null=True)), ], ), migrations.CreateModel( name='vendors', fields=[ ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('NameA', models.TextField(max_length=2550, null=True)), ('NameL', models.TextField(max_length=2550)), ('Address1', models.TextField(max_length=2550)), ('Address2', models.TextField(max_length=2550, null=True)), ('Phone', models.TextField(max_length=2550, null=True)), ('Email', models.TextField(max_length=2550)), ('Password', models.TextField(max_length=2550)), ('PostCode', models.TextField(max_length=2550, null=True)), ], ), migrations.CreateModel( name='vendorPriceLists', fields=[ ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('Price', models.FloatField()), ('CountryId', models.ForeignKey( db_column='CountryId', db_constraint=False, on_delete=django.db.models.deletion.DO_NOTHING, to='PyCommerce.countries')), ('ProductId', models.ForeignKey( db_column='ProductId', db_constraint=False, on_delete=django.db.models.deletion.DO_NOTHING, to='PyCommerce.products')), ('VendorId', models.ForeignKey( db_column='VendorId', db_constraint=False, on_delete=django.db.models.deletion.DO_NOTHING, to='PyCommerce.vendors')), ], ), migrations.CreateModel( name='storeShippingAgents', fields=[ ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('ShippingAgentId', models.ForeignKey( db_column='ShippingAgentId', db_constraint=False, on_delete=django.db.models.deletion.DO_NOTHING, to='PyCommerce.shippingagents')), ('StoreId', models.ForeignKey( db_column='StoreId', db_constraint=False, on_delete=django.db.models.deletion.DO_NOTHING, to='PyCommerce.stores')), ], ), migrations.AddField( model_name='stores', name='VendorId', field=models.ForeignKey( db_column='VendorId', db_constraint=False, on_delete=django.db.models.deletion.DO_NOTHING, to='PyCommerce.vendors'), ), migrations.CreateModel( name='shippingDetails', fields=[ ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('DeliveryNotes', models.TextField(max_length=2550, null=True)), ('OrderId', models.ForeignKey( db_column='OrderId', db_constraint=False, on_delete=django.db.models.deletion.DO_NOTHING, to='PyCommerce.orders')), ('ShippingAgentId', models.ForeignKey( db_column='ShippingAgentId', db_constraint=False, on_delete=django.db.models.deletion.DO_NOTHING, to='PyCommerce.shippingagents')), ], ), migrations.CreateModel( name='shippingAgentUsers', fields=[ ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('ShippingAgentId', models.ForeignKey( db_column='ShippingAgentId', db_constraint=False, on_delete=django.db.models.deletion.DO_NOTHING, to='PyCommerce.shippingagents')), ('UserId', models.ForeignKey( db_column='UserId', db_constraint=False, on_delete=django.db.models.deletion.DO_NOTHING, to='PyCommerce.users')), ], ), migrations.CreateModel( name='productStoreRatings', fields=[ ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('RatingId', models.IntegerField()), ('ProductReview', models.TextField(max_length=2550, null=True)), ('ProductId', models.ForeignKey( db_column='ProductId', db_constraint=False, on_delete=django.db.models.deletion.DO_NOTHING, to='PyCommerce.products')), ('StoreId', models.ForeignKey( db_column='StoreId', db_constraint=False, on_delete=django.db.models.deletion.DO_NOTHING, to='PyCommerce.stores')), ('UserId', models.ForeignKey( db_column='UserId', db_constraint=False, on_delete=django.db.models.deletion.DO_NOTHING, to='PyCommerce.users')), ], ), migrations.CreateModel( name='productSpecifications', fields=[ ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('SpecificationName', models.TextField(max_length=2550)), ('SpecificationValue', models.TextField(max_length=2550)), ('ShowInFilter', models.BooleanField(null=True)), ('CategoryId', models.ForeignKey( db_column='CategoryId', db_constraint=False, on_delete=django.db.models.deletion.DO_NOTHING, to='PyCommerce.categories')), ('ProductId', models.ForeignKey( db_column='ProductId', db_constraint=False, on_delete=django.db.models.deletion.DO_NOTHING, to='PyCommerce.products')), ('SpecificationId', models.ForeignKey( db_column='SpecificationId', db_constraint=False, on_delete=django.db.models.deletion.DO_NOTHING, to='PyCommerce.specifications')), ], ), migrations.AddField( model_name='orders', name='DeliveredByUserId', field=models.ForeignKey( db_column='DeliveredByUserId', db_constraint=False, null=True, on_delete=django.db.models.deletion.DO_NOTHING, related_name='UserId', to='PyCommerce.users'), ), migrations.AddField( model_name='orders', name='MasterId', field=models.ForeignKey( db_column='MasterId', db_constraint=False, on_delete=django.db.models.deletion.DO_NOTHING, to='PyCommerce.carttransactionmasters'), ), migrations.AddField( model_name='orders', name='ProductId', field=models.ForeignKey( db_column='ProductId', db_constraint=False, on_delete=django.db.models.deletion.DO_NOTHING, to='PyCommerce.products'), ), migrations.AddField( model_name='orders', name='ShippingAgentId', field=models.ForeignKey( db_column='ShippingAgentId', db_constraint=False, null=True, on_delete=django.db.models.deletion.DO_NOTHING, to='PyCommerce.shippingagents'), ), migrations.AddField( model_name='orders', name='StoreId', field=models.ForeignKey( db_column='StoreId', db_constraint=False, on_delete=django.db.models.deletion.DO_NOTHING, to='PyCommerce.stores'), ), migrations.AddField( model_name='orders', name='UserId', field=models.ForeignKey( db_column='UserId', db_constraint=False, on_delete=django.db.models.deletion.DO_NOTHING, to='PyCommerce.users'), ), migrations.AddField( model_name='orders', name='cartId', field=models.ForeignKey( db_column='CartId', db_constraint=False, on_delete=django.db.models.deletion.DO_NOTHING, to='PyCommerce.carttransactions'), ), migrations.CreateModel( name='orderMasters', fields=[ ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('DateCreated', models.DateTimeField()), ('ShippingAddress', models.TextField(max_length=2550, null=True)), ('OrderStatusId', models.ForeignKey( db_column='OrderStatusId', db_constraint=False, on_delete=django.db.models.deletion.DO_NOTHING, to='PyCommerce.orderstatus')), ('UserId', models.ForeignKey( db_column='UserId', db_constraint=False, on_delete=django.db.models.deletion.DO_NOTHING, to='PyCommerce.users')), ('cartId', models.ForeignKey( db_column='CartId', db_constraint=False, on_delete=django.db.models.deletion.DO_NOTHING, to='PyCommerce.carttransactions')), ], ), migrations.CreateModel( name='inventoryDetails', fields=[ ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('Quantity', models.FloatField()), ('ProductId', models.ForeignKey( db_column='ProductId', db_constraint=False, on_delete=django.db.models.deletion.DO_NOTHING, to='PyCommerce.products')), ('StoreId', models.ForeignKey( db_column='StoreId', db_constraint=False, on_delete=django.db.models.deletion.DO_NOTHING, to='PyCommerce.stores')), ], ), migrations.CreateModel( name='inventoryBalances', fields=[ ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('QuantityBalance', models.FloatField()), ('ProductId', models.ForeignKey( db_column='ProductId', db_constraint=False, on_delete=django.db.models.deletion.DO_NOTHING, to='PyCommerce.products')), ('StoreId', models.ForeignKey( db_column='StoreId', db_constraint=False, on_delete=django.db.models.deletion.DO_NOTHING, to='PyCommerce.stores')), ], ), migrations.AddField( model_name='carttransactions', name='ProductId', field=models.ForeignKey( db_column='ProductId', db_constraint=False, on_delete=django.db.models.deletion.DO_NOTHING, to='PyCommerce.products'), ), migrations.AddField( model_name='carttransactions', name='StoreId', field=models.ForeignKey( db_column='StoreId', db_constraint=False, on_delete=django.db.models.deletion.DO_NOTHING, to='PyCommerce.stores'), ), ]