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')), ('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)), ('is_client', models.BooleanField(default=False)), ('username', models.CharField(blank=True, max_length=150)), ('email', models.EmailField(blank=True, max_length=254, unique=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': 'account', 'verbose_name_plural': 'accounts', }, managers=[ ('objects', client.models.AccountManager()), ], ), migrations.CreateModel( name='ClientAccount', fields=[ ('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)), ('inn', models.CharField(blank=True, max_length=30, unique=True)), ('cash', models.FloatField(blank=True)), ('account', models.OneToOneField(null=True, on_delete=django.db.models.deletion.CASCADE, related_name='client_account', to=settings.AUTH_USER_MODEL)), ], ), migrations.CreateModel( name='AdminAccount', fields=[ ('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)), ('first_name', models.CharField(blank=True, max_length=100, null=True)), ('last_name', models.CharField(blank=True, max_length=100, null=True)), ('account', models.OneToOneField(null=True, on_delete=django.db.models.deletion.CASCADE, related_name='admin_account', to=settings.AUTH_USER_MODEL)), ], ), ]
class Migration(migrations.Migration): dependencies = [ ('client', '0002_project'), ] operations = [ migrations.CreateModel( name='Contacts', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(default='', max_length=55, verbose_name='Nombre')), ('position', models.CharField(default='', max_length=55, verbose_name='Puesto')), ('email', models.EmailField(default='', max_length=254, verbose_name='Correo electr\xf3nico')), ('phone_number', models.CharField(default='', max_length=20, verbose_name='Tel\xe9fono')), ], ), migrations.AddField( model_name='client', name='birth_date', field=models.CharField(blank=True, max_length=30, null=True, verbose_name='Fecha de nacimiento'), ), migrations.AddField( model_name='client', name='profile_pic', field=models.FileField(blank=True, null=True, upload_to=client.models.client_files_name, verbose_name='Foto de perfil'), ), migrations.AddField( model_name='enterprise', name='city', field=models.CharField(default='', max_length=55, verbose_name='Ciudad-Estado'), ), migrations.AddField( model_name='enterprise', name='direction', field=models.CharField(default='', max_length=255, verbose_name='Direcci\xf3n'), ), migrations.AddField( model_name='enterprise', name='phone_number_1', field=models.CharField(default='', max_length=20, verbose_name='Tel\xe9fono'), ), migrations.AddField( model_name='enterprise', name='phone_number_2', field=models.CharField(blank=True, max_length=20, null=True, verbose_name='Tel\xe9fono 2'), ), migrations.AddField( model_name='contacts', name='enterprise', field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='contacts', to='client.Enterprise'), ), ]
class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] operations = [ migrations.CreateModel( name='Profile', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('registration_id', models.CharField(blank=True, max_length=20, null=True)), ('name', models.CharField(max_length=100, null=True)), ('organization', models.CharField(max_length=100, null=True)), ('employee_id', models.CharField(max_length=20, null=True)), ('mobile', models.CharField(max_length=20, null=True)), ('email', models.EmailField( max_length=254, null=True, validators=[ django.core.validators.EmailValidator( code=None, message='Enter a valid Email address', whitelist=None) ])), ('image_url', models.URLField(blank=True, null=True)), ('image', models.ImageField(blank=True, null=True, upload_to=client.models.content_file_name)), ('created_at', models.DateTimeField(auto_now_add=True)), ('updated_at', models.DateTimeField(auto_now_add=True)), ('user', models.OneToOneField( on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], options={ 'managed': True, }, ), ]
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_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')), ('hearts', models.IntegerField(default=0)), ('description', models.TextField(blank=True, null=True)), ('links', models.TextField(blank=True, null=True)), ('image', models.ImageField(blank=True, null=True, upload_to=client.models.upload_to)), ('is_moderator', models.BooleanField(default=False)), ('is_mentor', models.BooleanField(default=False)), ], options={ 'verbose_name': 'user', 'verbose_name_plural': 'users', 'abstract': False, }, managers=[ ('objects', django.contrib.auth.models.UserManager()), ], ), migrations.CreateModel( name='Course', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('code', models.TextField()), ('name', models.TextField()), ], ), migrations.CreateModel( name='Project', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('timestamp', models.DateTimeField(auto_now_add=True)), ('name', models.TextField()), ('hearts', models.IntegerField(default=0)), ('description', models.TextField()), ], options={ 'ordering': ['timestamp'], }, ), migrations.CreateModel( name='ProjectCategory', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.TextField()), ], options={ 'verbose_name': 'Project Category', 'verbose_name_plural': 'Project Categories', }, ), migrations.CreateModel( name='ProjectComment', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('comment', models.TextField()), ('anonymous', models.BooleanField(default=False)), ('timestamp', models.DateTimeField(auto_now_add=True, null=True)), ('project', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='comments', to='client.Project')), ('user', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='comments', to=settings.AUTH_USER_MODEL)), ], options={ 'verbose_name': 'Project Comment', 'verbose_name_plural': 'Project Comments', }, ), migrations.CreateModel( name='ProjectJoinRequest', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('request', models.TextField()), ('timestamp', models.DateTimeField(auto_now_add=True, null=True)), ('project', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='join_requests', to='client.Project')), ('user', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='join_requests', to=settings.AUTH_USER_MODEL)), ], options={ 'verbose_name': 'Project Join Request', 'verbose_name_plural': 'Project Join Requests', }, ), migrations.CreateModel( name='ProjectPost', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('post', models.TextField()), ('private', models.BooleanField(default=False)), ('timestamp', models.DateTimeField(auto_now_add=True, null=True)), ('project', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='posts', to='client.Project')), ], options={ 'verbose_name': 'Project Post', 'verbose_name_plural': 'Project Posts', }, ), migrations.CreateModel( name='ProjectTag', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.TextField()), ], options={ 'verbose_name': 'Project Tag', 'verbose_name_plural': 'Project Tags', }, ), migrations.CreateModel( name='UserSiteRole', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.TextField()), ], ), migrations.AddField( model_name='project', name='category', field=models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, related_name='projects', to='client.ProjectCategory'), ), migrations.AddField( model_name='project', name='hearted_by', field=models.ManyToManyField(blank=True, related_name='hearted_projects', to=settings.AUTH_USER_MODEL), ), migrations.AddField( model_name='project', name='leaders', field=models.ManyToManyField(related_name='leader_projects', to=settings.AUTH_USER_MODEL), ), migrations.AddField( model_name='project', name='members', field=models.ManyToManyField(related_name='member_projects', to=settings.AUTH_USER_MODEL), ), migrations.AddField( model_name='project', name='tags', field=models.ManyToManyField(blank=True, related_name='projects', to='client.ProjectTag'), ), migrations.AddField( model_name='user', name='courses', field=models.ManyToManyField(blank=True, related_name='courses', to='client.Course'), ), 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='hearted_users', field=models.ManyToManyField(blank=True, related_name='hearted_by', to=settings.AUTH_USER_MODEL), ), migrations.AddField( model_name='user', name='site_roles', field=models.ManyToManyField(blank=True, related_name='users', to='client.UserSiteRole'), ), 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 = [ ('league', '0001_initial'), ] operations = [ migrations.CreateModel( name='Contact', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=255)), ('email', models.EmailField(max_length=254)), ('subject', models.CharField(max_length=255)), ('body', models.TextField()), ('date_created', models.DateTimeField(auto_now_add=True, db_index=True)), ], ), migrations.CreateModel( name='Director', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=255)), ('title', models.CharField(max_length=255)), ('email_address', models.EmailField(max_length=254)), ('image', models.ImageField( upload_to=client.models.Director.image_path)), ('info', models.TextField()), ], ), migrations.CreateModel( name='Gallery', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('title', models.CharField(db_index=True, max_length=255)), ('image_count', models.PositiveSmallIntegerField(default=0)), ('date_created', models.DateTimeField(auto_now_add=True, db_index=True)), ('date_updated', models.DateTimeField(auto_now=True, db_index=True)), ('event', models.ForeignKey( blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to='league.Event')), ], ), migrations.CreateModel( name='Image', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('path', models.ImageField(height_field='height', upload_to=client.models.Image.image_path, width_field='width')), ('width', models.PositiveSmallIntegerField()), ('height', models.PositiveSmallIntegerField()), ('date_created', models.DateTimeField(auto_now_add=True, db_index=True)), ('gallery', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='client.Gallery')), ], ), migrations.CreateModel( name='ImageTag', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('image', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='client.Image')), ('player', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='league.Player')), ], ), migrations.CreateModel( name='Post', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('title', models.CharField(db_index=True, max_length=255)), ('body', ckeditor.fields.RichTextField()), ('blurb', models.CharField(max_length=255)), ('header', models.ImageField(upload_to=client.models.Post.header_path)), ('featured', models.BooleanField(db_index=True, default=False)), ('date_created', models.DateTimeField(auto_now_add=True, db_index=True)), ('date_updated', models.DateTimeField(auto_now=True)), ], ), migrations.CreateModel( name='Press', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('title', models.CharField(max_length=255)), ('link', models.URLField()), ('screen', models.ImageField(upload_to=client.models.Press.screen_path)), ('date_created', models.DateTimeField(auto_now_add=True, db_index=True)), ], ), migrations.CreateModel( name='Video', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('title', models.CharField(db_index=True, max_length=255)), ('youtube_id', models.CharField(max_length=255, unique=True)), ('description', models.TextField()), ('published_at', models.DateTimeField(db_index=True)), ('thumbnail', models.URLField()), ('duration', models.CharField(max_length=255)), ('event', models.ForeignKey( blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to='league.Event')), ], ), migrations.AddField( model_name='contact', name='director', field=models.ForeignKey( blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to='client.Director'), ), migrations.AlterUniqueTogether( name='imagetag', unique_together={('image', 'player')}, ), migrations.AlterUniqueTogether( name='image', unique_together={('path', 'gallery')}, ), ]