class Migration(migrations.Migration): initial = True dependencies = [] operations = [ migrations.CreateModel( name='Member', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('member_image', cloudinary.models.CloudinaryField(max_length=255, verbose_name='image')), ('id_number', models.CharField(max_length=255)), ('title', models.CharField(max_length=255)), ('first_name', models.CharField(max_length=255)), ('middle_name', models.CharField(max_length=255)), ('last_name', models.CharField(max_length=255)), ('gender', models.CharField(max_length=255)), ('birthday', models.DateField()), ('email_address', models.EmailField(max_length=254)), ('phone_number', models.CharField(max_length=255)), ('address', models.CharField(max_length=255)), ('front_image', cloudinary.models.CloudinaryField(max_length=255, verbose_name='image')), ('back_image', cloudinary.models.CloudinaryField(max_length=255, verbose_name='image')), ('status', models.CharField(max_length=255)), ], ), migrations.CreateModel( name='User', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('username', models.CharField(max_length=255)), ('email_address', models.EmailField(max_length=254)), ('password', models.CharField(max_length=255)), ], ), ]
class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Editor', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('first_name', models.CharField(max_length=30)), ('last_name', models.CharField(max_length=30)), ('email', models.EmailField(max_length=254)), ('phone_number', models.CharField(blank=True, max_length=10)), ], options={ 'ordering': ['first_name'], }, ), migrations.CreateModel( name='NewsLetterRecipients', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=30)), ('email', models.EmailField(max_length=254, unique=True)), ], ), migrations.CreateModel( name='tags', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=30)), ], ), migrations.CreateModel( name='Article', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('title', models.CharField(max_length=60)), ('post', models.TextField()), ('pub_date', models.DateTimeField(auto_now_add=True)), ('article_image', cloudinary.models.CloudinaryField(max_length=255, verbose_name='image')), ('editor', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='news.editor')), ('tags', models.ManyToManyField(to='news.tags')), ], ), ]
class Migration(migrations.Migration): initial = True dependencies = [ ('auth', '0012_alter_user_first_name_max_length'), ] operations = [ migrations.CreateModel( name='User', fields=[ ('id', models.AutoField(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')), ('first_name', models.CharField(blank=True, max_length=255)), ('last_name', models.CharField(max_length=255)), ('username', models.CharField(max_length=255, unique=True)), ('email', models.EmailField(max_length=255, unique=True, verbose_name='email address')), ('profile_pic', cloudinary.models.CloudinaryField(blank=True, max_length=255, null=True)), ('bio', models.TextField(blank=True, max_length=255, null=True)), ('local_area', models.CharField(max_length=255)), ('city_town', models.CharField(max_length=255)), ('country', models.CharField(max_length=255)), ('system_admin', models.BooleanField(default=False)), ('neighbourhood_admin', models.BooleanField(default=False)), ('is_active', models.BooleanField(default=False)), ('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')), ('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, }, ), ]
class Migration(migrations.Migration): initial = True dependencies = [] operations = [ migrations.CreateModel( name='Signup', fields=[ ('uid', models.AutoField(primary_key=True, serialize=False)), ('email', models.EmailField(max_length=60, unique=True)), ('username', models.CharField(max_length=30, unique=True)), ('pnumber', models.IntegerField()), ('location', models.CharField(default='Nairobi/Kenya', max_length=30)), ('hobby', models.CharField(max_length=30)), ('profilepic', cloudinary.models.CloudinaryField(max_length=255, verbose_name='image')), ('password', models.CharField(max_length=255)), ('is_admin', models.BooleanField(default=False)), ], options={ 'db_table': 'signup', }, ), ]
class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] operations = [ migrations.CreateModel( name='Profile', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('location', models.CharField(max_length=50)), ('email', models.EmailField(max_length=254)), ('phone', models.IntegerField(validators=[ django.core.validators.MinValueValidator(1), django.core.validators.MaxValueValidator(10) ])), ('avatar', cloudinary.models.CloudinaryField(max_length=255, verbose_name='Image')), ('user', models.OneToOneField( on_delete=django.db.models.deletion.CASCADE, related_name='profile', to=settings.AUTH_USER_MODEL)), ], ), ]
class Migration(migrations.Migration): dependencies = [ ('djangotest', '0010_auto_20180421_1829'), ] operations = [ migrations.AlterField( model_name='customer', name='email', field=models.EmailField(max_length=254, verbose_name='Email'), ), migrations.AlterField( model_name='customer', name='name', field=models.CharField(max_length=100, verbose_name='Name'), ), migrations.AlterField( model_name='customer', name='password', field=models.CharField(max_length=50, verbose_name='Password'), ), migrations.AlterField( model_name='customer', name='profilePicture', field=cloudinary.models.CloudinaryField(blank=True, default=None, max_length=255, null=True, verbose_name='image'), ), ]
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): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] operations = [ migrations.CreateModel( name='Merchant', fields=[ ('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)), ('name', models.CharField(max_length=500)), ('email', models.EmailField(max_length=500)), ('phone', models.CharField(max_length=15)), ('presentation_image', cloudinary.models.CloudinaryField(blank=True, max_length=255, null=True, verbose_name='image')), ('open', models.BooleanField(default=False)), ('stripe_customer_id', models.CharField(blank=True, max_length=100, null=True)), ('registration_number', models.CharField(max_length=14)), ('vat_number', models.CharField(blank=True, max_length=500, null=True)), ('owner_name', models.CharField(blank=True, max_length=500, null=True)), ('address_street', models.CharField(max_length=500)), ('address_city', models.CharField(max_length=500)), ('address_zip', models.CharField(max_length=500)), ('table_quantity', models.IntegerField(default=1)), ('url_tag', models.CharField(max_length=50, unique=True)), ('service_mode', models.CharField(choices=[('ts', 'Service at the table'), ('bs', 'Service at the bar')], default='ts', max_length=2)), ('shop_description', models.TextField( default= 'Toujours là pour vous servir dans les meilleures conditions. ENJOY!', max_length=1000)), ('created_date', models.DateTimeField(auto_now_add=True)), ('modified_date', models.DateTimeField(auto_now=True)), ('user', models.OneToOneField( on_delete=django.db.models.deletion.DO_NOTHING, related_name='merchants', to=settings.AUTH_USER_MODEL)), ], ), ]
class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] operations = [ migrations.CreateModel( name='Neighborhood', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=100)), ('location', models.CharField(max_length=100, null=True)), ('posted_by', models.CharField(max_length=100, null=True)), ('count', models.IntegerField(max_length=100)), ('police', models.CharField(max_length=100)), ('police_department_address', models.CharField(max_length=100)), ('health', models.CharField(max_length=100)), ('health_department_address', models.CharField(max_length=100)), ], ), migrations.CreateModel( name='Profile', fields=[ ('id', models.AutoField(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()), ('neighborhood', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, related_name='population', to='hood.neighborhood')), ('user', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], ), migrations.CreateModel( name='Post', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('description', models.CharField(max_length=70)), ('post_image', cloudinary.models.CloudinaryField(max_length=255, verbose_name='image')), ('categories', models.CharField(max_length=70)), ('time_created', models.DateTimeField(auto_now=True, null=True)), ('location', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='hood.neighborhood')), ('user', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ('user_profile', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='hood.profile')), ], ), migrations.CreateModel( name='Business', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('business_name', models.CharField(max_length=100, unique=True)), ('business_email', models.EmailField(max_length=100, unique=True)), ('business_neighborhood', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, to='hood.neighborhood')), ('business_user', 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='Business', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=100)), ('email', models.EmailField(max_length=100)), ('description', models.TextField(blank=True)), ], ), migrations.CreateModel( name='Neighbourhood', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=100)), ('location', models.CharField(max_length=100)), ('neighbourhood_logo', cloudinary.models.CloudinaryField(max_length=255, verbose_name='image')), ('description', models.TextField()), ('health_number', models.IntegerField(blank=True, null=True)), ('police_number', models.IntegerField(blank=True, null=True)), ('occupant_count', models.IntegerField(blank=True, null=True)), ], ), migrations.CreateModel( name='Post', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('title', models.CharField(max_length=100, null=True)), ('post', models.TextField()), ('date', models.DateTimeField(auto_now_add=True)), ('hood', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='hood_post', to='project.neighbourhood')), ], ), ]
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): dependencies = [ ('app', '__first__'), ('static_content_management', '0006_privacypolicy'), ] operations = [ migrations.CreateModel( name='Career', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('email', models.EmailField(max_length=50, verbose_name='User Email')), ('first_name', models.CharField(blank=True, max_length=40, null=True, verbose_name='First Name')), ('last_name', models.CharField(blank=True, max_length=40, null=True, verbose_name='Last Name')), ('message', models.TextField(blank=True, null=True, verbose_name='Message')), ('mobile_number', models.CharField(blank=True, max_length=15, null=True, verbose_name='Mobile Number')), ('resume', cloudinary.models.CloudinaryField(blank=True, max_length=255, verbose_name='Resume')), ('created_at', models.DateTimeField(auto_now_add=True)), ('updated_at', models.DateTimeField(auto_now=True)), ('profession', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='carrer_profession', to='app.Profession')), ], options={ 'verbose_name_plural': 'Careers', }, ), ]
class Migration(migrations.Migration): initial = True dependencies = [] operations = [ migrations.CreateModel( name='Language', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=50)), ], ), migrations.CreateModel( name='Profile', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('fullname', models.CharField(max_length=50)), ('picture', cloudinary.models.CloudinaryField(max_length=255, verbose_name='image')), ('bio', models.TextField()), ('github', models.URLField()), ('email', models.EmailField(max_length=254)), ], ), migrations.CreateModel( name='Project', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('title', models.CharField(max_length=100)), ('description', models.TextField()), ('link', models.URLField()), ('languages', models.ManyToManyField(to='portfolioapp.Language')), ], ), ]
class Migration(migrations.Migration): initial = True dependencies = [] operations = [ migrations.CreateModel( name='Marcar_Jogo', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=255)), ('time', models.CharField(max_length=255)), ('end', models.CharField(max_length=255)), ('tel', models.CharField(max_length=255)), ('email', models.EmailField(max_length=255)), ('date', models.CharField(max_length=255)), ('lugar', models.CharField(choices=[('G', 'Gramado'), ('S', 'Society'), ('F', 'Futsal'), ('T', 'Taqueada')], max_length=255)), ('msg', models.CharField(max_length=255)), ('criado', models.DateField(auto_now_add=True)), ('placarCasa', models.IntegerField(default=1, null=True)), ('placarFora', models.IntegerField(default=1, null=True)), ], ), migrations.CreateModel( name='Post', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('nome', models.CharField(max_length=255)), ('resumo', ckeditor.fields.RichTextField()), ('content', ckeditor_uploader.fields.RichTextUploadingField()), ('author', models.CharField(max_length=255)), ('image', cloudinary.models.CloudinaryField(max_length=255, verbose_name='imagem')), ('created_at', models.DateField(auto_now_add=True)), ], ), ]
class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('neighapp', '0003_neighbourhood'), ] operations = [ migrations.CreateModel( name='Occupant', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=120)), ('profile_pic', cloudinary.models.CloudinaryField(max_length=255, verbose_name='image')), ('neighbourhood', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='occupant', to='neighapp.neighbourhood')), ('user', models.OneToOneField( on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], ), migrations.CreateModel( name='Business', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=120)), ('email', models.EmailField(max_length=254)), ('description', models.TextField(blank=True)), ('location', models.CharField(max_length=60)), ('neighbourhood', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='business', to='neighapp.neighbourhood')), ], ), ]
class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] operations = [ migrations.CreateModel( name='Project', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('title', models.CharField(max_length=30)), ('image', cloudinary.models.CloudinaryField(max_length=255, verbose_name='image')), ('description', models.TextField()), ('link', models.TextField()), ('profile', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], ), migrations.CreateModel( name='Profile', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('bio', models.TextField()), ('picture', cloudinary.models.CloudinaryField(max_length=255, verbose_name='image')), ('email', models.EmailField(max_length=254)), ('github_link', models.TextField()), ('user', models.OneToOneField( on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], ), ]
class Migration(migrations.Migration): initial = True dependencies = [ ('auth', '0011_update_proxy_permissions'), ] operations = [ migrations.CreateModel( name='User', fields=[ ('id', models.AutoField(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')), ('username', models.CharField(error_messages={'unique': 'A user with that username already exists.'}, help_text='Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only.', max_length=150, unique=True, validators=[django.contrib.auth.validators.UnicodeUsernameValidator()], verbose_name='username')), ('is_staff', models.BooleanField(default=False, help_text='Designates whether the user can log into this admin site.', verbose_name='staff status')), ('is_active', models.BooleanField(default=True, help_text='Designates whether this user should be treated as active. Unselect this instead of deleting accounts.', verbose_name='active')), ('date_joined', models.DateTimeField(default=django.utils.timezone.now, verbose_name='date joined')), ('first_name', models.CharField(max_length=30)), ('last_name', models.CharField(max_length=150)), ('email', models.EmailField(max_length=254)), ('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')), ('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={ 'verbose_name': 'user', 'verbose_name_plural': 'users', 'abstract': False, }, managers=[ ('objects', django.contrib.auth.models.UserManager()), ], ), migrations.CreateModel( name='ProfileUser', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('image_from_cl', cloudinary.models.CloudinaryField(max_length=255, verbose_name='image')), ('location', models.CharField(blank=True, max_length=30)), ('birth_date', models.DateField(blank=True, null=True)), ('user', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], ), ]
class Migration(migrations.Migration): initial = True dependencies = [ ('auth', '0012_alter_user_first_name_max_length'), migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] operations = [ migrations.CreateModel( name='Post', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('title', models.CharField(max_length=30)), ('image', cloudinary.models.CloudinaryField(max_length=255, verbose_name='image')), ('description', tinymce.models.HTMLField()), ('link', models.CharField(max_length=500)), ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], ), migrations.CreateModel( name='Profile', fields=[ ('First_Name', models.CharField(max_length=50)), ('Last_Name', models.CharField(max_length=50)), ('Email', models.EmailField(max_length=50)), ('bio', tinymce.models.HTMLField()), ('profile_pic', cloudinary.models.CloudinaryField(blank=True, default='media/', max_length=255, validators=[django.core.validators.FileExtensionValidator(['png', 'jpg', 'jpeg'])], verbose_name='image')), ('user', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, primary_key=True, serialize=False, to='auth.user')), ], ), migrations.CreateModel( name='Reviews', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('title', models.CharField(max_length=50)), ('review', models.TextField()), ('design', models.PositiveIntegerField(default=0)), ('usability', models.PositiveIntegerField(default=0)), ('content', models.PositiveIntegerField(default=0)), ('post', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='award.post')), ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], ), ]
class Migration(migrations.Migration): dependencies = [ ('mainsite', '0026_auto_20210309_1709'), ] operations = [ migrations.AlterField( model_name='profile', name='bio', field=models.TextField(blank=True, null=True), ), migrations.AlterField( model_name='profile', name='email', field=models.EmailField(max_length=150, null=True), ), ]
class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] operations = [ migrations.CreateModel( name='Profile', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('profile_photo', cloudinary.models.CloudinaryField(max_length=255, verbose_name='profile_photo')), ('bio', models.TextField()), ('phone_number', models.IntegerField()), ('email', models.EmailField(max_length=254)), ('user', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], ), migrations.CreateModel( name='Project', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('project_title', models.CharField(max_length=20)), ('project_description', models.CharField(max_length=20)), ('project_screenshot', cloudinary.models.CloudinaryField(max_length=255, verbose_name='project_screenshot')), ('project_link', models.URLField()), ('date_posted', models.DateTimeField(auto_now_add=True)), ('profile', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='awards.Profile')), ], ), migrations.CreateModel( name='Review', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('design', models.IntegerField()), ('usability', models.IntegerField()), ('content', models.IntegerField()), ('project', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='awards.Project')), ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], ), ]
class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] operations = [ migrations.CreateModel( name='Profile', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('first_name', models.CharField(blank=True, max_length=60, null=True)), ('last_name', models.CharField(blank=True, max_length=60, null=True)), ('pic', cloudinary.models.CloudinaryField(max_length=255, null=True, verbose_name='pic')), ('bio', models.TextField(blank=True, null=True)), ('likes', models.IntegerField(default=0)), ('email', models.EmailField(max_length=254, null=True)), ('phone_number', phonenumber_field.modelfields.PhoneNumberField(max_length=128, null=True, region=None)), ('user', models.OneToOneField( null=True, on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], options={ 'ordering': ['first_name'], }, ), ]
class Migration(migrations.Migration): dependencies = [ ('myawwards', '0007_rating_post'), ] operations = [ migrations.AddField( model_name='profile', name='bio', field=models.TextField(blank=True, default='My Bio', max_length=500), ), migrations.AddField( model_name='profile', name='contact', field=models.EmailField(blank=True, max_length=100), ), migrations.AddField( model_name='profile', name='location', field=models.CharField(blank=True, max_length=60), ), migrations.AddField( model_name='profile', name='name', field=models.CharField(blank=True, max_length=120), ), migrations.AlterField( model_name='post', name='image', field=cloudinary.models.CloudinaryField(max_length=255, verbose_name='media'), ), migrations.AlterField( model_name='profile', name='image', field=models.ImageField(default='profile_pics/default.jpg', upload_to='profile_pics'), ), ]
class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Category', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('category', models.CharField(max_length=30)), ], ), migrations.CreateModel( name='Editor', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('first_name', models.CharField(max_length=30)), ('last_name', models.CharField(max_length=30)), ('email', models.EmailField(max_length=254)), ('phone_number', models.CharField(blank=True, max_length=10)), ], ), migrations.CreateModel( name='Images', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('title', models.CharField(max_length=30)), ('post', models.TextField()), ('pub_date', models.DateTimeField(auto_now_add=True)), ('image', cloudinary.models.CloudinaryField(max_length=255, null=True, verbose_name='image')), ('categories', models.ManyToManyField(to='gallery.Category')), ('editor', models.ForeignKey(on_delete=django.db.models.deletion.DO_NOTHING, to='gallery.editor')), ], ), ]
class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('applict', '0001_initial'), ] operations = [ migrations.CreateModel( name='Profile', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('profile_picture', cloudinary.models.CloudinaryField(max_length=255, verbose_name='image')), ('bio', models.TextField(blank=True, default='Bio', max_length=700)), ('name', models.CharField(blank=True, max_length=120)), ('location', models.CharField(blank=True, max_length=60)), ('contact', models.EmailField(blank=True, max_length=100)), ('user', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], ), migrations.DeleteModel( name='Picture', ), ]
class Migration(migrations.Migration): initial = True dependencies = [] operations = [ migrations.CreateModel( name='UserAccount', fields=[ ('id', models.AutoField(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')), ('email', models.EmailField(max_length=70, unique=True, verbose_name='email')), ('username', models.CharField(max_length=70, unique=True)), ('is_admin', models.BooleanField(default=False)), ('is_active', models.BooleanField(default=True)), ('is_superuser', models.BooleanField(default=False)), ('is_staff', models.BooleanField(default=False)), ], options={ 'abstract': False, }, ), migrations.CreateModel( name='Category', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=100)), ], ), migrations.CreateModel( name='Profile', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('image', models.ImageField(default='default-avatar.jpg', upload_to='')), ('url', models.URLField(blank=True, max_length=300)), ('description', models.TextField(blank=True, max_length=200)), ('country', models.CharField(blank=True, choices=[('CaC', 'Choose a Country'), ('Angola', 'Angola'), ('Afghanistan', 'Afghanistan'), ('Argentina', ' Argentina'), ('Algeria', 'Algeria'), ('Australia', 'Australia'), ('Austria', 'Austria'), ('Belgium', 'Belgium'), ('Burkinafaso', 'Burkina-Faso'), ('Botswana', 'Botswana'), ('Brazil', 'Brazil'), ('China', 'China'), ('Congo', 'Congo'), ('Cameroon', 'Cameroon'), ('Cuba', 'Cuba'), ('Denmark', 'Denmark'), ('Egypt', 'Egypt'), ('Ethiopia', 'Ethiopia'), ('Estonia', 'Estonia'), ('France', 'France'), ('Fiji', 'Fiji'), ('France', 'France'), ('Ghana', 'Ghana'), ('Gabon', 'Gabon'), ('Guinea', 'Guinea'), ('Germany', 'Germany'), ('Granada', 'Granada'), ('Hongkong', 'Hong-Kong'), ('Haiti', 'Haiti'), ('Hungary', 'Hungary'), ('Italy', 'Italy'), ('Indonesia', 'Indonesia'), ('Japan', 'Japan'), ('Kenya', 'Kenya'), ('Kuwait', 'Kuwait'), ('Liberia', 'Liberia'), ('Rwanda', 'Rwanda'), ('Sudan', 'Sudan'), ('Southafrica', 'South Africa'), ('Tanzania', 'Tanzania'), ('Uganda', 'Uganda')], default='CaC', max_length=100)), ('career', models.CharField(choices=[ ('Freelance', 'Individual / Freelance'), ('Agency', 'Agency - More than 10 people'), ('Studio', 'Studio - 10 people or fewer') ], default='Freelance', max_length=100)), ('twitter', models.URLField(blank=True, default='https://twitter.com/')), ('facebook', models.URLField(blank=True, default='https://www.facebook.com/')), ('linkedin', models.URLField(blank=True, default='https://linkedin.com/')), ('instagram', models.URLField(blank=True, default='https://instagram.com/')), ('date_joined', models.DateTimeField(auto_now_add=True)), ('last_login', models.DateTimeField(auto_now=True)), ('user', models.OneToOneField( on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], options={ 'ordering': ('-date_joined', ), }, ), migrations.CreateModel( name='Projects', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('sitename', models.CharField(max_length=300)), ('siteurl', models.URLField(max_length=300)), ('siteimage', cloudinary.models.CloudinaryField(max_length=255, verbose_name='image')), ('description', models.TextField(max_length=300)), ('technology', models.CharField(blank=True, max_length=100, null=True)), ('country', models.CharField(choices=[('CaC', 'Choose a Country'), ('Angola', 'Angola'), ('Afghanistan', 'Afghanistan'), ('Argentina', ' Argentina'), ('Algeria', 'Algeria'), ('Australia', 'Australia'), ('Austria', 'Austria'), ('Belgium', 'Belgium'), ('Burkinafaso', 'Burkina-Faso'), ('Botswana', 'Botswana'), ('Brazil', 'Brazil'), ('China', 'China'), ('Congo', 'Congo'), ('Cameroon', 'Cameroon'), ('Cuba', 'Cuba'), ('Denmark', 'Denmark'), ('Egypt', 'Egypt'), ('Ethiopia', 'Ethiopia'), ('Estonia', 'Estonia'), ('France', 'France'), ('Fiji', 'Fiji'), ('France', 'France'), ('Ghana', 'Ghana'), ('Gabon', 'Gabon'), ('Guinea', 'Guinea'), ('Germany', 'Germany'), ('Granada', 'Granada'), ('Hongkong', 'Hong-Kong'), ('Haiti', 'Haiti'), ('Hungary', 'Hungary'), ('Italy', 'Italy'), ('Indonesia', 'Indonesia'), ('Japan', 'Japan'), ('Kenya', 'Kenya'), ('Kuwait', 'Kuwait'), ('Liberia', 'Liberia'), ('Rwanda', 'Rwanda'), ('Sudan', 'Sudan'), ('Southafrica', 'South Africa'), ('Tanzania', 'Tanzania'), ('Uganda', 'Uganda')], default='CaC', max_length=100)), ('created', models.DateTimeField(auto_now_add=True)), ('updated', models.DateTimeField(auto_now=True)), ('category', models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, related_name='category', to='awwards_users.category')), ('profile', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='owner', to='awwards_users.profile')), ], options={ 'ordering': ('-created', ), }, ), ]
class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('team', '0001_initial'), ] operations = [ migrations.CreateModel( name='Event', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('meetup_ID', models.CharField(max_length=120)), ('title', models.CharField(max_length=120)), ('description', models.TextField()), ('banner', cloudinary.models.CloudinaryField(blank=True, max_length=255, null=True, verbose_name='banner')), ('location', models.CharField(max_length=200)), ('latitude', models.CharField(default=6.9214, max_length=200)), ('longitude', models.CharField(default=122.079, max_length=200)), ('date', models.DateField()), ('time', models.TimeField()), ('date_to', models.DateField()), ('time_to', models.TimeField()), ('registration', models.URLField(blank=True, max_length=1000, null=True)), ('status', models.CharField(default='Draft', max_length=120)), ('slug', models.SlugField(blank=True, max_length=255, null=True)), ('timestamp', models.DateTimeField(auto_now_add=True)), ('updated', models.DateTimeField(auto_now=True)), ('author', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ('member_speaker', models.ManyToManyField(to='team.Member')), ('member_sponsor', models.ManyToManyField(related_name='sponsored_events', to='team.Member')), ('member_volunteer', models.ManyToManyField(related_name='volunteered_events', to='team.Member')), ], ), migrations.CreateModel( name='EventAttendance', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('member_id', models.CharField(max_length=100)), ('member_name', models.CharField(max_length=300)), ('member_image', models.URLField(blank=True, max_length=300, null=True)), ], ), migrations.CreateModel( name='EventStatistics', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('male', models.IntegerField(default=0)), ('female', models.IntegerField(default=0)), ('yes_rsvp', models.IntegerField(default=0)), ('no_rsvp', models.IntegerField(default=0)), ('manual_count', models.IntegerField(default=0)), ('event', models.OneToOneField( on_delete=django.db.models.deletion.CASCADE, to='event.Event')), ], ), migrations.CreateModel( name='Feedback', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(blank=True, default='Anonymous', max_length=120, null=True)), ('feedback', models.TextField()), ('timestamp', models.DateTimeField(auto_now_add=True)), ('event', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='event.Event')), ], ), migrations.CreateModel( name='Info', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('banner', cloudinary.models.CloudinaryField(blank=True, max_length=255, null=True, verbose_name='banner')), ('title', models.CharField(max_length=120)), ('description', models.TextField()), ('slug', models.SlugField(blank=True, max_length=255, null=True)), ('timestamp', models.DateTimeField(auto_now_add=True)), ], ), migrations.CreateModel( name='Speaker', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=200)), ('firstname', models.CharField(max_length=100)), ('lastname', models.CharField(max_length=100)), ('photo', cloudinary.models.CloudinaryField(blank=True, max_length=255, null=True, verbose_name='photo')), ('description', models.TextField(max_length=300)), ('expertise', models.TextField(blank=True, null=True)), ('email', models.EmailField(blank=True, max_length=254, null=True)), ('facebook', models.CharField(blank=True, max_length=500, null=True)), ('twitter', models.CharField(blank=True, max_length=500, null=True)), ('instagram', models.CharField(blank=True, max_length=500, null=True)), ('website', models.URLField(blank=True, max_length=500, null=True)), ('slug', models.SlugField(blank=True, max_length=255, null=True)), ('timestamp', models.DateTimeField(auto_now_add=True)), ], ), migrations.CreateModel( name='Sponsor', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=200)), ('photo', cloudinary.models.CloudinaryField(blank=True, max_length=255, null=True, verbose_name='photo')), ('description', models.CharField(max_length=300)), ('email', models.EmailField(blank=True, max_length=254, null=True)), ('facebook', models.CharField(blank=True, max_length=500, null=True)), ('twitter', models.CharField(blank=True, max_length=500, null=True)), ('instagram', models.CharField(blank=True, max_length=500, null=True)), ('website', models.URLField(blank=True, max_length=500, null=True)), ('slug', models.SlugField(blank=True, max_length=255, null=True)), ('timestamp', models.DateTimeField(auto_now_add=True)), ], ), migrations.AddField( model_name='eventattendance', name='event_statistic', field=models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, to='event.EventStatistics'), ), migrations.AddField( model_name='event', name='speakers', field=models.ManyToManyField(blank=True, to='event.Speaker'), ), migrations.AddField( model_name='event', name='sponsors', field=models.ManyToManyField(blank=True, to='event.Sponsor'), ), migrations.AddField( model_name='event', name='volunteers', field=models.ManyToManyField(to='team.Volunteer'), ), ]
class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] operations = [ migrations.CreateModel( name='Card', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('src_id', models.CharField(max_length=30)), ('line1', models.CharField(max_length=30)), ('line2', models.CharField(blank=True, max_length=30, null=True)), ('city', models.CharField(max_length=30)), ('state', models.CharField(max_length=30)), ('zipcode', models.CharField(max_length=20)), ('country', django_countries.fields.CountryField(max_length=2)), ('first_name', models.CharField(max_length=100)), ('last_name', models.CharField(max_length=100)), ('email', models.EmailField(max_length=100)), ], ), migrations.CreateModel( name='Customer', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('full_name', models.CharField(default='Guest', max_length=100)), ('email', models.EmailField(blank=True, max_length=50, null=True)), ('stripe_customer_id', models.CharField(blank=True, max_length=100, null=True)), ('purchase_attempt_time', models.DateTimeField(blank=True, null=True)), ('guest_num', models.IntegerField(blank=True, default=0, null=True)), ('user', models.OneToOneField( blank=True, null=True, on_delete=django.db.models.deletion.PROTECT, to=settings.AUTH_USER_MODEL)), ], ), migrations.CreateModel( name='FilterCategory', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=30, unique=True)), ], ), migrations.CreateModel( name='FilterName', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=30, unique=True)), ('filter_category', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='store.filtercategory')), ], ), migrations.CreateModel( name='Item', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=50, unique=True)), ('description', models.TextField()), ('price', models.FloatField(default=0)), ('discount_price', models.FloatField(blank=True, null=True)), ('quantity', models.IntegerField(default=0)), ('image', cloudinary.models.CloudinaryField(blank=True, max_length=255, null=True)), ('slug', models.SlugField(blank=True, null=True, unique=True)), ('is_active', models.BooleanField(default=True)), ('total_sold', models.IntegerField(default=0)), ('total_earnings', models.IntegerField(default=0)), ('daily_earnings', models.IntegerField(default=0)), ('weekly_earnings', models.IntegerField(default=0)), ('monthly_earnings', models.IntegerField(default=0)), ('yearly_earnings', models.IntegerField(default=0)), ('filter_name', models.ManyToManyField(blank=True, to='store.FilterName')), ], ), migrations.CreateModel( name='ItemCategory', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=30, unique=True)), ('slug', models.SlugField(blank=True, unique=True)), ('date_started', models.DateTimeField(default=django.utils.timezone.now)), ('is_active', models.BooleanField(default=True)), ('total_earnings', models.IntegerField(default=0)), ('daily_earnings', models.IntegerField(default=0)), ('weekly_earnings', models.IntegerField(default=0)), ('monthly_earnings', models.IntegerField(default=0)), ('yearly_earnings', models.IntegerField(default=0)), ], ), migrations.CreateModel( name='Order', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('full_name', models.CharField(blank=True, max_length=100, null=True)), ('email', models.CharField(blank=True, max_length=30, null=True)), ('payment_intent_id', models.CharField(blank=True, max_length=30, null=True)), ('ref_code', models.CharField(blank=True, max_length=20, null=True)), ('date', models.DateTimeField(blank=True, null=True)), ('ordered', models.BooleanField(default=False)), ('delivered', models.BooleanField(default=False)), ('recieved', models.BooleanField(default=False)), ('refund_requested', models.BooleanField(default=False)), ('refund_granted', models.BooleanField(default=False)), ('cancelled', models.BooleanField(default=False)), ('card', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.PROTECT, to='store.card')), ('customer', models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, to='store.customer')), ], ), migrations.CreateModel( name='ShippingAddress', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('line1', models.CharField(max_length=30)), ('line2', models.CharField(blank=True, max_length=30, null=True)), ('city', models.CharField(max_length=30)), ('state', models.CharField(max_length=30)), ('zipcode', models.CharField(max_length=30)), ('country', django_countries.fields.CountryField(max_length=2)), ('first_name', models.CharField(max_length=30)), ('last_name', models.CharField(max_length=30)), ('email', models.EmailField(max_length=30)), ('customer', models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, to='store.customer')), ], ), migrations.CreateModel( name='OrderItem', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('quantity', models.IntegerField(default=0)), ('in_cart', models.BooleanField(default=False)), ('ordered', models.BooleanField(default=False)), ('customer', models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, to='store.customer')), ('item', models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, to='store.item', verbose_name='Item List')), ('order', models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, to='store.order')), ], ), migrations.AddField( model_name='order', name='shipping_address', field=models.ForeignKey( blank=True, null=True, on_delete=django.db.models.deletion.PROTECT, related_name='shipping_address', to='store.shippingaddress'), ), migrations.AddField( model_name='item', name='item_category', field=models.ForeignKey( on_delete=django.db.models.deletion.PROTECT, to='store.itemcategory'), ), migrations.AddField( model_name='filtercategory', name='item_category', field=models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, to='store.itemcategory'), ), migrations.AddField( model_name='card', name='customer', field=models.ForeignKey( on_delete=django.db.models.deletion.PROTECT, to='store.customer'), ), ]
class Migration(migrations.Migration): dependencies = [ ('hoodapp', '0001_initial'), ] operations = [ migrations.CreateModel( name='Post', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('title', models.CharField(max_length=60)), ('post', models.EmailField(max_length=254)), ('post_description', models.TextField()), ('post_digits', models.IntegerField(max_length=10, null=True)), ('pub_date', models.DateTimeField(auto_now_add=True, null=True)), ('prof_ref', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, related_name='posts', to='hoodapp.profile')), ], options={ 'ordering': ['pub_date'], }, ), migrations.CreateModel( name='Neighbourhood', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('hood_name', models.CharField(max_length=60)), ('hood_location', models.CharField(max_length=60)), ('hood_pic', cloudinary.models.CloudinaryField(max_length=255, null=True, verbose_name='hood_pic')), ('hood_description', models.TextField()), ('occupant_count', models.IntegerField()), ('pub_date', models.DateTimeField(auto_now_add=True, null=True)), ('prof_ref', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, related_name='neighbourhoods', to='hoodapp.profile')), ], options={ 'ordering': ['pub_date'], }, ), migrations.CreateModel( name='Business', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('biz_name', models.CharField(max_length=60)), ('biz_email', models.EmailField(max_length=254)), ('biz_description', models.TextField()), ('biz_digits', models.IntegerField(max_length=10, null=True)), ('pub_date', models.DateTimeField(auto_now_add=True, null=True)), ('hood_ref', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, related_name='businesses', to='hoodapp.neighbourhood')), ], options={ 'ordering': ['pub_date'], }, ), ]
class Migration(migrations.Migration): initial = True dependencies = [ ('auth', '0012_alter_user_first_name_max_length'), ] operations = [ migrations.CreateModel( name='User', fields=[ ('id', models.AutoField(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')), ('username', models.CharField( error_messages={ 'unique': 'A user with that username already exists.' }, help_text= 'Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only.', max_length=150, unique=True, validators=[ django.contrib.auth.validators. UnicodeUsernameValidator() ], verbose_name='username')), ('first_name', models.CharField(blank=True, max_length=150, verbose_name='first name')), ('last_name', models.CharField(blank=True, max_length=150, verbose_name='last name')), ('email', models.EmailField(blank=True, max_length=254, verbose_name='email address')), ('is_staff', models.BooleanField( default=False, help_text= 'Designates whether the user can log into this admin site.', verbose_name='staff status')), ('is_active', models.BooleanField( default=True, help_text= 'Designates whether this user should be treated as active. Unselect this instead of deleting accounts.', verbose_name='active')), ('date_joined', models.DateTimeField(default=django.utils.timezone.now, verbose_name='date joined')), ('role', models.CharField(choices=[('CA', 'COMPANY ADMIN'), ('NU', 'NORMAL USER')], default='NU', max_length=2, verbose_name='user role')), ('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')), ('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={ 'verbose_name': 'user', 'verbose_name_plural': 'users', 'abstract': False, }, managers=[ ('objects', django.contrib.auth.models.UserManager()), ], ), migrations.CreateModel( name='Listing', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('Location', models.CharField(max_length=150)), ('Price', models.IntegerField()), ('Realtor', models.CharField(max_length=150)), ('Image1', cloudinary.models.CloudinaryField(max_length=255, verbose_name='image')), ('Image2', cloudinary.models.CloudinaryField(max_length=255, verbose_name='image')), ('Image3', cloudinary.models.CloudinaryField(max_length=255, verbose_name='image')), ('Image4', cloudinary.models.CloudinaryField(max_length=255, verbose_name='image')), ('Bedrooms', models.IntegerField()), ('Bathrooms', models.IntegerField()), ], ), migrations.CreateModel( name='Profile', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(blank=True, max_length=80)), ('location', models.CharField(blank=True, max_length=50, null=True)), ('profile_picture', cloudinary.models.CloudinaryField(max_length=255, verbose_name='image')), ('user', models.OneToOneField( on_delete=django.db.models.deletion.CASCADE, related_name='profile', to=settings.AUTH_USER_MODEL)), ], ), migrations.CreateModel( name='Enquiry', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('Message', models.IntegerField()), ('User', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='enquirer', to='estateapp.profile')), ], ), migrations.CreateModel( name='Bid', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('Bidamount', models.IntegerField()), ('Listing', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='listing', to='estateapp.listing')), ('User', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='bidder', to='estateapp.profile')), ], ), ]
class Migration(migrations.Migration): initial = True dependencies = [ ('auth', '0007_alter_validators_add_error_messages'), ] operations = [ migrations.CreateModel( name='CustomUser', fields=[ ('id', models.AutoField(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')), ('username', models.CharField( help_text= 'Required. 30 characters or fewer. Letters, numbers and @/./+/-/_ characters', max_length=30, unique=True, validators=[ django.core.validators.RegexValidator( re.compile('^[\\w.@+-]+$', 32), 'Enter a valid username.', 'invalid') ], verbose_name='username')), ('full_name', models.CharField(max_length=254, verbose_name='full name')), ('short_name', models.CharField(blank=True, max_length=30, verbose_name='short name')), ('sex', models.CharField(choices=[('Male', 'Male'), ('Female', 'Female')], max_length=30, verbose_name='sex')), ('email', models.EmailField(max_length=254, unique=True, verbose_name='email address')), ('phone_number', models.CharField(max_length=20, validators=[ django.core.validators.RegexValidator( re.compile('^[0-9]+$', 32), 'Only numbers are allowed.', 'invalid') ], verbose_name='phone number')), ('user_type', models.CharField(choices=[('Driver', 'Driver'), ('Passenger', 'Passenger')], max_length=30, verbose_name='user type')), ('address', models.TextField(max_length=400, verbose_name='location')), ('is_staff', models.BooleanField( default=False, help_text= 'Designates whether the user can log into this admin site.', verbose_name='staff status')), ('is_verified', models.BooleanField( default=False, help_text= 'Designates whether the user is a vershified user', verbose_name='user verified')), ('is_active', models.BooleanField( default=True, help_text= 'Designates whether this user should be treated as active. Unselect this instead of deleting accounts.', verbose_name='active')), ('date_joined', models.DateTimeField(default=django.utils.timezone.now, verbose_name='date joined')), ('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')), ('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={ 'verbose_name': 'user', 'verbose_name_plural': 'users', }, managers=[ ('objects', django.contrib.auth.models.UserManager()), ], ), migrations.CreateModel( name='DriverInfo', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('liscence_no', models.CharField(max_length=30, verbose_name='liscence number')), ('date_issuance', models.DateField(blank=True, verbose_name='date of first issuance')), ('scanned', models.ImageField( blank=True, upload_to='', verbose_name="picture of driver's liscence")), ('confirmed', models.BooleanField(default=False, verbose_name='confirmed')), ('driver', models.OneToOneField( on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], ), migrations.CreateModel( name='Follow', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('time', models.DateTimeField(default=django.utils.timezone.now, verbose_name='time')), ('followee', models.ForeignKey(default=None, on_delete=django.db.models.deletion.CASCADE, related_name='followee', to=settings.AUTH_USER_MODEL)), ('follower', models.ForeignKey(default=None, on_delete=django.db.models.deletion.CASCADE, related_name='follower', to=settings.AUTH_USER_MODEL)), ], ), migrations.CreateModel( name='Message', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('subject', models.CharField(default='(No Subject)', max_length=256)), ('message', models.TextField()), ('date', models.DateTimeField(default=django.utils.timezone.now, verbose_name='time sent')), ('read', models.BooleanField(default=False, verbose_name='read')), ('deleted', models.BooleanField(default=False, verbose_name='deleted')), ('recipient', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='recipient', to=settings.AUTH_USER_MODEL)), ('sender', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='sender', to=settings.AUTH_USER_MODEL)), ], ), migrations.CreateModel( name='Profile', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('picture', cloudinary.models.CloudinaryField(blank=True, default='user.png', max_length=255, verbose_name='picture')), ('education', models.TextField(blank=True)), ('work', models.TextField(blank=True)), ('social_facebook', models.CharField(blank=True, max_length=256)), ('social_twitter', models.CharField(blank=True, max_length=256)), ('social_instagram', models.CharField(blank=True, max_length=256)), ('bio', models.TextField(blank=True)), ('is_public', models.BooleanField(default=False)), ('user', models.OneToOneField( on_delete=django.db.models.deletion.CASCADE, related_name='profile', to=settings.AUTH_USER_MODEL)), ], ), ]