class Migration(migrations.Migration): dependencies = [ ('certificate', '0006_auto_20180912_1036'), ] operations = [ migrations.RenameField( model_name='certificate', old_name='course_title', new_name='certificate_title', ), migrations.RenameField( model_name='certificate', old_name='academy_link', new_name='institution_link', ), migrations.RenameField( model_name='certificate', old_name='academy_title', new_name='institution_title', ), migrations.AddField( model_name='certificate', name='granted_to_type', field=models.PositiveSmallIntegerField( choices=[(1, 'LEARNER'), (2, 'ACADEMY'), (3, 'BUSINESS')], default=bdn.profiles.models.ProfileType(1)), ), ]
class Migration(migrations.Migration): initial = True dependencies = [ ('certificate', '0001_initial'), migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] operations = [ migrations.CreateModel( name='Verification', fields=[ ('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)), ('state', django_fsm.FSMField(default='open', max_length=50)), ('tx_hash', models.CharField(blank=True, max_length=70, null=True)), ('block_hash', models.CharField(blank=True, max_length=70, null=True)), ('block_number', models.IntegerField(default=0)), ('verifier_type', models.PositiveSmallIntegerField( choices=[(bdn.profiles.models.ProfileType(1), 1), (bdn.profiles.models.ProfileType(2), 2), (bdn.profiles.models.ProfileType(3), 3)], default=bdn.profiles.models.ProfileType(1))), ('meta_ipfs_hash', models.CharField(blank=True, max_length=50, null=True)), ('date_created', models.DateTimeField(auto_now_add=True)), ('date_last_modified', models.DateTimeField(auto_now=True)), ('certificate', models.ForeignKey( null=True, on_delete=django.db.models.deletion.SET_NULL, to='certificate.Certificate')), ('granted_to', models.ForeignKey( null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='received_verifications', to=settings.AUTH_USER_MODEL)), ('verifier', models.ForeignKey( null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='granted_verifications', to=settings.AUTH_USER_MODEL)), ], ), ]
class Migration(migrations.Migration): dependencies = [ ('profiles', '0001_initial'), ] operations = [ migrations.AlterField( model_name='profile', name='active_profile_type', field=models.PositiveSmallIntegerField(choices=[(1, 'LEARNER'), (2, 'ACADEMY'), (3, 'BUSINESS')], default=bdn.profiles.models.ProfileType(1)), ), ]
class Migration(migrations.Migration): dependencies = [ ('verification', '0003_verification_granted_to_type'), ] operations = [ migrations.AlterField( model_name='verification', name='granted_to_type', field=models.PositiveSmallIntegerField( choices=[(1, 'LEARNER'), (2, 'ACADEMY'), (3, 'BUSINESS')], default=bdn.profiles.models.ProfileType(1)), ), ]
class Migration(migrations.Migration): dependencies = [ ('verification', '0002_auto_20180820_1444'), ] operations = [ migrations.AddField( model_name='verification', name='granted_to_type', field=models.PositiveSmallIntegerField( choices=[(bdn.profiles.models.ProfileType(1), 1), (bdn.profiles.models.ProfileType(2), 2), (bdn.profiles.models.ProfileType(3), 3)], default=bdn.profiles.models.ProfileType(1)), ), ]
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')), ('active_profile_type', models.PositiveSmallIntegerField( choices=[(bdn.profiles.models.ProfileType(1), 1), (bdn.profiles.models.ProfileType(2), 2), (bdn.profiles.models.ProfileType(3), 3)], default=bdn.profiles.models.ProfileType(1))), ('first_name', models.CharField(blank=True, max_length=70, null=True)), ('last_name', models.CharField(blank=True, max_length=70, null=True)), ('learner_email', models.EmailField(blank=True, max_length=70, null=True)), ('learner_position', models.CharField(blank=True, max_length=70, null=True)), ('learner_specialisation', models.CharField(blank=True, max_length=70, null=True)), ('learner_about', models.TextField(blank=True, max_length=500, null=True)), ('public_profile', models.BooleanField(default=False)), ('learner_site', models.CharField(blank=True, max_length=70, null=True)), ('phone_number', models.CharField(blank=True, max_length=70, null=True)), ('learner_country', models.CharField(blank=True, max_length=70, null=True)), ('learner_avatar', models.CharField(blank=True, max_length=100, null=True)), ('academy_name', models.CharField(blank=True, max_length=70, null=True)), ('academy_website', models.CharField(blank=True, max_length=70, null=True)), ('academy_email', models.EmailField(blank=True, max_length=70, null=True)), ('academy_country', models.CharField(blank=True, max_length=70, null=True)), ('academy_about', models.TextField(blank=True, max_length=500, null=True)), ('academy_logo', models.CharField(blank=True, max_length=100, null=True)), ('company_name', models.CharField(blank=True, max_length=70, null=True)), ('company_website', models.CharField(blank=True, max_length=70, null=True)), ('company_email', models.EmailField(blank=True, max_length=70, null=True)), ('company_country', models.CharField(blank=True, max_length=70, null=True)), ('company_about', models.TextField(blank=True, max_length=500, null=True)), ('company_logo', models.CharField(blank=True, max_length=100, null=True)), ('user', models.OneToOneField( on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], ), ]