class Migration(migrations.Migration): initial = True dependencies = [] operations = [ migrations.CreateModel( name='User', fields=[ ('password', models.CharField(max_length=128, verbose_name='password')), ('last_login', models.DateTimeField(blank=True, null=True, verbose_name='last login')), ('id', models.UUIDField(default=uuid.uuid4, primary_key=True, serialize=False)), ('name', models.CharField(max_length=127, null=True)), ('contact_number', models.CharField(max_length=15, null=True)), ('username', models.CharField(default=account.models.generate_username, max_length=127, unique=True)), ('email', models.EmailField(db_index=True, max_length=255, unique=True)), ('registered_at', models.DateTimeField(auto_now_add=True, db_index=True)), ('is_verified', models.BooleanField(default=False)), ], options={ 'abstract': False, }, managers=[ ('objects', django.contrib.auth.models.UserManager()), ], ), migrations.CreateModel( name='VerificationToken', fields=[ ('user_id', models.UUIDField(default=uuid.uuid4, primary_key=True, serialize=False)), ('token', models.CharField( db_index=True, default=account.models.generate_activation_key, max_length=32, unique=True)), ], ), ]
class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('account', '0001_initial'), ] operations = [ migrations.CreateModel( name='ResetPassword', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('transaction', models.UUIDField( default=account.models.ResetPassword.transaction_default) ), ('token', models.CharField(default=account.models.token_default, max_length=68)), ('expire_date', models.DateTimeField( db_index=True, default=account.models.ResetPassword.expire_date_default) ), ('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='User', fields=[ ('password', models.CharField(max_length=128, verbose_name='password')), ('last_login', models.DateTimeField(blank=True, null=True, verbose_name='last login')), ('uuid', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)), ('name', models.CharField(error_messages={ 'unique': 'A user with that username already exists.' }, max_length=150, unique=True, validators=[account.models.NameValidator() ])), ('first_name', models.CharField(blank=True, help_text='名前', max_length=32)), ('last_name', models.CharField(blank=True, help_text='苗字', max_length=32)), ('email', models.EmailField( error_messages={'unique': 'A email already exists.'}, max_length=254, unique=True, validators=[django.core.validators.EmailValidator()])), ('is_staff', models.BooleanField(default=False)), ('is_active', models.BooleanField(default=True)), ], options={ 'db_table': 'user', }, managers=[ ('objects', django.contrib.auth.models.UserManager()), ], ), ]
class Migration(migrations.Migration): initial = True dependencies = [] operations = [ migrations.CreateModel( name='Account', fields=[ ('password', models.CharField(max_length=128, verbose_name='password')), ('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)), ('email', models.EmailField(max_length=60, unique=True, verbose_name='email')), ('username', models.CharField(max_length=30, unique=True)), ('date_joined', models.DateTimeField(auto_now_add=True, verbose_name='date joined')), ('last_login', models.DateTimeField(auto_now=True, verbose_name='last login')), ('is_admin', models.BooleanField(default=False)), ('is_active', models.BooleanField(default=True)), ('is_staff', models.BooleanField(default=False)), ('is_superuser', models.BooleanField(default=False)), ('profile_image', models.ImageField( blank=True, default=account.models.get_default_profile_image, max_length=255, null=True, upload_to=account.models.get_profile_image_filepath)), ('hide_email', models.BooleanField(default=True)), ], options={ 'abstract': False, }, ), ]
class Migration(migrations.Migration): initial = True dependencies = [ ('auth', '0008_alter_user_username_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')), ('email', models.EmailField(max_length=254, unique=True, verbose_name='email address')), ('first_name', models.CharField(blank=True, default='', max_length=255, verbose_name='first name')), ('last_name', models.CharField(blank=True, default='', max_length=255, verbose_name='last name')), ('date_joined', models.DateTimeField(default=utils.dates.utcnow, verbose_name='date joined')), ('is_active', models.BooleanField(default=True, verbose_name='active')), ('is_staff', models.BooleanField(default=False, help_text='Designates whether the user can log into this admin site.', verbose_name='staff status')), ('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', account.models.UserManager()), ], ), migrations.CreateModel( name='OutlookUser', fields=[ ('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)), ('unique_identifier', models.TextField()), ('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='Post', fields=[ ('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)), ('photo', models.ImageField(editable=False, upload_to=account.models.image_file_path)), ('text', models.TextField(blank=True, max_length=500)), ('location', models.CharField(blank=True, max_length=30)), ('posted_on', models.DateTimeField(auto_now_add=True)), ('author', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='user_posts', to=settings.AUTH_USER_MODEL)), ('likes', models.ManyToManyField(blank=True, related_name='likers', to=settings.AUTH_USER_MODEL)), ], options={ 'ordering': ['-posted_on'], }, ), migrations.CreateModel( name='Comment', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('text', models.CharField(max_length=100)), ('posted_on', models.DateTimeField(auto_now_add=True)), ('author', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='user_comments', to=settings.AUTH_USER_MODEL)), ('post', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='post_comments', to='main.post')), ], options={ 'ordering': ['-posted_on'], }, ), ]
class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] operations = [ migrations.CreateModel( name='Contact', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('created', models.DateTimeField(auto_now_add=True, db_index=True)), ('user_from', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='rel_from_set', to=settings.AUTH_USER_MODEL)), ('user_to', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='rel_to_set', to=settings.AUTH_USER_MODEL)), ], options={ 'ordering': ('-created',), }, ), migrations.CreateModel( name='UserProfile', fields=[ ('created', models.DateTimeField(auto_now_add=True)), ('modified', models.DateTimeField(auto_now=True)), ('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)), ('name', models.CharField(max_length=32)), ('signature', models.CharField(blank=True, max_length=255, null=True)), ('avatar', models.ImageField(blank=True, null=True, upload_to=account.models.UserProfile.get_upload_path)), ('user', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, related_name='profile', to=settings.AUTH_USER_MODEL)), ], options={ 'ordering': ['-created'], 'abstract': False, }, ), ]
class Migration(migrations.Migration): dependencies = [ ('account', '0001_initial'), ] operations = [ migrations.CreateModel( name='ResetPasswordToken', fields=[ ('user_id', models.UUIDField(default=uuid.uuid4, primary_key=True, serialize=False)), ('token', models.CharField( db_index=True, default=account.models.generate_activation_key, max_length=32, unique=True)), ], ), ]
class Migration(migrations.Migration): replaces = [('account', '0001_initial'), ('account', '0002_auto_20200407_1242'), ('account', '0003_auto_20200407_1718'), ('account', '0004_tutordata_profile_picture'), ('account', '0005_auto_20200409_1113'), ('account', '0006_auto_20200413_1438'), ('account', '0007_auto_20200413_1447'), ('account', '0008_passwordresettoken'), ('account', '0009_auto_20200413_1655'), ('account', '0010_trackingdenycounter'), ('account', '0011_auto_20201114_1926')] dependencies = [ ('auth', '0011_update_proxy_permissions'), ] operations = [ migrations.CreateModel( name='SchoolType', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=50, verbose_name='Name des Schultyps')), ], options={ 'verbose_name': 'Schultyp', 'verbose_name_plural': 'Schultypen', }, ), migrations.CreateModel( name='State', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=50, unique=True, verbose_name='Name')), ('shortcode', models.CharField(max_length=2, verbose_name='Kurzbezeichnung')), ], options={ 'verbose_name': 'Bundesland', 'verbose_name_plural': 'Bundesländer', }, ), migrations.CreateModel( name='Subject', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=50, verbose_name='Name')), ], options={ 'verbose_name': 'Fach', 'verbose_name_plural': 'Fächer', }, ), migrations.CreateModel( name='SchoolData', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('grade', models.IntegerField(verbose_name='Klasse')), ('school_type', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='account.schooltype')), ], options={ 'verbose_name': 'Schultyp- und Klassenkombination', 'verbose_name_plural': 'Schultyp- und Klassenkombinationen', }, ), 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')), ('email', models.EmailField(max_length=254, unique=True, verbose_name='E-Mail')), ('uuid', models.UUIDField(default=uuid.uuid4, editable=False, unique=True)), ('is_staff', models.BooleanField(default=False)), ('is_active', models.BooleanField(default=True)), ('date_joined', models.DateTimeField(auto_now_add=True, verbose_name='Beitritt')), ('first_name', models.CharField(max_length=50, verbose_name='Vorname')), ('last_name', models.CharField(blank=True, max_length=50, verbose_name='Nachname')), ('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')), ('state', models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, to='account.state', verbose_name='Bundesland')), ('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')), ('gender', models.CharField(choices=[('MA', 'männlich'), ('FE', 'weiblich'), ('DI', 'divers')], default='', max_length=2, verbose_name='Geschlecht')), ('email_verified', models.BooleanField(default=False, verbose_name='E-Mail bestätigt')), ], options={ 'abstract': False, 'verbose_name': 'Nutzer', 'verbose_name_plural': 'Nutzer', }, ), migrations.CreateModel( name='StudentData', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('school_data', models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, to='account.schooldata', verbose_name='Klasse und Schulart')), ('user', models.OneToOneField( on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], options={ 'verbose_name': 'Schülerdaten', 'verbose_name_plural': 'Schülerdaten', }, ), migrations.CreateModel( name='VerificationToken', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('token', models.UUIDField(default=uuid.uuid4, editable=False, unique=True)), ('created', models.DateTimeField(auto_now_add=True, verbose_name='Erstellt')), ('user', models.OneToOneField( on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], options={ 'verbose_name': 'E-Mail Verifizierungstoken', 'verbose_name_plural': 'E-Mail Verifizierungstoken', }, ), migrations.CreateModel( name='PasswordResetToken', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('token', models.UUIDField(default=uuid.uuid4, editable=False, unique=True)), ('created', models.DateTimeField(auto_now_add=True, verbose_name='Erstellt')), ('user', models.OneToOneField( on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], ), migrations.CreateModel( name='TutorData', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('schooldata', models.ManyToManyField( to='account.SchoolData', verbose_name='Mögliche Schultypen/Klassenstufen')), ('subjects', models.ManyToManyField(to='account.Subject', verbose_name='Fächer')), ('user', models.OneToOneField( on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ('verification_file', models.FileField(blank=True, null=True, upload_to=account.models.tutor_upload_path, verbose_name='Vefizierungsdatei')), ('verified', models.BooleanField(default=False, verbose_name='Verifiziert')), ('profile_picture', models.ImageField( null=True, upload_to=account.models.profile_upload_path, verbose_name='Profilbild')), ], options={ 'verbose_name': 'Tutordaten', 'verbose_name_plural': 'Tutordaten', }, ), migrations.CreateModel( name='TrackingDenyCounter', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('count', models.IntegerField(default=0)), ], options={ 'abstract': False, }, ), ]
class Migration(migrations.Migration): initial = True dependencies = [ ('auth', '0012_alter_user_first_name_max_length'), ] operations = [ migrations.CreateModel( name='Company', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('uuid', models.UUIDField(db_index=True, default=uuid.uuid4, editable=False)), ('email', models.EmailField(max_length=128, unique=True)), ('name', models.CharField(max_length=128)), ('username', models.CharField(blank=True, max_length=128, unique=True)), ('url', models.URLField()), ('is_verified', models.BooleanField(default=False)), ('is_active', models.BooleanField(default=True)), ('image', models.ImageField(blank=True, null=True, upload_to='company/')), ('date_joined', models.DateTimeField(auto_now_add=True)), ], options={ 'verbose_name': 'company', 'verbose_name_plural': 'companies', }, managers=[ ('active_now', django.db.models.manager.Manager()), ], ), 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')), ('is_superuser', models.BooleanField( default=False, help_text= 'Designates that this user has all permissions without explicitly assigning them.', verbose_name='superuser status')), ('uuid', models.UUIDField(db_index=True, default=uuid.uuid4, editable=False)), ('email', models.EmailField(max_length=128, unique=True)), ('username', models.CharField(blank=True, max_length=128, unique=True)), ('fullname', models.CharField(blank=True, max_length=128)), ('is_staff', models.BooleanField(default=False)), ('is_active', models.BooleanField(default=True)), ('image', models.ImageField(blank=True, null=True, upload_to='profile/')), ('date_joined', models.DateTimeField(default=django.utils.timezone.now)), ('last_login', models.DateTimeField(null=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={ 'verbose_name': 'user', 'verbose_name_plural': 'users', }, managers=[ ('objects', account.models.UserManager()), ], ), ]
class Migration(migrations.Migration): initial = True dependencies = [ ('auth', '0011_update_proxy_permissions'), ] operations = [ migrations.CreateModel( name='Account', fields=[ ('password', models.CharField(max_length=128, verbose_name='password')), ('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False, verbose_name='id')), ('email', account.models.EmailLowerCaseField(error_messages={ 'unique': 'Założono już konto na ten adres email.' }, max_length=60, unique=True, verbose_name='email')), ('username', models.CharField(error_messages={ 'unique': 'Nazwa użytkownika jest już zajęta.' }, max_length=30, unique=True, verbose_name='nazwa użytkownika')), ('first_name', models.CharField(max_length=30, verbose_name='imię')), ('last_name', models.CharField(max_length=30, verbose_name='nazwisko')), ('date_joined', models.DateTimeField(null=True, verbose_name='dołączył')), ('last_login', models.DateTimeField(null=True, verbose_name='ostatnio zalogowany')), ('profile_picture', models.ImageField( null=True, upload_to=account.utils.create_profile_picture_file_path, verbose_name='zdjęcie profilowe')), ('is_active', models.BooleanField(default=True)), ('is_admin', models.BooleanField(default=False)), ('is_staff', models.BooleanField(default=False)), ('is_superuser', models.BooleanField(default=False)), ('status', models.IntegerField(choices=[(1, 'verified'), (2, 'waiting_for_verification'), (3, 'rejected'), (4, 'blocked')], default=2)), ('type', models.IntegerField(choices=[(1, 'standard'), (2, 'staff'), (3, 'employer')], default=1)), ('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': 'konto', }, ), migrations.CreateModel( name='Address', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('city', models.CharField(max_length=40, verbose_name='nazwa miasta')), ('street', models.CharField(max_length=120, verbose_name='ulica')), ('street_number', models.CharField(max_length=20, verbose_name='numer budynku')), ('postal_code', models.CharField(max_length=6, verbose_name='kod pocztowy')), ], ), migrations.CreateModel( name='StaffAccount', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('role', models.CharField(blank=True, max_length=60, null=True)), ('user', models.OneToOneField( on_delete=django.db.models.deletion.CASCADE, related_name='staff_account', to=settings.AUTH_USER_MODEL)), ], ), migrations.CreateModel( name='EmployerAccount', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('phone_number', phonenumber_field.modelfields.PhoneNumberField( max_length=128, region=None, verbose_name='numer telefonu')), ('company_name', models.CharField(max_length=60, verbose_name='nazwa firmy')), ('nip', models.CharField(max_length=10, verbose_name='NIP')), ('company_address', models.OneToOneField( on_delete=django.db.models.deletion.CASCADE, to='account.Address', verbose_name='adres firmy')), ('user', models.OneToOneField( on_delete=django.db.models.deletion.CASCADE, related_name='employer_account', to=settings.AUTH_USER_MODEL)), ], ), migrations.CreateModel( name='DefaultAccount', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('phone_number', phonenumber_field.modelfields.PhoneNumberField( max_length=128, region=None, verbose_name='numer telefonu')), ('facility_name', models.CharField(max_length=60, verbose_name='nazwa placówki')), ('facility_address', models.OneToOneField( blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='account.Address', verbose_name='adres placówki')), ('user', models.OneToOneField( on_delete=django.db.models.deletion.CASCADE, related_name='account', to=settings.AUTH_USER_MODEL)), ], ), ]
class Migration(migrations.Migration): dependencies = [ ('account', '0002_auto_20210326_1306'), ] operations = [ migrations.CreateModel( name='ProAccess', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('start', models.DateTimeField(blank=True, null=True)), ('end', models.DateTimeField(blank=True, null=True)), ('created', models.DateTimeField(auto_now_add=True)), ('updated', models.DateTimeField(auto_now=True)), ], ), migrations.AddField( model_name='user', name='time_zone', field=models.CharField(choices=[ ('Asia/Jakarta', '(WIB) Waktu Indonesia Barat'), ('Asia/Makassar', '(WITA) Waktu Indonesia Tengah'), ('Asia/Jayapura', '(WIT) Waktu Indonesia Timur') ], default='Asia/Jakarta', max_length=100), ), migrations.CreateModel( name='ProAccessPurchase', fields=[ ('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)), ('plan_name', models.CharField(max_length=200)), ('days', models.IntegerField()), ('price', models.IntegerField()), ('valid_until', models.DateTimeField( default=account.models.valid_until_time)), ('status', models.SmallIntegerField(choices=[(0, 'order.pending'), (1, 'order.canceled'), (2, 'order.gifted'), (10, 'payment.pending'), (11, 'payment.canceled'), (12, 'payment.paid'), (13, 'payment.expired'), (14, 'payment.refund'), (15, 'payment.failed')], default=0)), ('review_required', models.BooleanField(default=False)), ('created', models.DateTimeField(auto_now_add=True)), ('updated', models.DateTimeField(auto_now=True)), ('pro_access', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='purchases', to='account.proaccess')), ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='purchases', to=settings.AUTH_USER_MODEL)), ], options={ 'ordering': ['-created'], }, ), migrations.AddField( model_name='proaccess', name='user', field=models.OneToOneField( on_delete=django.db.models.deletion.CASCADE, related_name='pro_access', to=settings.AUTH_USER_MODEL), ), migrations.CreateModel( name='MidtransPaymentNotification', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('payload', models.JSONField(blank=True, null=True)), ('payment_type', models.CharField(max_length=50)), ('transaction_id', models.CharField(max_length=200)), ('transaction_status', models.CharField(max_length=50)), ('fraud_status', models.CharField(blank=True, max_length=50, null=True)), ('status_code', models.IntegerField()), ('gross_amount', models.FloatField()), ('created', models.DateTimeField(auto_now_add=True)), ('updated', models.DateTimeField(auto_now=True)), ('purchase', models.ForeignKey( blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to='account.proaccesspurchase')), ], ), migrations.AddIndex( model_name='proaccesspurchase', index=models.Index(fields=['created'], name='purchase_created_idx'), ), migrations.AddIndex( model_name='proaccesspurchase', index=models.Index(fields=['status'], name='purchase_status_idx'), ), migrations.AddIndex( model_name='proaccesspurchase', index=models.Index(fields=['valid_until'], name='purchase_valid_until_idx'), ), migrations.AddIndex( model_name='proaccesspurchase', index=models.Index(fields=['review_required'], name='purchase_review_required_idx'), ), ]
class Migration(migrations.Migration): initial = True dependencies = [ ('auth', '0009_alter_user_last_name_max_length'), ] operations = [ migrations.CreateModel( name='Account', fields=[ ('user_ptr', models.OneToOneField( auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to=settings.AUTH_USER_MODEL)), ('is_another_user', models.BooleanField(blank=True, null=True)), ('main_photo', models.ImageField( blank=True, default='defult-photo.png', null=True, upload_to=account.models.user_directory_path)), ('number_not_read_messages', models.IntegerField(default=0, null=True)), ('sex', models.CharField(choices=[('Не выбрано', 'Не выбрано'), ('Мужской', 'Мужской'), ('Женский', 'Женский')], default='Не выбрано', max_length=1000, null=True)), ('marital_status', models.CharField(choices=[('Не выбрано', 'Не выбрано'), ('Не женат', 'Не женат'), ('Встречаюсь', 'Встречаюсь'), ('Помолвлен', 'Помолвлен'), ('Женат', 'Женат'), ('Влюблён', 'Влюблён'), ('Всё сложно', 'Всё сложно'), ('В активном поиске', 'В активном поиске')], default='Не выбрано', max_length=2000, null=True)), ('birth_day', models.IntegerField(choices=[(1, 1), (2, 2), (3, 3), (4, 4), (5, 5), (6, 6), (7, 7), (8, 8), (9, 9), (10, 10), (11, 11), (12, 12), (13, 13), (14, 14), (15, 15), (16, 16), (17, 17), (18, 18), (19, 19), (20, 20), (21, 21), (22, 22), (23, 23), (24, 24), (25, 25), (26, 26), (27, 27), (28, 28), (29, 29), (30, 30), (31, 31)], default='1', null=True)), ('month_birth', models.CharField(choices=[('Января', 'Января'), ('Февраля', 'Февраля'), ('Марта', 'Марта'), ('Апреля', 'Апреля'), ('Мая', 'Мая'), ('Июня', 'Июня'), ('Июля', 'Июля'), ('Августа', 'Августа'), ('Сентября', 'Сентября'), ('Октября', 'Октября'), ('Ноября', 'Ноября'), ('Декабря', 'Декабря')], default='Января', max_length=2000, null=True)), ('year_birth', models.IntegerField(choices=[(2005, 2005), (2004, 2004), (2003, 2003), (2002, 2002), (2001, 2001), (2000, 2000), (1999, 1999), (1998, 1998), (1997, 1997), (1996, 1996), (1995, 1995), (1994, 1994), (1993, 1993), (1992, 1992), (1991, 1991), (1990, 1990), (1989, 1989), (1988, 1988), (1987, 1987), (1986, 1986), (1985, 1985), (1984, 1984), (1983, 1983), (1982, 1982), (1981, 1981), (1980, 1980), (1979, 1979), (1978, 1978), (1977, 1977), (1976, 1976), (1975, 1975)], default='2005', null=True)), ('is_verified', models.BooleanField(default=False, verbose_name='verified')), ('verification_uuid', models.UUIDField(default=uuid.uuid4, verbose_name='Unique Verification UUID')), ('unrejected_request_number', models.IntegerField(default=0, null=True)), ('number_friends', models.IntegerField(default=0, null=True)), ], options={ 'verbose_name': 'user', 'verbose_name_plural': 'users', 'abstract': False, }, bases=('auth.user', ), managers=[ ('objects', django.contrib.auth.models.UserManager()), ], ), ]
class Migration(migrations.Migration): initial = True dependencies = [ ('auth', '0009_alter_user_last_name_max_length'), ] operations = [ migrations.CreateModel( name='Account', 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')), ('uid', models.UUIDField(default=uuid.uuid4, editable=False, unique=True)), ('datetime_created', models.DateTimeField(default=django.utils.timezone.now)), ('datetime_updated', models.DateTimeField(null=True)), ('datetime_deleted', models.DateTimeField(null=True)), ('is_active', models.BooleanField(default=True)), ('email', models.EmailField(max_length=150, unique=True)), ('name', models.CharField(max_length=150)), ('phone_number', models.CharField(blank=True, max_length=50, null=True)), ('is_superuser', models.BooleanField(default=False)), ('is_staff', models.BooleanField(default=False)), ('is_admin', 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')), ], options={ 'verbose_name': 'account', 'verbose_name_plural': 'accounts', 'ordering': ['email'], }, managers=[ ('objects', account.models.UserManager()), ], ), migrations.CreateModel( name='Organization', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('uid', models.UUIDField(default=uuid.uuid4, editable=False, unique=True)), ('datetime_created', models.DateTimeField(default=django.utils.timezone.now)), ('datetime_updated', models.DateTimeField(null=True)), ('datetime_deleted', models.DateTimeField(null=True)), ('is_active', models.BooleanField(default=True)), ('name', models.CharField(max_length=150)), ('short_name', models.CharField(max_length=20, unique=True)), ('timezone', models.CharField(default='Africa/Kigali', max_length=50)), ('logo_object_key', models.CharField(max_length=255, null=True)), ], options={ 'ordering': ['name'], }, ), migrations.CreateModel( name='RealTimeAccount', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('uid', models.UUIDField(default=uuid.uuid4, editable=False, unique=True)), ('datetime_created', models.DateTimeField(default=django.utils.timezone.now)), ('datetime_updated', models.DateTimeField(null=True)), ('datetime_deleted', models.DateTimeField(null=True)), ('is_active', models.BooleanField(default=True)), ('status', models.CharField(choices=[('healthy', 'healthy'), ('unhealthy', 'unhealthy'), ('pending', 'pending')], default='pending', max_length=50)), ('title', models.CharField(blank=True, max_length=100, null=True)), ('source', models.CharField(choices=[('collar', 'collar')], max_length=50)), ('provider', models.CharField(choices=[('orbcomm', 'orbcomm'), ('savannah_tracking', 'savannah_tracking')], max_length=100)), ('type', models.CharField(max_length=100)), ('device_indexes', models.TextField(blank=True, null=True)), ('organization', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='rt_accounts', to='account.Organization')), ], options={ 'ordering': ['-datetime_created'], }, ), migrations.CreateModel( name='RealTimeIndividual', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('uid', models.UUIDField(default=uuid.uuid4, editable=False, unique=True)), ('datetime_created', models.DateTimeField(default=django.utils.timezone.now)), ('datetime_updated', models.DateTimeField(null=True)), ('datetime_deleted', models.DateTimeField(null=True)), ('is_active', models.BooleanField(default=True)), ('device_id', models.CharField(max_length=100)), ('status', models.CharField(choices=[('active', 'active'), ('broken', 'broken'), ('inactive', 'inactive')], default='active', max_length=50)), ('name', models.CharField(blank=True, max_length=100, null=True)), ('subtype', models.CharField(blank=True, max_length=100, null=True)), ('sex', models.CharField(blank=True, choices=[('male', 'male'), ('female', 'female')], max_length=100, null=True)), ('blood_type', models.CharField(blank=True, choices=[('', '')], max_length=100, null=True)), ('call_sign', models.CharField(blank=True, max_length=100, null=True)), ('monthly_paths', models.TextField(blank=True, null=True)), ('last_position', django.contrib.gis.db.models.fields.PointField(null=True, srid=4326)), ('datetime_last_position', models.DateTimeField(null=True)), ('account', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='rt_individuals', to='account.RealTimeAccount')), ], ), migrations.CreateModel( name='RealTimePosition', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('uid', models.UUIDField(default=uuid.uuid4, editable=False, unique=True)), ('datetime_created', models.DateTimeField(default=django.utils.timezone.now)), ('datetime_updated', models.DateTimeField(null=True)), ('datetime_deleted', models.DateTimeField(null=True)), ('is_active', models.BooleanField(default=True)), ('position', django.contrib.gis.db.models.fields.PointField(srid=4326)), ('datetime_recorded', models.DateTimeField(null=True)), ('temp_celcius', models.DecimalField(decimal_places=1, max_digits=5, null=True)), ('account', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='rt_positions', to='account.RealTimeAccount')), ('individual', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='rt_positions', to='account.RealTimeIndividual')), ], ), migrations.CreateModel( name='RealTimePositionHash', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('datetime_created', models.DateTimeField(default=django.utils.timezone.now)), ('hash', models.CharField(max_length=255, unique=True)), ('account', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='rt_hash_positions', to='account.RealTimeAccount')), ], ), migrations.AddField( model_name='account', name='organization', field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='accounts', to='account.Organization'), ), migrations.AddField( model_name='account', name='user_permissions', field=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'), ), migrations.AlterUniqueTogether( name='realtimeposition', unique_together={('individual', 'position', 'datetime_recorded')}, ), migrations.AlterUniqueTogether( name='realtimeindividual', unique_together={('account', 'device_id')}, ), migrations.AlterUniqueTogether( name='realtimeaccount', unique_together={('organization', 'source', 'provider', 'type')}, ), ]
class Migration(migrations.Migration): initial = True dependencies = [ ('auth', '0009_alter_user_last_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=30, 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_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')), ('phone', models.IntegerField(blank=True, null=True)), ('token', models.UUIDField(default=account.models.get_token, editable=False, unique=True)), ('note', models.TextField(blank=True, null=True)), ('is_staff', models.BooleanField( default=True, help_text= 'Designates whether the user can log into this admin site.', verbose_name='staff status')), ('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={ 'permissions': (('manage_users', 'Manage customers.'), ('manage_staff', 'Manage staff.')), }, managers=[ ('objects', django.contrib.auth.models.UserManager()), ], ), ]
class Migration(migrations.Migration): initial = True dependencies = [ ('auth', '0011_update_proxy_permissions'), ] operations = [ migrations.CreateModel( name='Account', 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')), ('datetime_created', models.DateTimeField( default=thistothat.common.get_utc_datetime_now)), ('datetime_updated', models.DateTimeField(null=True)), ('datetime_deleted', models.DateTimeField(null=True)), ('is_active', models.BooleanField(default=True)), ('uid', models.UUIDField(default=uuid.uuid4, editable=False, unique=True)), ('email', models.EmailField(max_length=254, unique=True)), ('is_superuser', models.BooleanField(default=False)), ('is_staff', 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={ 'ordering': ['email'], }, managers=[ ('objects', account.models.UserManager()), ], ), ]