class Migration(migrations.Migration): initial = True dependencies = [ 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')), ('likes', models.IntegerField(default=0)), ('content', models.TextField()), ('date_posted', models.DateTimeField(default=django.utils.timezone.now)), ('author', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], ), migrations.CreateModel( name='HomeImages', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('pic', models.ImageField(null=True, upload_to='home_images')), ('post', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='Home.post')), ], ), ]
class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('Home', '0008_session_username'), ] operations = [ migrations.AlterField( model_name='session', name='video', field=models.FileField( upload_to='media/', validators=[Home.models.validate_file_extension], verbose_name='ویدیوی جلسه'), ), migrations.CreateModel( name='Comment', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('body', models.TextField()), ('created_on', models.DateTimeField(auto_now_add=True)), ('active', models.BooleanField(default=False)), ('post', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='comments', to='Home.Course')), ('user', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], options={ 'ordering': ['created_on'], }, ), ]
class Migration(migrations.Migration): dependencies = [ ('adminside', '0003_auto_20200321_1443'), ('Home', '0010_auto_20200321_1520'), ] operations = [ migrations.AddField( model_name='product', name='ApprovedBy', field=models.ForeignKey( blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='adminside.Employee'), ), migrations.AddField( model_name='product', name='Condition', field=models.CharField(choices=[('New', 'New'), ('Old', 'Old')], default='', max_length=5), ), migrations.AddField( model_name='product', name='Feature1', field=models.CharField(default='', max_length=50), ), migrations.AddField( model_name='product', name='Feature2', field=models.CharField(blank=True, default='', max_length=50, null=True), ), migrations.AddField( model_name='product', name='Feature3', field=models.CharField(blank=True, default='', max_length=50, null=True), ), migrations.AddField( model_name='product', name='Feature4', field=models.CharField(blank=True, default='', max_length=50, null=True), ), migrations.AddField( model_name='product', name='Feature5', field=models.CharField(blank=True, default='', max_length=50, null=True), ), migrations.AddField( model_name='product', name='IsReported', field=models.BooleanField(choices=[(True, 'Yes'), (False, 'No')], default=False), ), migrations.AddField( model_name='product', name='IsVisited', field=models.BooleanField(choices=[(True, 'Yes'), (False, 'No')], default=False), ), migrations.AddField( model_name='product', name='OtherBrand', field=models.CharField(blank=True, max_length=50, null=True), ), migrations.AddField( model_name='product', name='Rate', field=models.DecimalField(blank=True, decimal_places=1, max_digits=2, null=True), ), migrations.AddField( model_name='product', name='image2', field=models.ImageField(blank=True, null=True, upload_to=Home.models.upload_image_path), ), migrations.AddField( model_name='product', name='image3', field=models.ImageField(blank=True, null=True, upload_to=Home.models.upload_image_path), ), migrations.AddField( model_name='product', name='image4', field=models.ImageField(blank=True, null=True, upload_to=Home.models.upload_image_path), ), migrations.AddField( model_name='product', name='image5', field=models.ImageField(blank=True, null=True, upload_to=Home.models.upload_image_path), ), migrations.AddField( model_name='product', name='offerDetails', field=models.CharField(default='', max_length=50), ), migrations.AddField( model_name='product', name='rejection_reason', field=models.CharField(blank=True, max_length=100, null=True), ), migrations.AlterField( model_name='product', name='brand', field=models.ForeignKey( blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='adminside.Brandmaster'), ), migrations.AlterField( model_name='product', name='post_date', field=models.DateTimeField(auto_now=True), ), migrations.AlterField( model_name='product', name='update_date', field=models.DateTimeField(auto_now_add=True), ), migrations.AlterField( model_name='product', name='verifier_person', field=models.ForeignKey( blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='adminside.Workers'), ), ]
class Migration(migrations.Migration): initial = True dependencies = [ ('auth', '0012_alter_user_first_name_max_length'), ('Poll', '0001_initial'), ] operations = [ migrations.CreateModel( name='BusinessManager', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('rut_bm', models.CharField(max_length=12, unique=True)), ('fullname', models.CharField(max_length=100)), ('email', models.EmailField(max_length=254, unique=True)), ('phone', models.PositiveIntegerField()), ('last_login', models.DateField(auto_now=True)), ], options={ 'verbose_name': 'Representante', 'verbose_name_plural': 'Representantes', }, ), migrations.CreateModel( name='City', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name_city', models.CharField(max_length=50)), ], options={ 'verbose_name': 'Ciudad', 'verbose_name_plural': 'Ciudades', }, ), migrations.CreateModel( name='Town', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name_town_t', models.CharField(max_length=50)), ], options={ 'verbose_name': 'Comuna', 'verbose_name_plural': 'Comunas', }, ), migrations.CreateModel( name='UserGuiar', 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')), ('rut', models.CharField(max_length=12, unique=True)), ('name', models.CharField(max_length=100)), ('address', models.CharField(max_length=100, null=True)), ('seniority', models.PositiveSmallIntegerField(blank=True, null=True)), ('email_manager', models.EmailField(max_length=254)), ('n_emp_hired', models.PositiveIntegerField(default=0, null=True)), ('n_cont_emp', models.PositiveIntegerField(default=0, null=True)), ('n_veh_com_light', models.PositiveIntegerField(default=0, null=True)), ('n_veh_com_cont', models.PositiveIntegerField(default=0, null=True)), ('n_veh_com_heavy', models.PositiveIntegerField(default=0, null=True)), ('n_veh_com_heavy_cont', models.PositiveIntegerField(default=0, null=True)), ('n_mach_heavy', models.PositiveIntegerField(default=0, null=True)), ('n_mach_heavy_cont', models.PositiveIntegerField(default=0, null=True)), ('is_admin', models.BooleanField(default=False)), ('enable_poll', models.BooleanField(default=True)), ('is_active', models.BooleanField(default=True)), ('building', models.ManyToManyField(blank=True, to='Poll.BuildingProcess')), ('city', models.ForeignKey( null=True, on_delete=django.db.models.deletion.DO_NOTHING, to='Home.city')), ('electricity_confirmed', models.ForeignKey( null=True, on_delete=django.db.models.deletion.DO_NOTHING, to='Poll.electricityconfirmed')), ('electricity_control', models.ManyToManyField(to='Poll.ElectricityControl')), ('explosive_confirmed', models.ForeignKey( null=True, on_delete=django.db.models.deletion.DO_NOTHING, to='Poll.explosiveconfirmed')), ('explosive_control', models.ManyToManyField(to='Poll.ExplosiveControl')), ('general_services', models.ManyToManyField(blank=True, to='Poll.GeneralServicesProcess')), ('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')), ('height_confirmed', models.ForeignKey( null=True, on_delete=django.db.models.deletion.DO_NOTHING, to='Poll.heightconfirmed')), ('height_control', models.ManyToManyField(to='Poll.HeightControl')), ('manager', models.OneToOneField( blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='Home.businessmanager')), ('manufacture', models.ManyToManyField(blank=True, to='Poll.ManufactureProcess')), ('process', models.ManyToManyField(to='Poll.ProcessBusiness')), ('risk_management', models.ForeignKey( null=True, on_delete=django.db.models.deletion.DO_NOTHING, to='Poll.riskmanagement')), ('risk_prevent', models.ForeignKey( null=True, on_delete=django.db.models.deletion.DO_NOTHING, to='Poll.riskpreventionpersonal')), ('sales', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, to='Poll.sales')), ('substance_confirmed', models.ForeignKey( null=True, on_delete=django.db.models.deletion.DO_NOTHING, to='Poll.substanceconfirmed')), ('substance_control', models.ManyToManyField(to='Poll.SubstanceControl')), ('town', models.ForeignKey( null=True, on_delete=django.db.models.deletion.DO_NOTHING, to='Home.town')), ('transport', models.ManyToManyField(blank=True, to='Poll.TransportProcess')), ('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': 'Usuario', 'verbose_name_plural': 'Usuarios', }, managers=[ ('objects', Home.models.UserGuiarManager()), ], ), ]
class Migration(migrations.Migration): initial = True dependencies = [ ('auth', '0009_alter_user_last_name_max_length'), ] operations = [ migrations.CreateModel( name='attendance', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=64)), ('roll', models.IntegerField()), ('date', models.DateField(validators=[Home.models.date_valid])), ], options={ 'ordering': ['-date', 'roll'], }, ), migrations.CreateModel( name='attendanceclass', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('date', models.DateField(blank=True)), ('status', models.IntegerField(default=0)), ], ), migrations.CreateModel( name='student', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=30)), ('roll', models.IntegerField()), ], options={ 'ordering': ['roll'], }, ), migrations.CreateModel( name='subject', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('sub', models.CharField(max_length=64)), ], ), migrations.CreateModel( name='time', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('time', models.CharField(max_length=64)), ('sub', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='Home.subject')), ], ), migrations.CreateModel( name='user_type', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('is_principle', models.BooleanField(default=False)), ('is_hod', models.BooleanField(default=False)), ('is_teacher', models.BooleanField(default=False)), ('is_student', models.BooleanField(default=True)), ], ), 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')), ('email', models.EmailField(max_length=254, unique=True)), ('name', models.CharField(blank=True, max_length=254, null=True)), ('is_staff', models.BooleanField(default=False)), ('is_superuser', models.BooleanField(default=False)), ('is_active', models.BooleanField(default=True)), ('last_login', models.DateTimeField(blank=True, null=True)), ('date_joined', models.DateTimeField(auto_now_add=True)), ('groups', models.ManyToManyField(blank=True, help_text='The groups this user belongs to. A user will get all permissions granted to each of their groups.', related_name='user_set', related_query_name='user', to='auth.Group', verbose_name='groups')), ('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, }, ), migrations.AddField( model_name='user_type', name='user', field=models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL), ), migrations.AddField( model_name='attendance', name='sub', field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to='Home.subject'), ), ]
class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] operations = [ migrations.CreateModel( name='Carousel', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=50, null=True)), ], ), migrations.CreateModel( name='Category', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=50)), ('is_active', models.BooleanField(default=True)), ('created_date', models.DateField()), ('logo', models.ImageField(upload_to=Home.models.category_icon_path)), ('rank', models.PositiveIntegerField(null=True)), ], ), migrations.CreateModel( name='ContactInfo', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=100)), ('number', models.BigIntegerField()), ('email', models.EmailField(max_length=254)), ('address', models.CharField(max_length=500)), ], ), migrations.CreateModel( name='DayHit', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('hits', models.IntegerField(default=0)), ('date', models.DateField()), ], ), migrations.CreateModel( name='Log', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('time_stamp', models.DateTimeField()), ('user', models.ForeignKey(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')), ('name', models.CharField(max_length=100)), ('description', models.CharField(blank=True, max_length=500, null=True)), ('media', models.FileField(blank=True, default=None, upload_to=Home.models.project_media_path)), ('media_type', models.BooleanField(default=0)), ('youtube_url', models.URLField(blank=True, null=True)), ('category', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='Home.Category')), ], ), migrations.CreateModel( name='Query', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('first_name', models.CharField(max_length=100, null=True)), ('last_name', models.CharField(max_length=100, null=True)), ('email', models.EmailField(max_length=254)), ('subject', models.CharField(max_length=100)), ('description', models.CharField(max_length=500)), ], ), migrations.CreateModel( name='SiteDetail', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('total_hits', models.BigIntegerField(default=0)), ], ), ]
class Migration(migrations.Migration): initial = True dependencies = [] operations = [ migrations.CreateModel( name='Exhibition', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('exhibition_title', models.CharField(max_length=200)), ('location', models.CharField(max_length=150)), ('description', models.TextField()), ('created_date', models.DateTimeField(auto_now_add=True)), ], ), migrations.CreateModel( name='Exhibition_Images', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('image_title', models.CharField(default='img', max_length=100)), ('images', models.ImageField(blank=True, null=True, upload_to=Home.models.get_exhib_folder)), ], ), migrations.CreateModel( name='Function_Images', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('image_title', models.CharField(default='img', max_length=100)), ('images', models.ImageField(blank=True, null=True, upload_to=Home.models.get_func_folder)), ], ), migrations.CreateModel( name='Functions', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('function_title', models.CharField(max_length=200)), ('location', models.CharField(max_length=150)), ('description', models.TextField()), ('created_date', models.DateTimeField(auto_now_add=True)), ], ), 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=200)), ('location', models.CharField(max_length=150)), ('description', models.TextField()), ('created_date', models.DateTimeField(auto_now_add=True)), ], ), migrations.CreateModel( name='Project_Images', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('image_title', models.CharField(default='img', max_length=100)), ('images', models.ImageField(blank=True, null=True, upload_to=Home.models.get_image_filename)), ('project_name', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='Home.Project')), ], ), migrations.AddField( model_name='function_images', name='function_name', field=models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, to='Home.Functions'), ), migrations.AddField( model_name='exhibition_images', name='exhibition_name', field=models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, to='Home.Project'), ), ]