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')), ('first_name', models.CharField(blank=True, max_length=30, verbose_name='first 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', base.models.UserManager()), ], ), ]
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')), ('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', base.models.CustomUserManager()), ], ), ]
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')), ('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')), ('username_user', models.CharField(max_length=90)), ('image_profile', models.ImageField(blank=True, null=True, upload_to='profile/')), ('image_sampul', models.ImageField(blank=True, null=True, upload_to='sampul/')), ('email', models.EmailField(blank=True, max_length=254, unique=True, verbose_name='email address')), ('slug', models.SlugField(blank=True, null=True)), ('no_tlp', models.IntegerField( blank=True, null=True, validators=[ django.core.validators.MaxValueValidator(3012) ])), ('bio', models.TextField(blank=True, 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', base.models.UserManager()), ], ), migrations.CreateModel( name='Artikel', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('judul', models.CharField(max_length=300)), ('slug', models.SlugField()), ('date_created', models.DateTimeField(auto_now_add=True)), ('date_updated', models.DateTimeField(auto_now=True)), ('isi', models.TextField()), ('media', models.FileField(upload_to='File/')), ('likes', models.ManyToManyField(related_name='likes', to=settings.AUTH_USER_MODEL)), ], ), migrations.CreateModel( name='AuditEntry', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('action', models.CharField(max_length=64)), ('ip', models.GenericIPAddressField(null=True)), ('username', models.CharField(max_length=256, null=True)), ], ), migrations.CreateModel( name='Tags', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('title', models.CharField(max_length=100)), ('slug', models.SlugField()), ('bio', models.CharField(blank=True, max_length=300, null=True)), ('date_created', models.DateTimeField(auto_now_add=True)), ], ), migrations.CreateModel( name='MessageModel', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('timestamp', models.DateTimeField(auto_now_add=True, db_index=True, verbose_name='timestamp')), ('body', mirage.fields.EncryptedTextField()), ('recipient', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='to_user', to=settings.AUTH_USER_MODEL, verbose_name='recipient')), ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='from_user', to=settings.AUTH_USER_MODEL, verbose_name='user')), ], options={ 'verbose_name': 'message', 'verbose_name_plural': 'messages', 'ordering': ('-timestamp', ), }, ), migrations.CreateModel( name='Comment', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('date_created', models.DateTimeField(auto_now_add=True)), ('content', models.TextField()), ('artikel', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='comments', to='base.Artikel')), ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], ), migrations.AddField( model_name='artikel', name='tags', field=models.ManyToManyField(to='base.Tags'), ), migrations.AddField( model_name='artikel', name='user', field=models.ForeignKey( 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='Image', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('image', models.ImageField(null=True, upload_to=base.models.image_file_path)), ], ), migrations.CreateModel( name='Book', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('author', models.CharField(max_length=100)), ('title', models.CharField(max_length=100)), ('description', models.TextField()), ('poster_image', models.ForeignKey( blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to='base.Image')), ], ), 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=255, unique=True)), ('first_name', models.CharField(max_length=255)), ('last_name', models.CharField(max_length=255)), ('is_active', models.BooleanField(default=True)), ('is_staff', models.BooleanField(default=False)), ('books', models.ManyToManyField(to='base.Book')), ('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 = [ ('government_structures', '0001_initial'), ] operations = [ migrations.CreateModel( name='Presidency', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('created_at', models.DateTimeField(auto_now_add=True, help_text='creation date')), ('updated_at', models.DateTimeField(auto_now=True, help_text='edition date', null=True)), ('name', models.CharField(max_length=100, verbose_name='name')), ('title', models.CharField(max_length=50, verbose_name='title')), ('photo', easy_thumbnails.fields.ThumbnailerImageField( null=True, upload_to=base.models.file_path, verbose_name='photo')), ('description', models.TextField(verbose_name='description')), ('twitter', models.CharField(max_length=50)), ('url', models.URLField(verbose_name='url')), ('government_structure', models.OneToOneField( on_delete=django.db.models.deletion.CASCADE, to='government_structures.GovernmentStructure', verbose_name='government structure')), ], options={ 'verbose_name': 'presidency', 'verbose_name_plural': 'presidencies', 'permissions': (('view_presidency', 'Can view presidency'), ), }, ), migrations.CreateModel( name='PresidencyURL', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('created_at', models.DateTimeField(auto_now_add=True, help_text='creation date')), ('updated_at', models.DateTimeField(auto_now=True, help_text='edition date', null=True)), ('url', models.URLField(verbose_name='url')), ('description', models.TextField(verbose_name='description')), ], options={ 'abstract': False, }, ), migrations.AddField( model_name='presidency', name='urls', field=models.ManyToManyField(to='presidencies.PresidencyURL', verbose_name='urls'), ), ]
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')), ('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')), ('password', models.CharField(blank=True, max_length=128, null=True, verbose_name='password')), ('full_name', models.CharField(max_length=30, verbose_name='full name')), ('is_staff', models.BooleanField(default=False, verbose_name='staff status')), ('is_active', models.BooleanField(default=False, verbose_name='active 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', base.models.UserManager()), ], ), ]
class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] operations = [ migrations.CreateModel( name='Club', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(db_index=True, max_length=100, validators=[base.models.club_name_validator ])), ('full_name', models.CharField(max_length=100)), ('date_formed', models.DateField(auto_now_add=True)), ('email', models.EmailField(blank=True, max_length=254, null=True)), ('about', models.TextField(blank=True, help_text='Say a few lines about your club', max_length=500, null=True)), ('is_active', models.BooleanField(default=True)), ('is_supported', models.BooleanField(default=True)), ('back_img', models.ImageField(blank=True, null=True, upload_to=base.models.club_logo_upload)), ], options={ 'ordering': ['name'], }, ), migrations.CreateModel( name='ClubMember', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('is_approved', models.BooleanField(default=False)), ('created_at', models.DateTimeField(auto_now_add=True)), ('updated_at', models.DateTimeField(auto_now=True)), ('club', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='base.Club')), ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], ), migrations.CreateModel( name='ClubMentor', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('created_at', models.DateTimeField(auto_now_add=True)), ('updated_at', models.DateTimeField(auto_now_add=True)), ('club', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='base.Club')), ('user', models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, to=settings.AUTH_USER_MODEL)), ], ), migrations.CreateModel( name='ClubModerator', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('created_at', models.DateTimeField(auto_now_add=True)), ('updated_at', models.DateTimeField(auto_now=True)), ('club', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='base.Club')), ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], ), migrations.CreateModel( name='ClubPresident', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('created_at', models.DateTimeField(auto_now_add=True)), ('updated_at', models.DateTimeField(auto_now=True)), ('club', models.OneToOneField( on_delete=django.db.models.deletion.CASCADE, to='base.Club')), ('user', models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, to=settings.AUTH_USER_MODEL)), ], ), migrations.CreateModel( name='ClubSettings', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('club', models.OneToOneField( on_delete=django.db.models.deletion.CASCADE, to='base.Club')), ], ), migrations.CreateModel( name='EmailProvider', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.TextField()), ('current', models.IntegerField(default=0)), ('limit', models.IntegerField()), ('reset', models.IntegerField()), ('last_reset', models.DateTimeField(auto_now_add=True)), ], ), migrations.CreateModel( name='Notification', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('title', models.TextField()), ('message', models.TextField()), ('sent_at', models.DateTimeField(auto_now_add=True)), ('club', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='base.Club')), ('receivers', models.ManyToManyField(blank=True, related_name='receivedNotifications', to=settings.AUTH_USER_MODEL)), ('sender', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='sentNotifications', to=settings.AUTH_USER_MODEL)), ], ), migrations.AlterUniqueTogether( name='clubpresident', unique_together={('user', 'club')}, ), migrations.AlterUniqueTogether( name='clubmoderator', unique_together={('user', 'club')}, ), migrations.AlterUniqueTogether( name='clubmentor', unique_together={('user', 'club')}, ), migrations.AlterUniqueTogether( name='clubmember', unique_together={('user', 'club')}, ), ]
class Migration(migrations.Migration): initial = True dependencies = [ ('auth', '0007_alter_validators_add_error_messages'), ] 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, max_length=30, verbose_name='first name')), ('last_name', models.CharField(blank=True, max_length=30, 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')), ('avatar', image_cropping.fields.ImageCropField( blank=True, null=True, upload_to='avatars/', validators=[base.models.avatar_validation], verbose_name='profile picture')), ('cropping', image_cropping.fields.ImageRatioField( 'avatar', '70x70', adapt_rotation=False, allow_fullsize=False, free_crop=False, help_text= 'Note that the preview above will only be updated after you submit the form.', hide_image_field=False, size_warning=False, verbose_name='cropping')), ('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', base.models.UserManager()), ], ), ]
class Migration(migrations.Migration): initial = True dependencies = [ ('government_structures', '0003_auto_20180312_1009'), ] operations = [ migrations.CreateModel( name='SocioculturalDepartment', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('created_at', models.DateTimeField(auto_now_add=True, help_text='creation date')), ('updated_at', models.DateTimeField(auto_now=True, help_text='edition date', null=True)), ('name', models.CharField(max_length=100, verbose_name='name')), ('photo', easy_thumbnails.fields.ThumbnailerImageField( null=True, upload_to=base.models.file_path, verbose_name='photo')), ('twitter', models.CharField(max_length=50)), ('url', models.URLField(verbose_name='url')), ('government_structure', models.OneToOneField( default=base.models.lastest_government_structure, on_delete=django.db.models.deletion.CASCADE, to='government_structures.GovernmentStructure', verbose_name='government structure')), ], options={ 'verbose_name': 'sociocultural department', 'verbose_name_plural': 'sociocultural departments', 'permissions': (('view_socioculturaldepartment', 'Can view sociocultural department'), ), }, bases=(parler.models.TranslatableModelMixin, models.Model), ), migrations.CreateModel( name='SocioculturalDepartmentTranslation', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('language_code', models.CharField(db_index=True, max_length=15, verbose_name='Language')), ('title', models.CharField(max_length=50, verbose_name='title')), ('description', djangocms_text_ckeditor.fields.HTMLField( verbose_name='description')), ('master', models.ForeignKey( editable=False, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='translations', to='sociocultural_departments.SocioculturalDepartment')), ], options={ 'verbose_name': 'sociocultural department Translation', 'db_table': 'sociocultural_departments_socioculturaldepartment_translation', 'db_tablespace': '', 'managed': True, 'default_permissions': (), }, ), migrations.CreateModel( name='SocioculturalDepartmentURL', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('created_at', models.DateTimeField(auto_now_add=True, help_text='creation date')), ('updated_at', models.DateTimeField(auto_now=True, help_text='edition date', null=True)), ('url', models.URLField(verbose_name='url')), ('order', models.PositiveIntegerField(default=0, verbose_name='order')), ], options={ 'verbose_name': 'sociocultural department url', 'verbose_name_plural': 'sociocultural department urls', 'ordering': ('order', ), 'permissions': (('view_socioculturaldepartment_url', 'Can view sociocultural department url'), ), }, bases=(parler.models.TranslatableModelMixin, models.Model), ), migrations.CreateModel( name='SocioculturalDepartmentURLTranslation', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('language_code', models.CharField(db_index=True, max_length=15, verbose_name='Language')), ('name', models.CharField(max_length=100, null=True, verbose_name='name')), ('description', djangocms_text_ckeditor.fields.HTMLField( verbose_name='description')), ('master', models.ForeignKey( editable=False, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='translations', to='sociocultural_departments.SocioculturalDepartmentURL') ), ], options={ 'verbose_name': 'sociocultural department url Translation', 'db_table': 'sociocultural_departments_socioculturaldepartmenturl_translation', 'db_tablespace': '', 'managed': True, 'default_permissions': (), }, ), migrations.AddField( model_name='socioculturaldepartment', name='urls', field=models.ManyToManyField( to='sociocultural_departments.SocioculturalDepartmentURL', verbose_name='urls'), ), migrations.AlterUniqueTogether( name='socioculturaldepartmenturltranslation', unique_together=set([('language_code', 'master')]), ), migrations.AlterUniqueTogether( name='socioculturaldepartmenttranslation', unique_together=set([('language_code', 'master')]), ), ]
class Migration(migrations.Migration): initial = True dependencies = [ ('auth', '0008_alter_user_username_max_length'), ] operations = [ migrations.CreateModel( name='ApplicationUser', 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.ASCIIUsernameValidator( ) ], verbose_name='username')), ('first_name', models.CharField(blank=True, max_length=30, verbose_name='first name')), ('last_name', models.CharField(blank=True, max_length=30, 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')), ('email', models.EmailField(max_length=254, verbose_name='Email address')), ('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, 'verbose_name': 'user', 'verbose_name_plural': 'users', }, managers=[ ('objects', django.contrib.auth.models.UserManager()), ], ), migrations.CreateModel( name='Invite', fields=[ ('uuid', models.UUIDField(default=base.models.get_uuid, primary_key=True, serialize=False)), ('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=256, verbose_name='Title')), ('description', models.TextField(blank=True, verbose_name='Description')), ('developers', models.ManyToManyField(blank=True, related_name='developer_projects', to=settings.AUTH_USER_MODEL, verbose_name='Developers')), ('managers', models.ManyToManyField(blank=True, related_name='managers_projects', to=settings.AUTH_USER_MODEL, verbose_name='Managers')), ('owner', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='owner_projects', to=settings.AUTH_USER_MODEL, verbose_name='Owner')), ], options={ 'verbose_name': 'Project', 'verbose_name_plural': 'Projects', }, ), migrations.CreateModel( name='Task', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('title', models.CharField(max_length=256, verbose_name='Title')), ('description', models.TextField(blank=True, verbose_name='Description')), ('due_date', models.DateTimeField(verbose_name='Due date')), ('created_at', models.DateTimeField(auto_now_add=True, verbose_name='Created at')), ('assigned_to', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='tasks', to=settings.AUTH_USER_MODEL, verbose_name='Assigned to')), ('project', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='tasks', to='base.Project', verbose_name='Project')), ], options={ 'verbose_name': 'Task', 'verbose_name_plural': 'Tasks', }, ), migrations.AddField( model_name='invite', name='project', field=models.ForeignKey( null=True, on_delete=django.db.models.deletion.CASCADE, to='base.Project'), ), ]
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')), ('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(blank=True, max_length=20, null=True)), ('last_name', models.CharField(blank=True, max_length=20, null=True)), ('phone_no', models.CharField(max_length=10, unique=True)), ('created_at', models.DateTimeField(auto_now_add=True)), ('modified_at', models.DateTimeField(auto_now=True)), ], options={ 'abstract': False, 'verbose_name_plural': 'users', 'verbose_name': 'user', }, managers=[ ('objects', base.models.UserManager()), ], ), migrations.CreateModel( name='City', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=50)), ], ), migrations.AddField( model_name='user', name='city', field=models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, to='base.City'), ), migrations.AddField( model_name='user', name='groups', field=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'), ), migrations.AddField( model_name='user', 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'), ), ]
class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] operations = [ migrations.CreateModel( name='Category', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('title', models.CharField(max_length=100)), ('slug', models.SlugField(max_length=100, unique=True)), ('created_at', models.DateTimeField(auto_now_add=True)), ('description', models.TextField(blank=True, max_length=10000, null=True)), ('updated_at', models.DateTimeField(auto_now=True)), ('lft', models.PositiveIntegerField(editable=False)), ('rght', models.PositiveIntegerField(editable=False)), ('tree_id', models.PositiveIntegerField(db_index=True, editable=False)), ('level', models.PositiveIntegerField(editable=False)), ], options={ 'abstract': False, }, ), migrations.CreateModel( name='File', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('title', models.CharField(max_length=100)), ('slug', models.SlugField(max_length=100, unique=True)), ('created_at', models.DateTimeField(auto_now_add=True)), ('description', models.TextField(blank=True, max_length=10000, null=True)), ('updated_at', models.DateTimeField(auto_now=True)), ('file', models.FileField(upload_to='')), ], options={ 'abstract': False, }, ), migrations.CreateModel( name='Image', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('title', models.CharField(max_length=100)), ('slug', models.SlugField(max_length=100, unique=True)), ('created_at', models.DateTimeField(auto_now_add=True)), ('description', models.TextField(blank=True, max_length=10000, null=True)), ('updated_at', models.DateTimeField(auto_now=True)), ('image', models.ImageField(upload_to='')), ('alt_text', models.TextField(blank=True, max_length=1000, null=True)), ], options={ 'abstract': False, }, ), migrations.CreateModel( name='Profile', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('role', models.CharField(choices=[('customer', 'Customer'), ('manager', 'Manager')], default=('customer', 'Customer'), max_length=20)), ('status', models.BooleanField(default=False)), ('phone_number', models.CharField(blank=True, max_length=20, null=True)), ('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')), ('title', models.CharField(max_length=100)), ('slug', models.SlugField(max_length=100, unique=True)), ('created_at', models.DateTimeField(auto_now_add=True)), ('description', models.TextField(blank=True, max_length=10000, null=True)), ('updated_at', models.DateTimeField(auto_now=True)), ('content', djrichtextfield.models.RichTextField()), ('Files', models.ManyToManyField(to='base.File')), ('categories', models.ManyToManyField(to='base.Category')), ('created_by', models.ForeignKey( blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to='base.Profile')), ('images', models.ManyToManyField(to='base.Image')), ], options={ 'abstract': False, }, ), migrations.CreateModel( name='OTP', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('message', models.CharField(blank=True, default=base.models.random_with_N_digits, max_length=7, null=True)), ('is_valid', models.BooleanField(default=True)), ('profile', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='base.Profile')), ], ), migrations.AddField( model_name='image', name='created_by', field=models.ForeignKey( blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to='base.Profile'), ), migrations.AddField( model_name='file', name='created_by', field=models.ForeignKey( blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to='base.Profile'), ), migrations.AddField( model_name='category', name='created_by', field=models.ForeignKey( blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to='base.Profile'), ), migrations.AddField( model_name='category', name='parent', field=mptt.fields.TreeForeignKey( blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='children', to='base.Category'), ), ]