class Migration(migrations.Migration): initial = True dependencies = [ ('auth', '0012_alter_user_first_name_max_length'), ] 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, editable=False, primary_key=True, serialize=False)), ('email', models.EmailField(max_length=254, unique=True)), ('first_name', models.CharField(blank=True, max_length=64, null=True)), ('last_name', models.CharField(blank=True, max_length=64, null=True)), ('is_superuser', models.BooleanField(default=False, help_text='Designates whether the user is actually superuser.', verbose_name='Super Admin')), ('is_staff', models.BooleanField(default=False, help_text='Designates whether the user can log into this admin site.', verbose_name='Baker Consultant')), ('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 User')), ('date_joined', models.DateField(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={ 'ordering': ['-date_joined'], }, managers=[ ('objects', apps.users.models.UserManager()), ], ), ]
class Migration(migrations.Migration): initial = True dependencies = [ ('auth', '0011_update_proxy_permissions'), ] 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')), ('is_superuser', models.BooleanField(default=False, help_text='Designates that this user has all permissions without explicitly assigning them.', verbose_name='superuser status')), ('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)), ('email', models.EmailField(max_length=254, unique=True, verbose_name='email address')), ('full_name', models.CharField(blank=True, max_length=100, verbose_name='名前')), ('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')), ('tenant_id', models.IntegerField()), ('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', apps.users.models.UserManager()), ], ), ]
class Migration(migrations.Migration): initial = True dependencies = [ ('auth', '0011_update_proxy_permissions'), ] 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')), ('is_superuser', models.BooleanField(default=False, help_text='Designates that this user has all permissions without explicitly assigning them.', verbose_name='superuser status')), ('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')), ('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')), ('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)), ('created_at', models.DateTimeField(auto_now_add=True)), ('updated_at', models.DateTimeField(auto_now=True)), ('email', models.EmailField(error_messages={'unique': 'Já existe um usuario cadastrado com este email.'}, max_length=256, unique=True, verbose_name='email')), ('user_type', models.CharField(choices=[('work', 'Work'), ('student', 'Student')], max_length=64, verbose_name='Tipo de usuário')), ('avatar', models.ImageField(blank=True, null=True, upload_to=apps.users.models.user_directory_path, verbose_name='Avatar')), ('phone', models.CharField(blank=True, max_length=18, null=True, verbose_name='Telefone')), ('location', models.CharField(blank=True, max_length=256, null=True, verbose_name='Localização')), ('birthday', models.DateField(blank=True, null=True, verbose_name='Data de aniversário')), ('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': 'Usuário', 'verbose_name_plural': 'Usuários', }, managers=[ ('objects', apps.users.models.UserManager()), ], ), ]
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')), ('email', models.EmailField(error_messages={'unique': 'A user with that email already exists.'}, max_length=254, unique=True, verbose_name='email address')), ('uuid', models.UUIDField(default=uuid.uuid4, editable=False, verbose_name='uuid')), ('first_name', models.CharField(max_length=50, verbose_name='first name')), ('middle_name', models.CharField(blank=True, max_length=120, verbose_name='middle name')), ('last_name', models.CharField(max_length=150, verbose_name='last name')), ('date_of_birth', models.DateField(verbose_name='date of birth')), ('is_active', models.BooleanField(default=True, verbose_name='active')), ('is_staff', models.BooleanField(default=False, verbose_name='staff status')), ('date_joined', models.DateTimeField(auto_now_add=True, 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', apps.users.models.UserManager()), ], ), ]
class Migration(migrations.Migration): initial = True dependencies = [ ('auth', '0008_alter_user_username_max_length'), ] 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')), ('is_superuser', models.BooleanField(default=False, help_text='Designates that this user has all permissions without explicitly assigning them.', verbose_name='superuser status')), ('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False, unique=True, verbose_name='ID')), ('email', models.EmailField(help_text='A valid user email', max_length=254, unique=True, verbose_name='email address')), ('username', models.CharField(error_messages={'unique': 'A user with that username already exists.'}, help_text='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, help_text='The first Name of the user', max_length=30, verbose_name='first name')), ('last_name', models.CharField(blank=True, help_text='The last Name of the user', max_length=30, verbose_name='last name')), ('activation_token', models.CharField(blank=True, help_text='The activation token of the user', max_length=100, verbose_name='activation_token')), ('is_active', models.BooleanField(default=False, help_text='Designates whether this user should be treated as active. Unselect this instead of deleting accounts.', 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')), ('date_joined', models.DateTimeField(default=django.utils.timezone.now, help_text='When did the user join?', 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_plural': 'users', 'verbose_name': 'user', }, managers=[ ('objects', apps.users.models.UserManager()), ], ), ]
class Migration(migrations.Migration): initial = True dependencies = [ ('auth', '0009_alter_user_last_name_max_length'), ] 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(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_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')), ('status', models.CharField(choices=[('active', 'active'), ('paused', 'paused')], default='active', max_length=10)), ('default_notify_url', models.CharField(blank=True, max_length=2048, 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', 'abstract': False, }, managers=[ ('objects', django.contrib.auth.models.UserManager()), ], ), migrations.CreateModel( name='APIKey', fields=[ ('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)), ('key', models.CharField(default=apps.users.models.makeKey, max_length=32)), ('archived_at', models.DateTimeField(blank=True, null=True)), ('nickname', models.CharField(max_length=64)), ('created_at', models.DateTimeField(auto_now_add=True)), ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='api_keys', to=settings.AUTH_USER_MODEL)), ], options={ 'ordering': ('-created_at',), }, ), migrations.CreateModel( name='WhitelistAddress', fields=[ ('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)), ('nickname', models.CharField(max_length=64)), ('address', models.CharField(max_length=64)), ('created_at', models.DateTimeField(auto_now_add=True)), ('updated_at', models.DateTimeField(auto_now=True)), ('revoked_at', models.DateTimeField(blank=True, null=True)), ('status', models.CharField(choices=[('pending', 'Pending'), ('waiting', 'Waiting'), ('verified', 'Verified'), ('denied', 'Denied')], default='pending', max_length=32)), ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='addresses', to=settings.AUTH_USER_MODEL)), ], options={ 'abstract': False, }, ), ]
class Migration(migrations.Migration): initial = True dependencies = [ ('auth', '0011_update_proxy_permissions'), ] 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')), ('is_superuser', models.BooleanField( default=False, help_text= 'Designates that this user has all permissions without explicitly assigning them.', verbose_name='superuser status')), ('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)), ('email', models.EmailField(max_length=128, unique=True, verbose_name='e-mail')), ('first_name', models.CharField(blank=True, max_length=128)), ('last_name', models.CharField(blank=True, max_length=128)), ('theme', models.IntegerField(choices=[(0, 'Default'), (1, 'Dark'), (2, 'Warm')], default=0)), ('is_staff', models.BooleanField(default=False)), ('is_active', models.BooleanField(default=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, }, managers=[ ('objects', apps.users.models.UserManager()), ], ), ]
class Migration(migrations.Migration): initial = True dependencies = [ ("storage", "0001_initial"), ("geo", "0001_initial"), ("auth", "0009_alter_user_last_name_max_length"), ] 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(db_column="uuid", default=uuid.uuid4, editable=False, primary_key=True, serialize=False), ), ( "status", models.CharField( choices=[("deleted", "Deleted"), ("created", "Created"), ("approved", "Approved")], default="created", max_length=32, verbose_name="Status", ), ), ("created_date", models.DateTimeField(auto_now_add=True, verbose_name="Created date")), ("updated_date", models.DateTimeField(auto_now=True, verbose_name="Updated date")), ("email", models.EmailField(max_length=254, unique=True, verbose_name="Email")), ("username", models.CharField(max_length=150, verbose_name="Username")), ("age", models.CharField(max_length=64, null=True, verbose_name="Age")), ( "gender", models.CharField( choices=[ ("m", "M"), ("w", "W"), ("family", "Family"), ("mw", "MW"), ("mm", "MM"), ("ww", "WW"), ("trans", "Trans"), ], max_length=16, null=True, verbose_name="Gender", ), ), ( "relationship_status", models.CharField( choices=[("married", "Married"), ("dating", "Dating"), ("single", "Single")], max_length=16, null=True, verbose_name="Relationship status", ), ), ( "relationship_formats", django.contrib.postgres.fields.ArrayField( base_field=models.CharField( choices=[ ("open_swing", "Open Swing"), ("close_swing", "Close Swing"), ("soft_swing", "Soft Swing"), ("wmw", "WMW"), ("mwm", "MWM"), ("sexwife", "Sexwife"), ("cuckold", "Cuckold"), ], max_length=16, ), null=True, size=None, verbose_name="Relationship formats", ), ), ( "relationship_themes", django.contrib.postgres.fields.ArrayField( base_field=models.CharField( choices=[ ("swing", "Swing"), ("swing_history", "Swing History"), ("bdsm", "Bdsm"), ("bdsm_history", "Bdsm History"), ("rule", "Rule"), ("rule_media", "Rule Media"), ("advertisment", "Advertisment"), ], max_length=16, ), null=True, size=None, verbose_name="Relationship themes", ), ), ("vk_link", models.URLField(blank=True, null=True, verbose_name="Vkontakte link")), ("ok_link", models.URLField(blank=True, null=True, verbose_name="Odnoklassniki link")), ("fb_link", models.URLField(blank=True, null=True, verbose_name="Facebook link")), ("about", models.TextField(blank=True, null=True, verbose_name="О себе")), ( "role", models.CharField( choices=[ ("guest", "Guest"), ("member", "Member"), ("organizer", "Organizer"), ("moderator", "Moderator"), ("administrator", "Administrator"), ], default="guest", max_length=16, verbose_name="Role", ), ), ("is_real", models.BooleanField(default=False, verbose_name="Real")), ("is_superuser", models.BooleanField(default=False, verbose_name="System administrator")), ("is_staff", models.BooleanField(default=False, verbose_name="Staff")), ("is_active", models.BooleanField(default=False, verbose_name="Active")), ("signup_key", models.PositiveIntegerField(blank=True, null=True, verbose_name="SignUp Key")), ( "reset_password_key", models.PositiveIntegerField( blank=True, null=True, verbose_name="Reset Password Key"), ), ( "show_age", models.CharField( choices=[ ("no_users", "No users"), ("only_friends", "Only friends"), ("all_users", "All users"), ], default="only_friends", max_length=16, verbose_name="Show age", ), ), ( "show_avatar", models.CharField( choices=[ ("no_users", "No users"), ("only_friends", "Only friends"), ("all_users", "All users"), ], default="all_users", max_length=16, verbose_name="Show avatar", ), ), ( "show_geo", models.CharField( choices=[ ("no_users", "No users"), ("only_friends", "Only friends"), ("all_users", "All users"), ], default="all_users", max_length=16, verbose_name="Show geo", ), ), ( "show_email", models.CharField( choices=[ ("no_users", "No users"), ("only_friends", "Only friends"), ("all_users", "All users"), ], default="no_users", max_length=16, verbose_name="Show email", ), ), ( "show_social", models.CharField( choices=[ ("no_users", "No users"), ("only_friends", "Only friends"), ("all_users", "All users"), ], default="no_users", max_length=16, verbose_name="Show social", ), ), ( "show_media", models.CharField( choices=[ ("no_users", "No users"), ("only_friends", "Only friends"), ("all_users", "All users"), ], default="only_friends", max_length=16, verbose_name="Show media", ), ), ( "show_posts", models.CharField( choices=[ ("no_users", "No users"), ("only_friends", "Only friends"), ("all_users", "All users"), ], default="only_friends", max_length=16, verbose_name="Show posts", ), ), ( "show_friends", models.CharField( choices=[ ("no_users", "No users"), ("only_friends", "Only friends"), ("all_users", "All users"), ], default="only_friends", max_length=16, verbose_name="Show friends", ), ), ( "approver", models.ForeignKey( blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name="approver_real_users", to=settings.AUTH_USER_MODEL, verbose_name="Approver real status", ), ), ( "avatar", models.ForeignKey( blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to="storage.Image", verbose_name="Avatar", ), ), ( "city", models.ForeignKey( null=True, on_delete=django.db.models.deletion.CASCADE, to="geo.City", verbose_name="City"), ), ( "country", models.ForeignKey( null=True, on_delete=django.db.models.deletion.CASCADE, to="geo.Country", verbose_name="Country"), ), ( "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", ), ), ( "region", models.ForeignKey( null=True, on_delete=django.db.models.deletion.CASCADE, to="geo.Region", verbose_name="Region"), ), ( "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", apps.users.models.UserManager())], ), migrations.CreateModel( name="UserFriend", fields=[ ( "id", models.UUIDField(db_column="uuid", default=uuid.uuid4, editable=False, primary_key=True, serialize=False), ), ( "status", models.CharField( choices=[("deleted", "Deleted"), ("created", "Created"), ("approved", "Approved")], default="created", max_length=32, verbose_name="Status", ), ), ("created_date", models.DateTimeField(auto_now_add=True, verbose_name="Created date")), ("updated_date", models.DateTimeField(auto_now=True, verbose_name="Updated date")), ( "friend", models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL, verbose_name="Content type", ), ), ( "user", models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, related_name="user_friends", to=settings.AUTH_USER_MODEL, verbose_name="User", ), ), ], options={ "verbose_name": "user friend", "verbose_name_plural": "user friend" }, ), migrations.AlterUniqueTogether(name="userfriend", unique_together={("user", "friend")}), ]
class Migration(migrations.Migration): initial = True dependencies = [("auth", "0011_update_proxy_permissions")] 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"), ), ( "is_superuser", models.BooleanField( default=False, help_text= "Designates that this user has all permissions without explicitly assigning them.", verbose_name="superuser status", ), ), ( "id", models.UUIDField( default=uuid.uuid4, editable=False, primary_key=True, serialize=False, unique=True, ), ), ( "creation_date", models.DateTimeField(auto_now_add=True, verbose_name="date created"), ), ( "modified_date", models.DateTimeField(auto_now=True, verbose_name="date last modified"), ), ("name", models.CharField(max_length=50, verbose_name="name")), ( "email", models.EmailField(max_length=254, unique=True, 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"), ), ( "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", apps.users.models.UserManager())], ) ]