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', models.CharField(blank=True, max_length=255, null=True)), ('email', models.EmailField(max_length=254, unique=True, 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={ 'verbose_name': 'user', 'verbose_name_plural': 'users', 'abstract': False, }, managers=[ ('objects', django.contrib.auth.models.UserManager()), ], ), migrations.CreateModel( name='FIFA19GameCard', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('team1', models.CharField(max_length=255)), ('team1_score', models.DecimalField(decimal_places=2, max_digits=5, null=True)), ('team1_penaltygoals', models.DecimalField(decimal_places=2, max_digits=5, null=True)), ('team1_shots', models.DecimalField(decimal_places=2, max_digits=5, null=True)), ('team1_possession', models.DecimalField(decimal_places=2, max_digits=5, null=True)), ('team1_tackles', models.DecimalField(decimal_places=2, max_digits=5, null=True)), ('team1_fouls', models.DecimalField(decimal_places=2, max_digits=5, null=True)), ('team1_corners', models.DecimalField(decimal_places=2, max_digits=5, null=True)), ('team1_shotaccuracy', models.DecimalField(decimal_places=2, max_digits=5, null=True)), ('team1_passaccuracy', models.DecimalField(decimal_places=2, max_digits=5, null=True)), ('team2', models.CharField(max_length=255)), ('team2_score', models.DecimalField(decimal_places=2, max_digits=5, null=True)), ('team2_penaltygoals', models.DecimalField(decimal_places=2, max_digits=5, null=True)), ('team2_shots', models.DecimalField(decimal_places=2, max_digits=5, null=True)), ('team2_possession', models.DecimalField(decimal_places=2, max_digits=5, null=True)), ('team2_tackles', models.DecimalField(decimal_places=2, max_digits=5, null=True)), ('team2_fouls', models.DecimalField(decimal_places=2, max_digits=5, null=True)), ('team2_corners', models.DecimalField(decimal_places=2, max_digits=5, null=True)), ('team2_shotaccuracy', models.DecimalField(decimal_places=2, max_digits=5, null=True)), ('team2_passaccuracy', models.DecimalField(decimal_places=2, max_digits=5, null=True)), ('created_at', models.DateTimeField(auto_now_add=True)), ('updated_at', models.DateTimeField(auto_now=True)), ], ), migrations.CreateModel( name='Madden19GameCard', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('team1', models.CharField(max_length=255)), ('team1_score', models.DecimalField(decimal_places=2, max_digits=5, null=True)), ('team1_totaloffense', models.DecimalField(decimal_places=2, max_digits=5, null=True)), ('team1_rushingyards', models.DecimalField(decimal_places=2, max_digits=5, null=True)), ('team1_passingyards', models.DecimalField(decimal_places=2, max_digits=5, null=True)), ('team1_firstdowns', models.DecimalField(decimal_places=2, max_digits=5, null=True)), ('team1_pryards', models.DecimalField(decimal_places=2, max_digits=5, null=True)), ('team1_kryards', models.DecimalField(decimal_places=2, max_digits=5, null=True)), ('team1_totalyards', models.DecimalField(decimal_places=2, max_digits=5, null=True)), ('team1_turnovers', models.DecimalField(decimal_places=2, max_digits=5, null=True)), ('team1_3rdconversions', models.DecimalField(decimal_places=2, max_digits=5, null=True)), ('team1_4thconversions', models.DecimalField(decimal_places=2, max_digits=5, null=True)), ('team2', models.CharField(max_length=255)), ('team2_score', models.DecimalField(decimal_places=2, max_digits=5, null=True)), ('team2_totaloffense', models.DecimalField(decimal_places=2, max_digits=5, null=True)), ('team2_rushingyards', models.DecimalField(decimal_places=2, max_digits=5, null=True)), ('team2_passingyards', models.DecimalField(decimal_places=2, max_digits=5, null=True)), ('team2_firstdowns', models.DecimalField(decimal_places=2, max_digits=5, null=True)), ('team2_pryards', models.DecimalField(decimal_places=2, max_digits=5, null=True)), ('team2_kryards', models.DecimalField(decimal_places=2, max_digits=5, null=True)), ('team2_totalyards', models.DecimalField(decimal_places=2, max_digits=5, null=True)), ('team2_turnovers', models.DecimalField(decimal_places=2, max_digits=5, null=True)), ('team2_3rdconversions', models.DecimalField(decimal_places=2, max_digits=5, null=True)), ('team2_4thconversions', models.DecimalField(decimal_places=2, max_digits=5, null=True)), ('created_at', models.DateTimeField(auto_now_add=True)), ('updated_at', models.DateTimeField(auto_now=True)), ], ), migrations.CreateModel( name='NBA19GameCard', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('team1', models.CharField(max_length=255)), ('team1_score', models.DecimalField(decimal_places=2, max_digits=5, null=True)), ('team1_fieldgoalper', models.DecimalField(decimal_places=2, max_digits=5, null=True)), ('team1_3pointper', models.DecimalField(decimal_places=2, max_digits=5, null=True)), ('team1_fastbreakpoints', models.DecimalField(decimal_places=2, max_digits=5, null=True)), ('team1_pointsinpaint', models.DecimalField(decimal_places=2, max_digits=5, null=True)), ('team1_secondchance', models.DecimalField(decimal_places=2, max_digits=5, null=True)), ('team1_benchpoints', models.DecimalField(decimal_places=2, max_digits=5, null=True)), ('team1_assists', models.DecimalField(decimal_places=2, max_digits=5, null=True)), ('team1_offensiveboards', models.DecimalField(decimal_places=2, max_digits=5, null=True)), ('team1_defensiveboards', models.DecimalField(decimal_places=2, max_digits=5, null=True)), ('team1_steals', models.DecimalField(decimal_places=2, max_digits=5, null=True)), ('team1_blocks', models.DecimalField(decimal_places=2, max_digits=5, null=True)), ('team1_turnovers', models.DecimalField(decimal_places=2, max_digits=5, null=True)), ('team1_fouls', models.DecimalField(decimal_places=2, max_digits=5, null=True)), ('team1_biggestlead', models.DecimalField(decimal_places=2, max_digits=5, null=True)), ('team1_timeoutsremain', models.DecimalField(decimal_places=2, max_digits=5, null=True)), ('team2', models.CharField(max_length=255)), ('team2_score', models.DecimalField(decimal_places=2, max_digits=5, null=True)), ('team2_fieldgoalper', models.DecimalField(decimal_places=2, max_digits=5, null=True)), ('team2_3pointper', models.DecimalField(decimal_places=2, max_digits=5, null=True)), ('team2_fastbreakpoints', models.DecimalField(decimal_places=2, max_digits=5, null=True)), ('team2_pointsinpaint', models.DecimalField(decimal_places=2, max_digits=5, null=True)), ('team2_secondchance', models.DecimalField(decimal_places=2, max_digits=5, null=True)), ('team2_benchpoints', models.DecimalField(decimal_places=2, max_digits=5, null=True)), ('team2_assists', models.DecimalField(decimal_places=2, max_digits=5, null=True)), ('team2_offensiveboards', models.DecimalField(decimal_places=2, max_digits=5, null=True)), ('team2_defensiveboards', models.DecimalField(decimal_places=2, max_digits=5, null=True)), ('team2_steals', models.DecimalField(decimal_places=2, max_digits=5, null=True)), ('team2_blocks', models.DecimalField(decimal_places=2, max_digits=5, null=True)), ('team2_turnovers', models.DecimalField(decimal_places=2, max_digits=5, null=True)), ('team2_fouls', models.DecimalField(decimal_places=2, max_digits=5, null=True)), ('team2_biggestlead', models.DecimalField(decimal_places=2, max_digits=5, null=True)), ('team2_timeoutsremain', models.DecimalField(decimal_places=2, max_digits=5, null=True)), ('created_at', models.DateTimeField(auto_now_add=True)), ('updated_at', models.DateTimeField(auto_now=True)), ], ), migrations.CreateModel( name='NHL19GameCard', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('team1', models.CharField(max_length=255)), ('team1_score', models.DecimalField(decimal_places=2, max_digits=5, null=True)), ('team1_penaltygoals', models.DecimalField(decimal_places=2, max_digits=5, null=True)), ('team1_totalshots', models.DecimalField(decimal_places=2, max_digits=5, null=True)), ('team1_hits', models.DecimalField(decimal_places=2, max_digits=5, null=True)), ('team1_timeonattack', models.DecimalField(decimal_places=2, max_digits=5, null=True)), ('team1_passing', models.DecimalField(decimal_places=2, max_digits=5, null=True)), ('team1_faceoffswon', models.DecimalField(decimal_places=2, max_digits=5, null=True)), ('team1_penaltyminute', models.DecimalField(decimal_places=2, max_digits=5, null=True)), ('team1_powerplays', models.DecimalField(decimal_places=2, max_digits=5, null=True)), ('team1_powerplayminutes', models.DecimalField(decimal_places=2, max_digits=5, null=True)), ('team1_shorthandedgoals', models.DecimalField(decimal_places=2, max_digits=5, null=True)), ('team2', models.CharField(max_length=255)), ('team2_score', models.DecimalField(decimal_places=2, max_digits=5, null=True)), ('team2_penaltygoals', models.DecimalField(decimal_places=2, max_digits=5, null=True)), ('team2_totalshots', models.DecimalField(decimal_places=2, max_digits=5, null=True)), ('team2_hits', models.DecimalField(decimal_places=2, max_digits=5, null=True)), ('team2_timeonattack', models.DecimalField(decimal_places=2, max_digits=5, null=True)), ('team2_passing', models.DecimalField(decimal_places=2, max_digits=5, null=True)), ('team2_faceoffswon', models.DecimalField(decimal_places=2, max_digits=5, null=True)), ('team2_penaltyminute', models.DecimalField(decimal_places=2, max_digits=5, null=True)), ('team2_powerplays', models.DecimalField(decimal_places=2, max_digits=5, null=True)), ('team2_powerplayminutes', models.DecimalField(decimal_places=2, max_digits=5, null=True)), ('team2_shorthandedgoals', models.DecimalField(decimal_places=2, max_digits=5, null=True)), ('created_at', models.DateTimeField(auto_now_add=True)), ('updated_at', models.DateTimeField(auto_now=True)), ], ), migrations.CreateModel( name='UserStatistics', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('net_gain', models.DecimalField(decimal_places=2, default=0, max_digits=20)), ('user', models.OneToOneField( on_delete=django.db.models.deletion.CASCADE, related_name='profile_stats', to=settings.AUTH_USER_MODEL)), ], ), migrations.CreateModel( name='UserProfile', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('slug', models.SlugField(null=True)), ('balance', models.IntegerField(default=0)), ('dob', models.DateField(null=True)), ('address', models.CharField(max_length=255, null=True)), ('country', models.CharField(max_length=50, null=True)), ('city', models.CharField(max_length=50, null=True)), ('zip', models.CharField(max_length=5, null=True)), ('photo', models.ImageField(blank=True, upload_to='uploads')), ('user', models.OneToOneField( on_delete=django.db.models.deletion.CASCADE, related_name='profile', to=settings.AUTH_USER_MODEL)), ], ), migrations.CreateModel( name='NHL19LifetimeCard', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('net_gain', models.IntegerField(default=0)), ('avg_score', models.DecimalField(decimal_places=2, max_digits=5, null=True)), ('avg_totalshots', models.DecimalField(decimal_places=2, max_digits=5, null=True)), ('avg_hits', models.DecimalField(decimal_places=2, max_digits=5, null=True)), ('avg_timeonattack', models.DecimalField(decimal_places=2, max_digits=5, null=True)), ('avg_passing', models.DecimalField(decimal_places=2, max_digits=5, null=True)), ('avg_faceoffswon', models.DecimalField(decimal_places=2, max_digits=5, null=True)), ('avg_penaltyminute', models.DecimalField(decimal_places=2, max_digits=5, null=True)), ('avg_powerplays', models.DecimalField(decimal_places=2, max_digits=5, null=True)), ('avg_powerplayminutes', models.DecimalField(decimal_places=2, max_digits=5, null=True)), ('avg_shorthandedgoals', models.DecimalField(decimal_places=2, max_digits=5, null=True)), ('user_stats', models.OneToOneField( on_delete=django.db.models.deletion.CASCADE, related_name='NHL_profile', to='api.UserStatistics')), ], ), migrations.CreateModel( name='NBA19LifetimeCard', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('net_gain', models.IntegerField(default=0)), ('avg_score', models.DecimalField(decimal_places=2, max_digits=5, null=True)), ('avg_fieldgoalper', models.DecimalField(decimal_places=2, max_digits=5, null=True)), ('avg_3pointper', models.DecimalField(decimal_places=2, max_digits=5, null=True)), ('avg_fastbreakpoints', models.DecimalField(decimal_places=2, max_digits=5, null=True)), ('avg_pointsinpaint', models.DecimalField(decimal_places=2, max_digits=5, null=True)), ('avg_secondchance', models.DecimalField(decimal_places=2, max_digits=5, null=True)), ('avg_benchpoints', models.DecimalField(decimal_places=2, max_digits=5, null=True)), ('avg_assists', models.DecimalField(decimal_places=2, max_digits=5, null=True)), ('avg_offensiveboards', models.DecimalField(decimal_places=2, max_digits=5, null=True)), ('avg_defensiveboards', models.DecimalField(decimal_places=2, max_digits=5, null=True)), ('avg_steals', models.DecimalField(decimal_places=2, max_digits=5, null=True)), ('avg_blocks', models.DecimalField(decimal_places=2, max_digits=5, null=True)), ('avg_turnovers', models.DecimalField(decimal_places=2, max_digits=5, null=True)), ('avg_fouls', models.DecimalField(decimal_places=2, max_digits=5, null=True)), ('avg_biggestlead', models.DecimalField(decimal_places=2, max_digits=5, null=True)), ('avg_posession', models.DecimalField(decimal_places=2, max_digits=5, null=True)), ('avg_timeoutsremain', models.DecimalField(decimal_places=2, max_digits=5, null=True)), ('user_stats', models.OneToOneField( on_delete=django.db.models.deletion.CASCADE, related_name='NBA_profile', to='api.UserStatistics')), ], ), migrations.CreateModel( name='Madden19LifetimeCard', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('net_gain', models.IntegerField(default=0)), ('avg_score', models.DecimalField(decimal_places=2, max_digits=5, null=True)), ('avg_totaloffense', models.DecimalField(decimal_places=2, max_digits=5, null=True)), ('avg_rushingyards', models.DecimalField(decimal_places=2, max_digits=5, null=True)), ('avg_passingyards', models.DecimalField(decimal_places=2, max_digits=5, null=True)), ('avg_firstdowns', models.DecimalField(decimal_places=2, max_digits=5, null=True)), ('avg_pryards', models.DecimalField(decimal_places=2, max_digits=5, null=True)), ('avg_kryards', models.DecimalField(decimal_places=2, max_digits=5, null=True)), ('avg_totalyards', models.DecimalField(decimal_places=2, max_digits=5, null=True)), ('avg_turnovers', models.DecimalField(decimal_places=2, max_digits=5, null=True)), ('avg_3rdconversions', models.DecimalField(decimal_places=2, max_digits=5, null=True)), ('avg_4thconversions', models.DecimalField(decimal_places=2, max_digits=5, null=True)), ('user_stats', models.OneToOneField( on_delete=django.db.models.deletion.CASCADE, related_name='Madden_profile', to='api.UserStatistics')), ], ), migrations.CreateModel( name='GameRequest', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('game', models.CharField(max_length=250)), ('wager', models.IntegerField()), ('timestamp', models.DateTimeField(auto_now_add=True)), ('from_user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='from_user_challenge', to=settings.AUTH_USER_MODEL)), ('to_user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='to_user_challenge', to=settings.AUTH_USER_MODEL)), ], ), migrations.CreateModel( name='Friends', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('friends', models.ManyToManyField(related_name='Official_Friends', to=settings.AUTH_USER_MODEL)), ('requests', models.ManyToManyField(related_name='Friend_Requests', to=settings.AUTH_USER_MODEL)), ('user', models.OneToOneField( on_delete=django.db.models.deletion.CASCADE, related_name='user_friends', to=settings.AUTH_USER_MODEL)), ], ), migrations.CreateModel( name='FinishedGame', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('winning_team', models.CharField(max_length=255)), ('winning_score', models.IntegerField(default=0)), ('losing_team', models.CharField(max_length=255)), ('losing_score', models.IntegerField(default=0)), ('game_played', models.CharField(default='EMPTY', max_length=255)), ('wager_amount', models.IntegerField(default=0)), ('created_at', models.DateTimeField(auto_now_add=True)), ('updated_at', models.DateTimeField(auto_now=True)), ('FIFA19MatchData', models.ForeignKey(null=True, on_delete=django.db.models.deletion.PROTECT, related_name='fifa_match_data', to='api.FIFA19GameCard')), ('Madden19MatchData', models.ForeignKey(null=True, on_delete=django.db.models.deletion.PROTECT, related_name='madden_match_data', to='api.Madden19GameCard')), ('NBA19MatchData', models.ForeignKey(null=True, on_delete=django.db.models.deletion.PROTECT, related_name='nba_match_data', to='api.NBA19GameCard')), ('NHL19MatchData', models.ForeignKey(null=True, on_delete=django.db.models.deletion.PROTECT, related_name='nhl_match_data', to='api.NHL19GameCard')), ('loser', models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, related_name='loser', to=settings.AUTH_USER_MODEL)), ('winner', models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, related_name='winner', to=settings.AUTH_USER_MODEL)), ], ), migrations.CreateModel( name='FIFA19LifetimeCard', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('net_gain', models.IntegerField(default=0)), ('avg_score', models.DecimalField(decimal_places=2, max_digits=5, null=True)), ('avg_shots', models.DecimalField(decimal_places=2, max_digits=5, null=True)), ('avg_possession', models.DecimalField(decimal_places=2, max_digits=5, null=True)), ('avg_tackles', models.DecimalField(decimal_places=2, max_digits=5, null=True)), ('avg_fouls', models.DecimalField(decimal_places=2, max_digits=5, null=True)), ('avg_corners', models.DecimalField(decimal_places=2, max_digits=5, null=True)), ('avg_shotaccuracy', models.DecimalField(decimal_places=2, max_digits=5, null=True)), ('avg_passaccuracy', models.DecimalField(decimal_places=2, max_digits=5, null=True)), ('user_stats', models.OneToOneField( on_delete=django.db.models.deletion.CASCADE, related_name='FIFA_profile', to='api.UserStatistics')), ], ), ]
class Migration(migrations.Migration): initial = True dependencies = [ ('auth', '0011_update_proxy_permissions'), ] 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')), ('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, 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': 'user', 'verbose_name_plural': 'users', 'abstract': False, }, managers=[ ('objects', django.contrib.auth.models.UserManager()), ], ), migrations.CreateModel( name='Category', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=128)), ], options={ 'verbose_name_plural': 'Categories', }, ), migrations.CreateModel( name='Institution', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=128)), ('description', models.TextField()), ('type', models.IntegerField(choices=[(1, 'fundacja'), (2, 'organizacja pozarządowa'), (3, 'zbiórka lokalna')], default=1)), ('categories', models.ManyToManyField(to='charity_donation.Category')), ], ), migrations.CreateModel( name='Donation', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('quantity', models.IntegerField()), ('address', models.CharField(max_length=128)), ('phone_number', models.CharField(max_length=64)), ('city', models.CharField(max_length=64)), ('zip_code', models.CharField(max_length=64)), ('pick_up_date', models.DateField()), ('pick_up_time', models.TimeField()), ('pick_up_comment', models.TextField(blank=True, null=True)), ('categories', models.ManyToManyField(to='charity_donation.Category')), ('institution', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='charity_donation.Institution')), ('user', models.ForeignKey(default=None, null=True, on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], ), ]
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')), ('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')), ('first_name', models.CharField(max_length=30)), ('last_name', models.CharField(max_length=150)), ('street_address', models.CharField(max_length=100)), ('city', models.CharField(max_length=70)), ('state', models.CharField(choices=[ ('AL', 'Alabama'), ('AK', 'Alaska'), ('AZ', 'Arizona'), ('AR', 'Arkansas'), ('CA', 'California'), ('CO', 'Colorado'), ('CT', 'Connecticut'), ('DC', 'District of Columbia'), ('DE', 'Delaware'), ('FL', 'Florida'), ('GA', 'Georgia'), ('HI', 'Hawaii'), ('ID', 'Idaho'), ('IL', 'Illinois'), ('IN', 'Indiana'), ('IA', 'Iowa'), ('KS', 'Kansas'), ('KY', 'Kentucky'), ('LA', 'Louisiana'), ('ME', 'Maine'), ('MD', 'Maryland'), ('MA', 'Massachusetts'), ('MI', 'Michigan'), ('MN', 'Minnesota'), ('MS', 'Mississippi'), ('MO', 'Missouri'), ('MT', 'Montana'), ('NE', 'Nebraska'), ('NV', 'Nevada'), ('NH', 'New Hampshire'), ('NJ', 'New Jersey'), ('NM', 'New Mexico'), ('NY', 'New York'), ('NC', 'North Carolina'), ('ND', 'North Dakota'), ('OH', 'Ohio'), ('OK', 'Oklahoma'), ('OR', 'Oregon'), ('PA', 'Pennsylvania'), ('RI', 'Rhode Island'), ('SC', 'South Carolina'), ('SD', 'South Dakota'), ('TN', 'Tennessee'), ('TX', 'Texas'), ('UT', 'Utah'), ('VT', 'Vermont'), ('VA', 'Virginia'), ('WA', 'Washington'), ('WV', 'West Virginia'), ('WI', 'Wisconsin'), ('WY', 'Wyoming'), ('PR', 'Puerto Rico'), ('VI', 'Virgin Islands'), ('GU', 'Guam') ], max_length=2)), ('zipcode', models.CharField(max_length=10)), ('business_name', models.CharField(blank=True, default='', max_length=100, null=True)), ('modified_at', models.DateTimeField(auto_now=True)), ('premium', models.BooleanField(blank=True, default=False, null=True)), ('paid_until', models.DateTimeField(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, 'swappable': 'AUTH_USER_MODEL', }, managers=[ ('objects', django.contrib.auth.models.UserManager()), ], ), migrations.CreateModel( name='Client', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('business_name', models.CharField(blank=True, default='', max_length=100, null=True)), ('first_name', models.CharField(default='', max_length=100)), ('last_name', models.CharField(default='', max_length=100)), ('email', models.EmailField(default='', max_length=70)), ('street_address', models.CharField(default='', max_length=100)), ('city', models.CharField(default='', max_length=70)), ('state', models.CharField(choices=[ ('AL', 'Alabama'), ('AK', 'Alaska'), ('AZ', 'Arizona'), ('AR', 'Arkansas'), ('CA', 'California'), ('CO', 'Colorado'), ('CT', 'Connecticut'), ('DC', 'District of Columbia'), ('DE', 'Delaware'), ('FL', 'Florida'), ('GA', 'Georgia'), ('HI', 'Hawaii'), ('ID', 'Idaho'), ('IL', 'Illinois'), ('IN', 'Indiana'), ('IA', 'Iowa'), ('KS', 'Kansas'), ('KY', 'Kentucky'), ('LA', 'Louisiana'), ('ME', 'Maine'), ('MD', 'Maryland'), ('MA', 'Massachusetts'), ('MI', 'Michigan'), ('MN', 'Minnesota'), ('MS', 'Mississippi'), ('MO', 'Missouri'), ('MT', 'Montana'), ('NE', 'Nebraska'), ('NV', 'Nevada'), ('NH', 'New Hampshire'), ('NJ', 'New Jersey'), ('NM', 'New Mexico'), ('NY', 'New York'), ('NC', 'North Carolina'), ('ND', 'North Dakota'), ('OH', 'Ohio'), ('OK', 'Oklahoma'), ('OR', 'Oregon'), ('PA', 'Pennsylvania'), ('RI', 'Rhode Island'), ('SC', 'South Carolina'), ('SD', 'South Dakota'), ('TN', 'Tennessee'), ('TX', 'Texas'), ('UT', 'Utah'), ('VT', 'Vermont'), ('VA', 'Virginia'), ('WA', 'Washington'), ('WV', 'West Virginia'), ('WI', 'Wisconsin'), ('WY', 'Wyoming'), ('PR', 'Puerto Rico'), ('VI', 'Virgin Islands'), ('GU', 'Guam') ], default='AL', max_length=2)), ('zipcode', models.CharField(max_length=10)), ('created_at', models.DateTimeField(auto_now_add=True)), ('modified_at', models.DateTimeField(auto_now=True)), ('deadline', models.DateField(blank=True, null=True)), ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], ), migrations.CreateModel( name='Job', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=200)), ('complete', models.BooleanField(default=False)), ('labor', models.DecimalField(decimal_places=2, max_digits=5, null=True)), ('description', models.TextField(null=True)), ('created_at', models.DateTimeField(auto_now_add=True)), ('modified_at', models.DateTimeField(auto_now=True)), ('deadline', models.DateField(blank=True, null=True)), ('client', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='server.Client')), ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], ), migrations.CreateModel( name='Note', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('title', models.CharField(max_length=200)), ('content', models.TextField()), ('created_at', models.DateTimeField(auto_now_add=True)), ('modified_at', models.DateTimeField(auto_now=True)), ('client', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='server.Client')), ('job', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='server.Job')), ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], ), migrations.CreateModel( name='Part', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=100)), ('description', models.TextField()), ('cost', models.DecimalField(decimal_places=2, max_digits=5)), ('job', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='server.Job')), ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], ), migrations.CreateModel( name='Tag', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=128)), ('description', models.TextField(blank=True)), ('created_at', models.DateTimeField(auto_now_add=True)), ('modified_at', models.DateTimeField(auto_now=True)), ('job', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='server.Job')), ('note', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='server.Note')), ('part', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='server.Part')), ('user', 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='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')), ('role_profile', models.PositiveSmallIntegerField(blank=True, choices=[(1, 'Business'), (2, 'Customer')], null=True, verbose_name='BC 유형')), ('user_type', models.PositiveSmallIntegerField(blank=True, choices=[(1, 'Nomal'), (2, 'Kakao'), (3, 'Facebook'), (4, 'Naver')], default=1, null=True, verbose_name='사용자 유형')), ('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='Review', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('comment', models.CharField(max_length=100)), ('created_at', models.DateTimeField(auto_now_add=True)), ('star_score', models.IntegerField( default=1, validators=[ django.core.validators.MinValueValidator(1), django.core.validators.MaxValueValidator(5) ], verbose_name='별점')), ], ), migrations.CreateModel( name='Store', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('store_name', models.CharField(max_length=30, verbose_name='가게 이름')), ('business_number', models.IntegerField(verbose_name='사업자 번호')), ('title', models.CharField(max_length=100)), ('content', models.TextField()), ('image', models.ImageField(blank=True, null=True, upload_to='store-image/%Y/%m/%d')), ('u_id', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], ), migrations.CreateModel( name='Store_file', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('image', models.ImageField(blank=True, null=True, upload_to='')), ('s_id', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, to='app.Store')), ], ), migrations.CreateModel( name='Review_file', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('image', models.ImageField(blank=True, null=True, upload_to='')), ('r_id', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, to='app.Review')), ], ), migrations.CreateModel( name='Review_comment', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('comment', models.TextField()), ('created_at', models.DateTimeField(auto_now_add=True)), ('r_id', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, to='app.Review')), ('s_id', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, to='app.Store')), ('u_id', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], ), migrations.AddField( model_name='review', name='s_id', field=models.ForeignKey( null=True, on_delete=django.db.models.deletion.CASCADE, related_name='Store', to='app.Store'), ), migrations.AddField( model_name='review', name='u_id', field=models.ForeignKey( null=True, 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='UserModel', 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')), ('form', models.CharField(max_length=2)), ('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='Post', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('title', models.CharField(max_length=200, verbose_name='Тема консультации')), ('text', models.TextField(verbose_name='Раскрытие темы')), ('published_date', models.DateTimeField(blank=True, null=True)), ('likes', models.IntegerField(default=0)), ], ), migrations.CreateModel( name='Consultation', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('period', models.IntegerField(choices=[(1, 'Лекция'), (2, 'Курс')], default=1, verbose_name='Тип мероприятия')), ('creation', models.DateTimeField(default=django.utils.timezone.now, editable=False)), ('date', models.DateTimeField( default=django.utils.timezone.now, verbose_name='Дата проведения лекции-консультации')), ('email', models.EmailField(max_length=254, verbose_name='Ваша почта')), ('theme', models.TextField( verbose_name='Общая тема лекции-консультации')), ('description', models.TextField(verbose_name='Подробное раскрытие темы')), ('contact', models.IntegerField(choices=[(1, 'Очно'), (2, 'Заочно')], default=1)), ('place', models.CharField(default='Кабинет №', max_length=20, verbose_name='Место проведения')), ('spectators', models.TextField(verbose_name='Целевая аудитория')), ('duration', models.TimeField( default=django.utils.timezone.now, verbose_name='Продолжительность в формате HH:MM:SS')), ('owner', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], ), ]
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')), ('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')), ('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')), ('dob', models.DateField(blank=True, null=True)), ('created', models.DateTimeField(auto_now_add=True)), ('modified', models.DateTimeField(auto_now=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')), ], options={ 'abstract': False, 'verbose_name': 'user', 'verbose_name_plural': 'users', }, managers=[ ('objects', django.contrib.auth.models.UserManager()), ], ), migrations.CreateModel( name='DashboardLink', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('dashboard_url', models.URLField()), ('created', models.DateTimeField(auto_now_add=True)), ('modified', models.DateTimeField(auto_now=True)), ], ), migrations.CreateModel( name='Log', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('type', models.CharField(max_length=200)), ('created', models.DateTimeField(auto_now_add=True)), ('modified', models.DateTimeField(auto_now=True)), ], ), migrations.CreateModel( name='Project', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=200)), ('created', models.DateTimeField(auto_now_add=True)), ('modified', models.DateTimeField(auto_now=True)), ('members', models.ManyToManyField(help_text='Project members', related_name='project_members', to=settings.AUTH_USER_MODEL)), ], ), migrations.CreateModel( name='ProjectLog', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('created', models.DateTimeField(auto_now_add=True)), ('modified', models.DateTimeField(auto_now=True)), ('logs', models.ForeignKey(help_text='Log type', on_delete=django.db.models.deletion.CASCADE, to='elk_app.Log')), ('project', models.ForeignKey(help_text='FA projects', on_delete=django.db.models.deletion.CASCADE, to='elk_app.Project')), ], ), migrations.CreateModel( name='Role', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=20)), ('created', models.DateTimeField(auto_now_add=True)), ('modified', models.DateTimeField(auto_now=True)), ('group', models.ForeignKey(help_text='FA groups', on_delete=django.db.models.deletion.CASCADE, related_name='role_group', to='auth.Group')), ], ), migrations.CreateModel( name='UploadDetail', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('file_name', models.CharField(max_length=50)), ('created', models.DateTimeField(auto_now_add=True)), ('modified', models.DateTimeField(auto_now=True)), ('log_type', models.ForeignKey(help_text='Log type', on_delete=django.db.models.deletion.CASCADE, to='elk_app.Log')), ('project', models.ForeignKey(help_text='FA projects', on_delete=django.db.models.deletion.CASCADE, to='elk_app.Project')), ('user', models.ForeignKey(help_text='FA users', on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], ), migrations.AddField( model_name='dashboardlink', name='project', field=models.ForeignKey( help_text='FA projects', on_delete=django.db.models.deletion.CASCADE, to='elk_app.Project'), ), migrations.AddField( model_name='dashboardlink', name='user', field=models.ForeignKey( help_text='FA users', on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL), ), migrations.AddField( model_name='user', name='role', field=models.ForeignKey( help_text='User Roles', null=True, on_delete=django.db.models.deletion.CASCADE, related_name='user_role', to='elk_app.Role'), ), 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 = [ ('auth', '0009_alter_user_last_name_max_length'), ('contenttypes', '0002_remove_content_type_name'), ] 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')), ('created', django_extensions.db.fields.CreationDateTimeField( auto_now_add=True, verbose_name='created')), ('modified', django_extensions.db.fields.ModificationDateTimeField( auto_now=True, verbose_name='modified')), ('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)), ('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=30, 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')), ], options={ 'verbose_name': 'user', 'verbose_name_plural': 'users', }, managers=[ ('objects', django.contrib.auth.models.UserManager()), ], ), migrations.CreateModel( name='Client', fields=[ ('created', django_extensions.db.fields.CreationDateTimeField( auto_now_add=True, verbose_name='created')), ('modified', django_extensions.db.fields.ModificationDateTimeField( auto_now=True, verbose_name='modified')), ('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)), ], options={ 'abstract': False, }, ), migrations.CreateModel( name='ClientPermission', fields=[ ('created', django_extensions.db.fields.CreationDateTimeField( auto_now_add=True, verbose_name='created')), ('modified', django_extensions.db.fields.ModificationDateTimeField( auto_now=True, verbose_name='modified')), ('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)), ('object_pk', models.CharField(max_length=255, verbose_name='object ID')), ('client', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='clientpermission', to='dhh_auth.Client')), ('content_type', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='contenttypes.ContentType')), ('permission', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='auth.Permission')), ('permitted_by', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], ), migrations.AddField( model_name='user', name='client', field=models.OneToOneField( on_delete=django.db.models.deletion.CASCADE, to='dhh_auth.Client'), ), 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'), ), migrations.AlterUniqueTogether( name='clientpermission', unique_together={('client', 'permission', 'content_type', 'object_pk')}, ), ]
class Migration(migrations.Migration): replaces = [ ("common", "0001_initial"), ("common", "0008_squashed_41"), ("common", "0009_jsonb"), ("common", "0010_remove_wizard"), ("common", "0011_username"), ("common", "0012_adminLT_param"), ("common", "0013_currency_param"), ] initial = True dependencies = [ ("auth", "0006_require_contenttypes_0002"), ("contenttypes", "0002_remove_content_type_name"), ] 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=[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=30, 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"), ), ( "language", models.CharField( choices=[ ("auto", "Detect automatically"), ("en", "English"), ("fr", "French"), ("de", "German"), ("he", "Hebrew"), ("it", "Italian"), ("ja", "Japanese"), ("nl", "Dutch"), ("pt", "Portuguese"), ("pt-br", "Brazilian Portuguese"), ("ru", "Russian"), ("es", "Spanish"), ("zh-cn", "Simplified Chinese"), ("zh-tw", "Traditional Chinese"), ], default="auto", max_length=10, verbose_name="language", ), ), ( "theme", models.CharField( choices=[ ("earth", "Earth"), ("grass", "Grass"), ("lemon", "Lemon"), ("odoo", "Odoo"), ("openbravo", "Openbravo"), ("orange", "Orange"), ("snow", "Snow"), ("strawberry", "Strawberry"), ("water", "Water"), ], default="earth", max_length=20, verbose_name="theme", ), ), ( "pagesize", models.PositiveIntegerField(default=100, verbose_name="page size"), ), ( "horizonbuckets", models.CharField(blank=True, max_length=300, null=True), ), ("horizonstart", models.DateTimeField(blank=True, null=True)), ("horizonend", models.DateTimeField(blank=True, null=True)), ("horizontype", models.BooleanField(default=True)), ( "horizonlength", models.IntegerField(blank=True, default=6, null=True), ), ( "horizonunit", models.CharField( blank=True, choices=[("day", "day"), ("week", "week"), ("month", "month")], default="month", max_length=5, null=True, ), ), ( "lastmodified", models.DateTimeField( auto_now=True, db_index=True, null=True, verbose_name="last modified", ), ), ( "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={ "db_table": "common_user", "verbose_name": "user", "verbose_name_plural": "users", }, managers=[("objects", django.contrib.auth.models.UserManager())], ), migrations.CreateModel( name="Bucket", fields=[ ( "source", models.CharField( blank=True, db_index=True, max_length=300, null=True, verbose_name="source", ), ), ( "lastmodified", models.DateTimeField( db_index=True, default=django.utils.timezone.now, editable=False, verbose_name="last modified", ), ), ( "name", models.CharField( max_length=300, primary_key=True, serialize=False, verbose_name="name", ), ), ( "description", models.CharField( blank=True, max_length=500, null=True, verbose_name="description", ), ), ( "level", models.IntegerField( help_text= "Higher values indicate more granular time buckets", verbose_name="level", ), ), ], options={ "db_table": "common_bucket", "verbose_name": "bucket", "verbose_name_plural": "buckets", }, ), migrations.CreateModel( name="Comment", fields=[ ( "id", models.AutoField(primary_key=True, serialize=False, verbose_name="identifier"), ), ("object_pk", models.TextField(verbose_name="object id")), ("comment", models.TextField(max_length=3000, verbose_name="comment")), ( "lastmodified", models.DateTimeField( default=django.utils.timezone.now, editable=False, verbose_name="last modified", ), ), ( "content_type", models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, related_name="content_type_set_for_comment", to="contenttypes.ContentType", verbose_name="content type", ), ), ( "user", models.ForeignKey( blank=True, editable=False, null=True, on_delete=django.db.models.deletion.SET_NULL, to=settings.AUTH_USER_MODEL, verbose_name="user", ), ), ], options={ "db_table": "common_comment", "ordering": ("id", ), "verbose_name_plural": "comments", "verbose_name": "comment", }, ), migrations.CreateModel( name="Parameter", fields=[ ( "source", models.CharField( blank=True, db_index=True, max_length=300, null=True, verbose_name="source", ), ), ( "lastmodified", models.DateTimeField( db_index=True, default=django.utils.timezone.now, editable=False, verbose_name="last modified", ), ), ( "name", models.CharField( max_length=60, primary_key=True, serialize=False, verbose_name="name", ), ), ( "value", models.CharField(blank=True, max_length=1000, null=True, verbose_name="value"), ), ( "description", models.CharField( blank=True, max_length=1000, null=True, verbose_name="description", ), ), ], options={ "db_table": "common_parameter", "verbose_name": "parameter", "verbose_name_plural": "parameters", "abstract": False, }, ), migrations.CreateModel( name="Scenario", fields=[ ( "name", models.CharField( max_length=300, primary_key=True, serialize=False, verbose_name="name", ), ), ( "description", models.CharField( blank=True, max_length=500, null=True, verbose_name="description", ), ), ( "status", models.CharField( choices=[ ("free", "free"), ("in use", "in use"), ("busy", "busy"), ], max_length=10, verbose_name="status", ), ), ( "lastrefresh", models.DateTimeField(editable=False, null=True, verbose_name="last refreshed"), ), ], options={ "db_table": "common_scenario", "ordering": ["name"], "verbose_name_plural": "scenarios", "verbose_name": "scenario", "permissions": ( ("copy_scenario", "Can copy a scenario"), ("release_scenario", "Can release a scenario"), ), }, ), migrations.CreateModel( name="BucketDetail", fields=[ ( "source", models.CharField( blank=True, db_index=True, max_length=300, null=True, verbose_name="source", ), ), ( "lastmodified", models.DateTimeField( db_index=True, default=django.utils.timezone.now, editable=False, verbose_name="last modified", ), ), ( "id", models.AutoField(primary_key=True, serialize=False, verbose_name="identifier"), ), ( "name", models.CharField(db_index=True, max_length=300, verbose_name="name"), ), ("startdate", models.DateTimeField(verbose_name="start date")), ("enddate", models.DateTimeField(verbose_name="end date")), ( "bucket", models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, to="common.Bucket", verbose_name="bucket", ), ), ], options={ "db_table": "common_bucketdetail", "ordering": ["bucket", "startdate"], "verbose_name_plural": "bucket dates", "verbose_name": "bucket date", "unique_together": {("bucket", "startdate")}, }, ), migrations.CreateModel( name="UserPreference", fields=[ ( "id", models.AutoField(primary_key=True, serialize=False, verbose_name="identifier"), ), ("property", models.CharField(max_length=100)), ("value", freppledb.common.fields.JSONBField(max_length=1000)), ( "user", models.ForeignKey( editable=False, null=True, on_delete=django.db.models.deletion.CASCADE, related_name="preferences", to=settings.AUTH_USER_MODEL, verbose_name="user", ), ), ], options={ "verbose_name_plural": "preferences", "verbose_name": "preference", "db_table": "common_preference", "unique_together": {("user", "property")}, }, ), migrations.RunPython(code=createAdminUser), ]
class Migration(migrations.Migration): initial = True dependencies = [ ('auth', '0011_update_proxy_permissions'), ] operations = [ migrations.CreateModel( name='Article', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('title', models.CharField(max_length=20)), ('create_time', models.DateTimeField(auto_now_add=True)), ('update_time', models.DateTimeField(auto_now=True)), ('views', models.IntegerField(default=0)), ('body', models.TextField()), ], ), migrations.CreateModel( name='BlogCategory', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('title', models.CharField(max_length=10)), ], ), migrations.CreateModel( name='BlogTag', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('title', models.CharField(max_length=10)), ], ), migrations.CreateModel( name='Course', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=20)), ('desc', models.CharField(max_length=200)), ('price', models.FloatField(default=0.0)), ('content', models.TextField()), ('type', models.CharField(choices=[('online', '线上'), ('underline', '线下')], default='online', max_length=10)), ], ), migrations.CreateModel( name='CourseCategory', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('title', models.CharField(max_length=10)), ], ), migrations.CreateModel( name='Students', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('username', models.CharField(max_length=10)), ('password', models.CharField(max_length=10)), ('email', models.EmailField(max_length=254)), ], ), migrations.CreateModel( name='Teachers', 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)), ('occupation', models.CharField(max_length=10)), ('student', models.ManyToManyField(to='education.Students')), ], options={ 'verbose_name': 'user', 'verbose_name_plural': 'users', 'abstract': False, }, bases=('auth.user', ), managers=[ ('objects', django.contrib.auth.models.UserManager()), ], ), migrations.CreateModel( name='CourseComment', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('title', models.CharField(max_length=10)), ('content', models.TextField()), ('create_time', models.DateTimeField(auto_now_add=True)), ('score', models.IntegerField(default=5)), ('course', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='education.Course')), ('student', models.ManyToManyField(to='education.Students')), ], ), migrations.AddField( model_name='course', name='category', field=models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, to='education.CourseCategory'), ), migrations.AddField( model_name='course', name='student', field=models.ManyToManyField(to='education.Students'), ), migrations.AddField( model_name='course', name='teacher', field=models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, to='education.Teachers'), ), migrations.CreateModel( name='BlogComment', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=20)), ('email', models.EmailField(max_length=254)), ('url', models.URLField(blank=True, default='http://www.baidu.com', null=True)), ('content', models.TextField()), ('create_time', models.DateTimeField(auto_now_add=True)), ('article', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='education.Article')), ], ), migrations.AddField( model_name='article', name='author', field=models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, to='education.Teachers'), ), migrations.AddField( model_name='article', name='category', field=models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, to='education.BlogCategory'), ), migrations.AddField( model_name='article', name='tags', field=models.ManyToManyField(to='education.BlogTag'), ), ]
class Migration(migrations.Migration): initial = True dependencies = [ ('auth', '0011_update_proxy_permissions'), migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] operations = [ migrations.CreateModel( name='User', 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)), ], options={ 'verbose_name': 'user', 'verbose_name_plural': 'users', 'abstract': False, }, bases=('auth.user', models.Model), managers=[ ('objects', django.contrib.auth.models.UserManager()), ], ), migrations.CreateModel( name='Post', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('title', models.CharField(max_length=128)), ('text', models.TextField()), ('slug', models.SlugField(default='default-title')), ('created_date', models.DateTimeField(default=django.utils.timezone.now)), ('published_date', models.DateTimeField(blank=True, null=True)), ('author', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], ), migrations.CreateModel( name='Comment', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('author', models.CharField(max_length=200)), ('text', models.TextField()), ('slug', models.SlugField(default='default-title')), ('created_date', models.DateTimeField(default=datetime.datetime( 2020, 6, 4, 2, 43, 48, 794882, tzinfo=utc))), ('approved_comment', models.BooleanField(default=False)), ('post', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='comments', to='posts.Post')), ], ), ]
class Migration(migrations.Migration): initial = True dependencies = [ ('auth', '0009_alter_user_last_name_max_length'), ] operations = [ migrations.CreateModel( name='Account', fields=[ ('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')), ('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')), ('account_id', models.AutoField(primary_key=True, serialize=False)), ('username', models.CharField(max_length=64, unique=True)), ('password', models.CharField(max_length=64)), ], options={ 'verbose_name_plural': 'users', 'abstract': False, 'verbose_name': 'user', }, managers=[ ('objects', django.contrib.auth.models.UserManager()), ], ), migrations.CreateModel( name='Competition', fields=[ ('competition_id', models.AutoField(primary_key=True, serialize=False)), ('name', models.CharField(default='', max_length=100)), ('start_date', models.DateField()), ], ), migrations.CreateModel( name='County', fields=[ ('county_id', models.AutoField(primary_key=True, serialize=False)), ('name', models.CharField(default='', max_length=100)), ], ), migrations.CreateModel( name='Event', fields=[ ('event_id', models.AutoField(primary_key=True, serialize=False)), ('name', models.CharField(max_length=100)), ('relay_duration', models.IntegerField(default=0)), ('athletes_per_relay', models.IntegerField(default=0)), ('competition_id', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='events.Competition')), ], ), migrations.CreateModel( name='Heat', fields=[ ('heat_id', models.AutoField(primary_key=True, serialize=False)), ('start_time', models.DateTimeField()), ('event_id', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='events.Event')), ], ), migrations.CreateModel( name='Player', fields=[ ('player_id', models.AutoField(primary_key=True, serialize=False)), ('first_name', models.CharField(max_length=100)), ('last_name', models.CharField(max_length=100)), ('date_of_birth', models.DateField()), ('gender', models.CharField(choices=[('Male', 'Male'), ('Female', 'Female'), ('Other/No Answer', 'Other/No Answer')], default='Other/No Answer', max_length=16)), ('availability', models.CharField(choices=[('Saturday', 'Saturday'), ('Sunday', 'Sunday'), ('Both', 'Both')], default='Saturday', max_length=8)), ('competition_id', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='events.Competition')), ('county_id', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='events.County')), ('events', models.ManyToManyField(to='events.Event')), ], ), migrations.CreateModel( name='Admin', fields=[ ('account', models.OneToOneField( on_delete=django.db.models.deletion.CASCADE, primary_key=True, serialize=False, to=settings.AUTH_USER_MODEL)), ('first_name', models.CharField(default=' ', max_length=100)), ('last_name', models.CharField(default=' ', max_length=100)), ('email', models.CharField(default=' ', max_length=200)), ('phone_number', models.CharField(default=' ', max_length=12)), ('current_competition', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='events.Competition')), ], ), migrations.CreateModel( name='Coach', fields=[ ('account', models.OneToOneField( on_delete=django.db.models.deletion.CASCADE, primary_key=True, serialize=False, to=settings.AUTH_USER_MODEL)), ('first_name', models.CharField(max_length=100)), ('last_name', models.CharField(max_length=100)), ('email', models.CharField(max_length=200)), ('phone_number', models.CharField( max_length=12, validators=[ django.core.validators.RegexValidator( '^(\\d{10})$', code='invalid_phone', message= 'Please enter a phone number of the format XXXXXXXXXX' ) ])), ('county_id', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='events.County')), ('current_competition', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='events.Competition')), ], ), migrations.AddField( model_name='heat', name='players', field=models.ManyToManyField(to='events.Player'), ), migrations.AddField( model_name='account', 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='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'), ), ]
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')), ('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')), ('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='Assign', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ], ), migrations.CreateModel( name='Class', fields=[ ('id', models.CharField(max_length=100, primary_key='True', serialize=False)), ('std', models.CharField(max_length=5)), ], options={ 'verbose_name_plural': 'classes', }, ), migrations.CreateModel( name='Dept', fields=[ ('id', models.CharField(max_length=20, primary_key='True', serialize=False)), ('name', models.CharField(max_length=50)), ], ), migrations.CreateModel( name='Student', fields=[ ('sno', models.CharField(max_length=20, primary_key='True', serialize=False)), ('name', models.CharField(max_length=50)), ('sex', models.CharField(choices=[('Male', 'Male'), ('Female', 'Female')], default='Male', max_length=50)), ('DOB', models.DateField(default='1998-01-01')), ('class_id', models.ForeignKey(default=1, on_delete=django.db.models.deletion.CASCADE, to='base.Class')), ('user', models.OneToOneField( null=True, on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], ), migrations.CreateModel( name='Teacher', fields=[ ('id', models.CharField(max_length=20, primary_key=True, serialize=False)), ('name', models.CharField(max_length=50)), ('sex', models.CharField(choices=[('Male', 'Male'), ('Female', 'Female')], default='Male', max_length=50)), ('DOB', models.DateField(default='1980-01-01')), ('dept', models.ForeignKey(default=1, on_delete=django.db.models.deletion.CASCADE, to='base.Dept')), ('user', models.OneToOneField( null=True, on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], ), migrations.CreateModel( name='StudentClasses', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('class_id', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='base.Class')), ('student', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='base.Student')), ], options={ 'verbose_name_plural': 'Marks', 'unique_together': {('student', 'class_id')}, }, ), migrations.AddField( model_name='class', name='dept', field=models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, to='base.Dept'), ), migrations.CreateModel( name='AttendanceClass', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('date', models.DateField()), ('status', models.IntegerField(default=0)), ('assign', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='base.Assign')), ], ), migrations.CreateModel( name='Attendance', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('period', models.CharField(choices=[('7:30 - 8:30', '7:30 - 8:30'), ('8:30 - 9:30', '8:30 - 9:30'), ('9:30 - 10:30', '9:30 - 10:30'), ('11:00 - 11:50', '11:00 - 11:50'), ('11:50 - 12:40', '11:50 - 12:40'), ('12:40 - 1:30', '12:40 - 1:30'), ('2:30 - 3:30', '2:30 - 3:30'), ('3:30 - 4:30', '3:30 - 4:30'), ('4:30 - 5:30', '4:30 - 5:30')], default='11:00 - 11:50', max_length=50)), ('date', models.DateField(default='2018-10-23')), ('status', models.BooleanField(default='True')), ('class_id', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='base.Class')), ('dept', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='base.Dept')), ('student', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='base.Student')), ('teacher', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='base.Teacher')), ], ), migrations.CreateModel( name='AssignTime', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('period', models.CharField(choices=[('7:30 - 8:30', '7:30 - 8:30'), ('8:30 - 9:30', '8:30 - 9:30'), ('9:30 - 10:30', '9:30 - 10:30'), ('11:00 - 11:50', '11:00 - 11:50'), ('11:50 - 12:40', '11:50 - 12:40'), ('12:40 - 1:30', '12:40 - 1:30'), ('2:30 - 3:30', '2:30 - 3:30'), ('3:30 - 4:30', '3:30 - 4:30'), ('4:30 - 5:30', '4:30 - 5:30')], default='12:00 - 12:50', max_length=50)), ('day', models.CharField(choices=[('Monday', 'Monday'), ('Tuesday', 'Tuesday'), ('Wednesday', 'Wednesday'), ('Thursday', 'Thursday'), ('Friday', 'Friday'), ('Saturday', 'Saturday')], max_length=15)), ('assign', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='base.Assign')), ], ), migrations.AddField( model_name='assign', name='class_id', field=models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, to='base.Class'), ), migrations.AddField( model_name='assign', name='dept', field=models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, to='base.Dept'), ), migrations.AddField( model_name='assign', name='teacher', field=models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, to='base.Teacher'), ), migrations.CreateModel( name='MarksClass', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(choices=[('Prelims exam', 'Prelims exam'), ('Final exam', 'Final exam'), ('Assignment', 'Assignment')], default='Final exam', max_length=50)), ('status', models.BooleanField(default='False')), ('assign', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='base.Assign')), ], options={ 'unique_together': {('name', )}, }, ), migrations.CreateModel( name='Marks', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(choices=[('Prelims exam', 'Prelims exam'), ('Final exam', 'Final exam'), ('Assignment', 'Assignment')], default='Final exam', max_length=50)), ('marks1', models.IntegerField( default=0, validators=[ django.core.validators.MinValueValidator(0), django.core.validators.MaxValueValidator(100) ])), ('studentclass', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='base.StudentClasses')), ], options={ 'unique_together': {('studentclass', 'name')}, }, ), migrations.CreateModel( name='AttendanceTotal', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('class_id', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='base.Class')), ('student', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='base.Student')), ], options={ 'unique_together': {('student', 'class_id')}, }, ), migrations.AlterUniqueTogether( name='assign', unique_together={('dept', 'class_id', 'teacher')}, ), ]
class Migration(migrations.Migration): initial = True dependencies = [ ('auth', '0009_alter_user_last_name_max_length'), ('footprints', '0001_initial'), ] 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')), ('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')), ('uuid', shortuuidfield.fields.ShortUUIDField(blank=True, editable=False, max_length=22, primary_key=True, serialize=False)), ], options={ 'verbose_name': 'user', 'verbose_name_plural': 'users', 'abstract': False, }, managers=[ ('objects', django.contrib.auth.models.UserManager()), ], ), migrations.CreateModel( name='UserFootPrint', fields=[ ('uuid', shortuuidfield.fields.ShortUUIDField(blank=True, editable=False, max_length=22, primary_key=True, serialize=False)), ('value', models.PositiveIntegerField(verbose_name='Generic value')), ('footprint', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='footprints.FootPrint')), ], ), migrations.CreateModel( name='UserCo2', fields=[ ('user', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, primary_key=True, serialize=False, to=settings.AUTH_USER_MODEL)), ('food_quantity', models.FloatField(choices=[(0, 'Never'), (2.88, 'Almost never'), (5.76, 'Frequently'), (11.62, 'Very frequently')], default=0, verbose_name='Food quantity')), ('housing_quantity_dict', models.PositiveIntegerField(choices=[(1, 'Freestanding NRW'), (3, 'Freestanding RW'), (5, 'Multistore aparment'), (7, 'Duplex row house'), (10, 'Luxury condominum')], default=1, verbose_name='Housing quantity option')), ('housing_open', models.PositiveIntegerField(verbose_name='House quantity open')), ('km_travel_quantity', models.FloatField(verbose_name='Km travel')), ('fuel_economy_quantity', models.FloatField(verbose_name='Fuel economy km/lts')), ('food_co2', models.FloatField(blank=True, verbose_name='Food CO2')), ('housing_co2', models.FloatField(blank=True, verbose_name='Housing CO2')), ('transportation_co2', models.FloatField(blank=True, verbose_name='Transportation CO2')), ('co2_owed', models.FloatField(blank=True, verbose_name='Owed CO2')), ('co2_paid', models.FloatField(blank=True, verbose_name='Paid CO2')), ], ), migrations.CreateModel( name='UserToken', fields=[ ('user', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, primary_key=True, serialize=False, to=settings.AUTH_USER_MODEL)), ('tokens', models.DecimalField(decimal_places=10, max_digits=19, verbose_name='Tokens')), ], ), migrations.AddField( model_name='userfootprint', name='user', field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL), ), 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 = [ ('auth', '0008_alter_user_username_max_length'), ('stocks', '0001_initial'), ] operations = [ migrations.CreateModel( name='UserInfo', 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=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')), ('uphone', models.CharField(max_length=11, verbose_name='手机号')), ('email', models.EmailField(max_length=254, verbose_name='邮箱')), ('identity', models.CharField(max_length=18, verbose_name='身份证号')), ('isBan', models.BooleanField(default=False, verbose_name='是否禁用')), ('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_plural': 'users', 'verbose_name': 'user', }, managers=[ ('objects', django.contrib.auth.models.UserManager()), ], ), migrations.CreateModel( name='Bank', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('realname', models.CharField(max_length=50, verbose_name='真实姓名')), ('bank', models.IntegerField(choices=[(3, '中国交通银行'), (2, '中国建设银行'), (1, '招商银行'), (4, '我的银行'), (0, '中国银行')], default=0, verbose_name='开户行')), ('bankNo', models.CharField(max_length=50, verbose_name='银行卡卡号')), ('tradpwd', models.CharField(max_length=50, verbose_name='交易密码')), ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], ), migrations.CreateModel( name='Fund', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('money', models.DecimalField(decimal_places=2, max_digits=8, verbose_name='钱')), ('frozen_money', models.DecimalField(decimal_places=2, max_digits=8, verbose_name='冻结钱')), ('user', models.OneToOneField( on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL, verbose_name='用户')), ], ), migrations.CreateModel( name='Hold', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('amount', models.IntegerField(verbose_name='数量')), ('price', models.DecimalField(decimal_places=2, max_digits=8, verbose_name='买的价格')), ('frozen', models.DecimalField(decimal_places=2, max_digits=8, verbose_name='冻结股票')), ('stock', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='stocks.Stock')), ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], ), ]
class Migration(migrations.Migration): initial = True dependencies = [ ('auth', '0012_alter_user_first_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=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')), ('is_user', models.BooleanField(default=False)), ('is_employer', 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={ 'verbose_name': 'user', 'verbose_name_plural': 'users', 'abstract': False, }, managers=[ ('objects', django.contrib.auth.models.UserManager()), ], ), migrations.CreateModel( name='About', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('image', models.ImageField(blank=True, upload_to='images/')), ('description', ckeditor_uploader.fields.RichTextUploadingField(blank=True)), ('status', models.CharField(choices=[('True', 'Evet'), ('False', 'Hayır')], default='False', max_length=10)), ('created_date', models.DateTimeField(auto_now_add=True)), ('updated_date', models.DateTimeField(auto_now=True)), ], ), migrations.CreateModel( name='Author', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=200, null=True)), ('profile_pic', models.ImageField(default='images/default.png', upload_to='images/')), ('phonenumber', models.CharField(blank=True, max_length=200)), ('profession', models.CharField(blank=True, max_length=200)), ('user', models.OneToOneField( on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], ), migrations.CreateModel( name='Category', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('title', models.CharField(max_length=20)), ], ), migrations.CreateModel( name='City', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('title', models.CharField(max_length=150)), ], ), migrations.CreateModel( name='ContactFormMessage', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(blank=True, max_length=20)), ('email', models.CharField(blank=True, max_length=50)), ('subject', models.CharField(blank=True, max_length=50)), ('message', models.CharField(blank=True, max_length=255)), ('status', models.CharField(choices=[('New', 'New'), ('Read', 'Read')], default='New', max_length=20)), ('ip', models.CharField(blank=True, max_length=20)), ('note', models.CharField(blank=True, max_length=200)), ('create_at', models.DateTimeField(auto_now_add=True)), ('update_at', models.DateTimeField(auto_now=True)), ], ), migrations.CreateModel( name='ContactInfo', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('phonenumber', models.PositiveIntegerField(blank=True)), ('email', models.EmailField(blank=True, max_length=50)), ('address', models.CharField(max_length=350)), ('status', models.CharField(choices=[('True', 'Evet'), ('False', 'Hayır')], max_length=10)), ('addressUrl', models.URLField(blank=True, max_length=1200)), ('create_at', models.DateTimeField(auto_now_add=True)), ('update_at', models.DateTimeField(auto_now=True)), ], ), migrations.CreateModel( name='Employer', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=200, null=True)), ('profile_pic', models.ImageField(default='images/default.png', upload_to='images/')), ('phonenumber', models.CharField(blank=True, max_length=200)), ('mobilenumber', models.CharField(blank=True, max_length=200)), ('companyname', models.CharField(max_length=200)), ('companyinfo', ckeditor_uploader.fields.RichTextUploadingField(blank=True)), ('city', models.CharField(blank=True, max_length=200)), ('website', models.CharField(blank=True, max_length=200)), ('create_at', models.DateTimeField(auto_now_add=True)), ('update_at', models.DateTimeField(auto_now=True)), ('user', models.OneToOneField( on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], ), migrations.CreateModel( name='Footer', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('facebook', models.CharField(blank=True, max_length=200)), ('twitter', models.CharField(blank=True, max_length=200)), ('behance', models.CharField(blank=True, max_length=200)), ('linkedin', models.CharField(blank=True, max_length=200)), ('url', models.URLField(blank=True)), ('created_date', models.DateTimeField(auto_now_add=True)), ('updated_date', models.DateTimeField(auto_now=True)), ], ), migrations.CreateModel( name='JobCategory', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('title', models.CharField(max_length=150)), ], ), migrations.CreateModel( name='Tag', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('title', models.CharField(max_length=20)), ], ), migrations.CreateModel( name='Team', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('fullname', models.CharField(blank=True, max_length=200)), ('image', models.ImageField(blank=True, upload_to='images/')), ('specialty', models.CharField(blank=True, max_length=200)), ('facebook', models.CharField(blank=True, max_length=200)), ('twitter', models.CharField(blank=True, max_length=200)), ('linkedin', models.CharField(blank=True, max_length=200)), ('created_date', models.DateTimeField(auto_now_add=True)), ('updated_date', models.DateTimeField(auto_now=True)), ], ), migrations.CreateModel( name='Term', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('title', models.CharField(max_length=3000)), ('description', ckeditor_uploader.fields.RichTextUploadingField(blank=True)), ('created_date', models.DateTimeField(auto_now_add=True)), ('updated_date', models.DateTimeField(auto_now=True)), ], ), migrations.CreateModel( name='Testimonial', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('fullname', models.CharField(blank=True, max_length=200)), ('image', models.ImageField(blank=True, upload_to='images/')), ('description', ckeditor_uploader.fields.RichTextUploadingField(blank=True)), ('created_date', models.DateTimeField(auto_now_add=True)), ('updated_date', models.DateTimeField(auto_now=True)), ], ), 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)), ('overview', models.TextField()), ('content', ckeditor_uploader.fields.RichTextUploadingField()), ('image', models.ImageField(upload_to='')), ('slug', models.SlugField(unique=True)), ('featured', models.BooleanField()), ('created_date', models.DateTimeField(auto_now_add=True)), ('updated_date', models.DateTimeField(auto_now=True)), ('author', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='jobs.author')), ('categories', models.ManyToManyField(to='jobs.Category')), ('tags', models.ManyToManyField(to='jobs.Tag')), ], ), migrations.CreateModel( name='Job', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('jobtitle', models.CharField(max_length=500)), ('salary', models.PositiveIntegerField()), ('image', models.ImageField(default='images/work2.jpg', upload_to='images/')), ('overview', models.CharField(max_length=2000)), ('description', ckeditor_uploader.fields.RichTextUploadingField(blank=True)), ('type', models.CharField(choices=[('Contract', 'Contract'), ('Full time', 'Full time'), ('Part time', 'Part time')], max_length=200)), ('level', models.CharField(choices=[('Not requested', 'Not requested'), ('Bachelor degre', 'Bachelor degre'), ('Master degree', 'Master degree'), ('PHD degree', 'PHD degree')], max_length=200)), ('experience', models.CharField(choices=[ ('Not requested', 'Not requested'), ('Experience > 1', 'Experience > 1'), ('Experience > 3', 'Experience > 3'), ('Experience > 5', 'Experience > 5') ], max_length=200)), ('slug', models.SlugField(unique=True)), ('create_at', models.DateTimeField(auto_now_add=True)), ('update_at', models.DateTimeField(auto_now=True)), ('city', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='jobs.city')), ('employer', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='jobs.employer')), ('jobcategory', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='jobs.jobcategory')), ], ), migrations.CreateModel( name='Comment', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('timestamp', models.DateTimeField(auto_now_add=True)), ('content', models.TextField()), ('post', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='comments', to='jobs.post')), ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], ), ]
class Migration(migrations.Migration): initial = True dependencies = [ ('auth', '0012_alter_user_first_name_max_length'), ] operations = [ migrations.CreateModel( name='Client', fields=[ ('user_ptr', models.OneToOneField( auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='auth.user')), ('telephone', models.CharField(max_length=50)), ], options={ 'verbose_name': 'user', 'verbose_name_plural': 'users', 'abstract': False, }, bases=('auth.user', ), managers=[ ('objects', django.contrib.auth.models.UserManager()), ], ), migrations.CreateModel( name='Commande', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('date_commande', models.DateTimeField(auto_now_add=True)), ('complet', models.BooleanField(default=False)), ('client', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='monApp.client')), ], ), migrations.CreateModel( name='Produit', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('nom', models.CharField(max_length=200)), ('prix', models.FloatField()), ('image', models.ImageField(blank=True, null=True, upload_to='images/')), ], ), migrations.CreateModel( name='ProduitCommande', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('quantite', models.IntegerField(default=0)), ('date_ajout', models.DateTimeField(auto_now_add=True)), ('client', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='monApp.client')), ('commande', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='monApp.commande')), ('produit', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='monApp.produit')), ], ), ]
class Migration(migrations.Migration): initial = True dependencies = [ ('auth', '0011_update_proxy_permissions'), ('business', '0001_initial'), ] 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')), ('telephone', models.CharField(blank=True, max_length=16, null=True)), ('business', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.PROTECT, to='business.Business')), ('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={ 'ordering': ['first_name'], }, managers=[ ('objects', django.contrib.auth.models.UserManager()), ], ), migrations.CreateModel( name='UserType', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('type', models.CharField(max_length=50)), ('description', models.CharField(max_length=50)), ], ), migrations.CreateModel( name='Token', fields=[ ('key', models.CharField(max_length=40, primary_key=True, serialize=False)), ('created', models.DateTimeField(auto_now_add=True)), ('user', models.OneToOneField( on_delete=django.db.models.deletion.PROTECT, related_name='auth_token', to=settings.AUTH_USER_MODEL)), ], ), migrations.AddField( model_name='user', name='type', field=models.ForeignKey( on_delete=django.db.models.deletion.PROTECT, related_name='users', to='general_admin.UserType'), ), 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 = [ ('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')), ('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='Box', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ], ), migrations.CreateModel( name='Item', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=256, verbose_name='Name')), ('box', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='items', to='storagetree_app.Box')), ], ), migrations.CreateModel( name='Membership', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('role', models.CharField(choices=[('unit_admin', 'Unit Admin'), ('shelf_admin', 'Shelf Admin'), ('basic_user', 'Basic User')], max_length=32, verbose_name='Role')), ], ), migrations.CreateModel( name='Organization', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=256, verbose_name='Name')), ], ), migrations.CreateModel( name='Shelf', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ], ), migrations.CreateModel( name='Unit', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('organization', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='units', to='storagetree_app.Organization')), ], ), migrations.CreateModel( name='Warehouse', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=256, verbose_name='Name')), ], ), migrations.AddField( model_name='unit', name='warehouse', field=models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, related_name='units', to='storagetree_app.Warehouse'), ), migrations.AddField( model_name='shelf', name='unit', field=models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, related_name='shelves', to='storagetree_app.Unit'), ), migrations.AddField( model_name='membership', name='organization', field=models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, related_name='memberships', to='storagetree_app.Organization'), ), migrations.AddField( model_name='membership', name='user', field=models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, related_name='memberships', to=settings.AUTH_USER_MODEL), ), migrations.AddField( model_name='box', name='shelf', field=models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, related_name='boxes', to='storagetree_app.Shelf'), ), ]
class Migration(migrations.Migration): initial = True dependencies = [ ('auth', '0012_alter_user_first_name_max_length'), ] operations = [ migrations.CreateModel( name='userRegister', fields=[ ('user_ptr', models.OneToOneField( auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='auth.user')), ('age', models.IntegerField()), ('contact', models.IntegerField()), ], options={ 'verbose_name': 'user', 'verbose_name_plural': 'users', 'abstract': False, }, bases=('auth.user', ), managers=[ ('objects', django.contrib.auth.models.UserManager()), ], ), migrations.CreateModel( name='Income', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('income', models.IntegerField()), ('income_date', models.DateField(auto_now=True)), ('income_type', models.CharField(max_length=20)), ('description', models.CharField(max_length=50)), ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='moneyManage.userregister')), ], options={ 'db_table': 'income', }, ), migrations.CreateModel( name='Expense', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('expense', models.IntegerField()), ('expense_date', models.DateField(auto_now=True)), ('expense_type', models.CharField(max_length=20)), ('description', models.CharField(max_length=50)), ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='moneyManage.userregister')), ], options={ 'db_table': 'expense', }, ), ]
class Migration(migrations.Migration): initial = True dependencies = [ ('auth', '0011_update_proxy_permissions'), ] operations = [ migrations.CreateModel( name='Contest', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=255)), ('draw_date', models.DateTimeField()), ('prize_pool', models.IntegerField()), ('price_per_ticket', models.IntegerField()), ('regex', models.CharField(max_length=255)), ('example_number', models.CharField(blank=True, max_length=255)), ], ), migrations.CreateModel( name='Ticket', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('number', models.CharField(max_length=255)), ('phone_number', phonenumber_field.modelfields.PhoneNumberField(max_length=128, region=None)), ('purchase_date', models.DateField(auto_now_add=True)), ('contest', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='tickets_sold', to='core.Contest')), ], ), 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')), ('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()), ], ), ]
class Migration(migrations.Migration): initial = True dependencies = [ ('auth', '0011_update_proxy_permissions'), ] operations = [ migrations.CreateModel( name='Class', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('class_id', models.CharField(db_index=True, max_length=4, unique=True)), ('class_name', models.CharField(max_length=100, unique=True)), ], ), migrations.CreateModel( name='Teacher', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('teacher_name', models.CharField(max_length=100)), ('teacher_id', models.CharField(db_index=True, max_length=10, unique=True)), ('teacher_email', models.EmailField(db_index=True, max_length=254, unique=True)), ('teacher_password', models.CharField(max_length=500)), ('teacher_contact', models.CharField(max_length=10)), ], ), migrations.CreateModel( name='UserDetails', 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)), ('user_id', models.CharField(db_index=True, max_length=10, unique=True)), ('contact_number', models.CharField(max_length=10, unique=True)), ('user_type', models.CharField(max_length=7)), ], options={ 'verbose_name': 'user', 'verbose_name_plural': 'users', 'abstract': False, }, bases=('auth.user', ), managers=[ ('objects', django.contrib.auth.models.UserManager()), ], ), migrations.CreateModel( name='Test', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('student_ids', django_mysql.models.ListCharField( models.CharField(max_length=20), max_length=99999, size=None)), ('student_marks', django_mysql.models.ListCharField( models.CharField(max_length=20), max_length=99999, size=None)), ('test_id', models.CharField(db_index=True, max_length=10, unique=True)), ('test_name', models.CharField(max_length=20)), ('passing_marks', models.IntegerField(default=0)), ('max_marks', models.IntegerField(default=0)), ('csv_filename', models.CharField(max_length=50)), ('highest_marks', models.IntegerField(default=0)), ('average_marks', models.IntegerField(default=0)), ('class_assigned', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='MeritAnalyser.Class')), ('teacher_id', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='MeritAnalyser.Teacher')), ], ), migrations.CreateModel( name='Student', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('student_name', models.CharField(max_length=100)), ('student_id', models.CharField(db_index=True, max_length=10, unique=True)), ('student_email', models.EmailField(db_index=True, max_length=254, unique=True)), ('student_password', models.CharField(max_length=500)), ('student_rollno', models.CharField(max_length=6)), ('student_contact', models.CharField(max_length=10)), ('tests_assigned', django_mysql.models.ListCharField( models.CharField(max_length=20), max_length=99999, size=None)), ('student_classid', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='MeritAnalyser.Class')), ], ), ]
class Migration(migrations.Migration): initial = True dependencies = [ ('auth', '0012_alter_user_first_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')), ('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')), ('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=255, unique=True)), ('image', models.ImageField(default='default/user_image.jpg', upload_to='user/customuser/images/')), ('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='Seller', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('business_name', models.CharField(max_length=200)), ('phone', models.CharField(max_length=10)), ('customer_contact_phone', models.CharField(blank=True, max_length=10, null=True)), ('customer_contact_email', models.EmailField(blank=True, max_length=255, null=True)), ('is_verified', models.BooleanField(default=False)), ('user', models.OneToOneField( on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], ), migrations.CreateModel( name='Customer', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('phone', models.CharField(max_length=10)), ('is_phone_verified', models.BooleanField(default=False)), ('user', models.OneToOneField( on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], ), migrations.CreateModel( name='Address', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('line1', models.CharField(max_length=255)), ('line2', models.CharField(max_length=255)), ('city', models.CharField(max_length=100)), ('state', models.CharField(max_length=100)), ('pincode', models.CharField(max_length=6)), ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], ), ]
class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('auth', '0011_update_proxy_permissions'), ('yourexams', '0003_auto_20200319_1918'), ] operations = [ migrations.CreateModel( name='Person', 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)), ('user_id', models.IntegerField()), ('is_accepted', models.BooleanField(default=False)), ], options={ 'verbose_name': 'user', 'verbose_name_plural': 'users', 'abstract': False, }, bases=('auth.user',), managers=[ ('objects', django.contrib.auth.models.UserManager()), ], ), migrations.AlterField( model_name='answer', name='text', field=models.TextField(max_length=128, verbose_name='Ответ'), ), migrations.AlterField( model_name='question', name='text', field=models.TextField(max_length=128, verbose_name='Вопрос'), ), migrations.AlterField( model_name='test', name='date_creating', field=models.DateField(auto_now_add=True, verbose_name='Дата создания'), ), migrations.AlterField( model_name='test', name='ends', field=models.IntegerField(default=0, verbose_name='Количество завершений'), ), migrations.AlterField( model_name='test', name='title', field=models.TextField(max_length=32, verbose_name='Заголовок'), ), migrations.AlterField( model_name='test', name='user', field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL, verbose_name='Пользователь'), ), migrations.CreateModel( name='CompletedTest', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('title', models.TextField(max_length=32, verbose_name='Заголовок')), ('date_creating', models.DateField(auto_now_add=True, verbose_name='Дата создания')), ('ends', models.IntegerField(default=0, verbose_name='Количество завершений')), ('user', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL, verbose_name='Пользователь')), ], ), ]
class Migration(migrations.Migration): initial = True dependencies = [ ('auth', '0009_alter_user_last_name_max_length'), ] operations = [ migrations.CreateModel( name='UserProfile', 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')), ('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')), ('name', models.CharField(default='', max_length=20, verbose_name='姓名')), ('birthday', models.DateField(blank=True, null=True, verbose_name='出生日期')), ('gender', models.CharField(choices=[('male', '男'), ('famale', '女')], default='male', max_length=10, verbose_name='性别')), ('mobile', models.CharField(default='', max_length=11, verbose_name='电话')), ('email', models.EmailField(max_length=100, verbose_name='邮箱')), ('image', models.ImageField(blank=True, default='image/default.jpg', null=True, upload_to='image/%Y/%m')), ('post', models.CharField(blank=True, max_length=50, null=True, verbose_name='职位')), ('joined_date', models.DateField(blank=True, null=True, verbose_name='入职日期')), ], options={ 'verbose_name': '用户信息', 'verbose_name_plural': '用户信息', 'ordering': ['id'], }, managers=[ ('objects', django.contrib.auth.models.UserManager()), ], ), migrations.CreateModel( name='Menu', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('title', models.CharField(max_length=32, unique=True, verbose_name='菜单名')), ('is_top', models.BooleanField(default=False, verbose_name='首页显示')), ('icon', models.CharField(blank=True, max_length=50, null=True, verbose_name='图标')), ('code', models.CharField(blank=True, max_length=50, null=True, verbose_name='编码')), ('url', models.CharField(blank=True, max_length=128, null=True, unique=True)), ('parent', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='system.Menu', verbose_name='父菜单')), ], options={ 'verbose_name': '菜单', 'verbose_name_plural': '菜单', }, ), migrations.CreateModel( name='Role', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('title', models.CharField(max_length=32)), ('permissions', models.ManyToManyField(blank=True, to='system.Menu')), ], options={ 'verbose_name': '角色', 'verbose_name_plural': '角色', }, ), migrations.CreateModel( name='Structure', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('title', models.CharField(max_length=60, verbose_name='名称')), ('type', models.CharField(choices=[('firm', '公司'), ('department', '部门')], default='department', max_length=20, verbose_name='类型')), ('parent', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='system.Structure', verbose_name='父类架构')), ], options={ 'verbose_name': '组织架构', 'verbose_name_plural': '组织架构', }, ), migrations.AddField( model_name='userprofile', name='department', field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='system.Structure', verbose_name='部门'), ), migrations.AddField( model_name='userprofile', 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='userprofile', name='roles', field=models.ManyToManyField(blank=True, to='system.Role', verbose_name='角色'), ), migrations.AddField( model_name='userprofile', name='superior', field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL, verbose_name='上级主管'), ), migrations.AddField( model_name='userprofile', 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 = [ ('base', '0001_initial'), ('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')), ('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')), ('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')), ('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False, unique=True)), ('date_modified', models.DateTimeField(auto_now=True)), ('date_created', models.DateTimeField(auto_now_add=True)), ('phone_number', models.CharField(blank=True, max_length=15, 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={ 'ordering': ('username', ), 'db_table': 'auth_user', }, managers=[ ('objects', django.contrib.auth.models.UserManager()), ], ), migrations.CreateModel( name='Endpoint', fields=[ ('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False, unique=True)), ('date_modified', models.DateTimeField(auto_now=True)), ('date_created', models.DateTimeField(auto_now_add=True)), ('name', models.CharField(max_length=100)), ('description', models.TextField(blank=True, max_length=255, null=True)), ('color', models.CharField(max_length=250)), ('url', models.CharField(max_length=250)), ('optimal_response_time', models.DurationField(default=datetime.timedelta(0, 3))), ('endpoint_type', models.ForeignKey( help_text='Endpoint type e.g an health-check endpoint', on_delete=django.db.models.deletion.CASCADE, to='base.EndpointType')), ('state', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='base.State')), ], options={ 'abstract': False, }, ), migrations.CreateModel( name='EscalationRule', fields=[ ('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False, unique=True)), ('date_modified', models.DateTimeField(auto_now=True)), ('date_created', models.DateTimeField(auto_now_add=True)), ('name', models.CharField(max_length=100)), ('description', models.TextField(blank=True, max_length=255, null=True)), ('nth_event', models.IntegerField( default=1, help_text='Limit of n events to satisfy this rule')), ('duration', models.DurationField( blank=True, help_text= 'Time period within which the nth occurrence of an event type will be escalated', null=True)), ('escalation_level', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='base.EscalationLevel')), ('event_type', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='base.EventType')), ('state', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='base.State')), ], options={ 'abstract': False, }, ), migrations.CreateModel( name='Event', fields=[ ('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False, unique=True)), ('date_modified', models.DateTimeField(auto_now=True)), ('date_created', models.DateTimeField(auto_now_add=True)), ('method', models.CharField( help_text='Method where the error is origination from', max_length=100, null=True)), ('request', models.TextField(blank=True, max_length=1000, null=True)), ('response', models.TextField(blank=True, max_length=1000, null=True)), ('stack_trace', models.TextField(blank=True, max_length=1000, null=True)), ('description', models.TextField( blank=True, help_text='Informative description of the event', max_length=100, null=True)), ('code', models.CharField(blank=True, max_length=100, null=True)), ('event_type', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='base.EventType')), ], options={ 'abstract': False, }, ), migrations.CreateModel( name='Incident', fields=[ ('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False, unique=True)), ('date_modified', models.DateTimeField(auto_now=True)), ('date_created', models.DateTimeField(auto_now_add=True)), ('name', models.CharField(max_length=100)), ('description', models.TextField(blank=True, max_length=255, null=True)), ('priority_level', models.IntegerField(default=1)), ('scheduled_for', models.DateTimeField( blank=True, help_text='Time the scheduled maintenance should begin', null=True)), ('scheduled_until', models.DateTimeField( blank=True, help_text='Time the scheduled maintenance should end', null=True)), ('event_type', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='base.EventType')), ('incident_type', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='base.IncidentType')), ('state', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='base.State')), ], options={ 'abstract': False, }, ), migrations.CreateModel( name='IncidentEvent', fields=[ ('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False, unique=True)), ('date_modified', models.DateTimeField(auto_now=True)), ('date_created', models.DateTimeField(auto_now_add=True)), ('event', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='core.Event')), ('incident', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='core.Incident')), ('state', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='base.State')), ], options={ 'abstract': False, }, ), migrations.CreateModel( name='IncidentLog', fields=[ ('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False, unique=True)), ('date_modified', models.DateTimeField(auto_now=True)), ('date_created', models.DateTimeField(auto_now_add=True)), ('priority_level', models.IntegerField()), ('description', models.TextField(blank=True, max_length=255, null=True)), ('escalation_level', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='base.EscalationLevel')), ('incident', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='core.Incident')), ('state', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='base.State')), ('user', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], options={ 'abstract': False, }, ), migrations.CreateModel( name='Interface', fields=[ ('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False, unique=True)), ('date_modified', models.DateTimeField(auto_now=True)), ('date_created', models.DateTimeField(auto_now_add=True)), ('name', models.CharField(max_length=100)), ('description', models.TextField(blank=True, max_length=255, null=True)), ('state', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='base.State')), ], options={ 'abstract': False, }, ), migrations.CreateModel( name='Notification', fields=[ ('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False, unique=True)), ('date_modified', models.DateTimeField(auto_now=True)), ('date_created', models.DateTimeField(auto_now_add=True)), ('recipient', models.CharField(max_length=255)), ('message', models.TextField(max_length=255)), ('notification_type', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='base.NotificationType')), ('state', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='base.State')), ], options={ 'abstract': False, }, ), migrations.CreateModel( name='System', fields=[ ('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False, unique=True)), ('date_modified', models.DateTimeField(auto_now=True)), ('date_created', models.DateTimeField(auto_now_add=True)), ('name', models.CharField(max_length=100)), ('description', models.TextField(blank=True, max_length=255, null=True)), ('version', models.CharField(default='1.0.0', max_length=10)), ('admin', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ('state', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='base.State')), ], options={ 'ordering': ('name', ), }, ), migrations.CreateModel( name='SystemCredential', fields=[ ('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False, unique=True)), ('date_modified', models.DateTimeField(auto_now=True)), ('date_created', models.DateTimeField(auto_now_add=True)), ('username', models.CharField(help_text='Similar to a client_ID', max_length=100)), ('password', models.CharField(help_text='Similar to a client_Secret', max_length=100)), ('token', models.CharField(help_text='Authorization token', max_length=100)), ('expires_at', models.DateTimeField( blank=True, help_text='Expiry time of the authorization token', null=True)), ('state', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='base.State')), ('system', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='core.System')), ], options={ 'abstract': False, }, ), migrations.CreateModel( name='SystemMonitor', fields=[ ('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False, unique=True)), ('date_modified', models.DateTimeField(auto_now=True)), ('date_created', models.DateTimeField(auto_now_add=True)), ('response_time', models.DurationField(blank=True, default=datetime.timedelta(0), null=True)), ('response_time_speed', models.CharField(blank=True, choices=[('Slow', 'Slow'), ('Normal', 'Normal')], default='Normal', max_length=100, null=True)), ('response_body', models.CharField( blank=True, help_text= 'Body of the response returned when querying an endpoint', max_length=100, null=True)), ('response_code', models.PositiveIntegerField(blank=True, null=True)), ('endpoint', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='core.Endpoint')), ('state', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='base.State')), ('system', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='core.System')), ], options={ 'abstract': False, }, ), migrations.CreateModel( name='SystemRecipient', fields=[ ('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False, unique=True)), ('date_modified', models.DateTimeField(auto_now=True)), ('date_created', models.DateTimeField(auto_now_add=True)), ('escalation_level', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='base.EscalationLevel')), ('notification_type', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='base.NotificationType')), ('recipient', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ('state', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='base.State')), ('system', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='core.System')), ], options={ 'abstract': False, }, ), migrations.AddField( model_name='notification', name='system', field=models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, to='core.System'), ), migrations.AddField( model_name='interface', name='system', field=models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, to='core.System'), ), migrations.AddField( model_name='incident', name='system', field=models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, to='core.System'), ), migrations.AddField( model_name='event', name='interface', field=models.ForeignKey( blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='core.Interface'), ), migrations.AddField( model_name='event', name='state', field=models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, to='base.State'), ), migrations.AddField( model_name='event', name='system', field=models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, to='core.System'), ), migrations.AddField( model_name='escalationrule', name='system', field=models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, to='core.System'), ), migrations.AddField( model_name='endpoint', name='system', field=models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, to='core.System'), ), migrations.AlterUniqueTogether( name='system', unique_together=set([('name', )]), ), migrations.AlterUniqueTogether( name='user', unique_together=set([('username', )]), ), ]
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')), ('_path', models.CharField(default='', max_length=256)), ('tocken', models.CharField(default='', max_length=1024)), ('mntpath', models.CharField(default='', max_length=1024)), ('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', 'ordering': ['-id'], 'abstract': False, 'swappable': 'AUTH_USER_MODEL', }, managers=[ ('objects', django.contrib.auth.models.UserManager()), ], ), migrations.CreateModel( name='Algorithm', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=128, unique=True)), ('task', models.CharField(max_length=128)), ('_path', models.CharField(default='', max_length=256)), ('is_check', models.BooleanField(default=False)), ('created_at', models.CharField(default='', max_length=256)), ('hyperp_path', models.CharField(default='', max_length=256)), ('uid', models.ForeignKey( blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to=settings.AUTH_USER_MODEL)), ], options={ 'ordering': ['-id'], }, ), migrations.CreateModel( name='customize_algo', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=128, verbose_name='算法名称')), ('version', models.CharField(blank=True, max_length=128, verbose_name='版本')), ('description', models.TextField(blank=True, verbose_name='算法描述')), ('created_at', models.DateTimeField(auto_now_add=True)), ('edited_at', models.DateTimeField(auto_now=True)), ('ai_engine', models.CharField(max_length=128)), ('project_path', models.CharField(max_length=256)), ('start_path', models.CharField(max_length=256)), ('code_path', models.CharField(max_length=256)), ('uid', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], options={ 'ordering': ['-id'], }, ), migrations.CreateModel( name='customize_auto_search', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=128)), ('created_at', models.DateTimeField(auto_now_add=True)), ('completed_at', models.DateTimeField(blank=True, null=True)), ('state', models.CharField(max_length=128)), ('method', models.CharField(max_length=64)), ('suggest', models.IntegerField()), ('epoch', models.IntegerField()), ('pid', models.IntegerField()), ('algo_id', models.ForeignKey( blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to='_app.customize_algo')), ('uid', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], options={ 'ordering': ['-id'], }, ), migrations.CreateModel( name='Dataset', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=128, unique=True)), ('task', models.CharField(max_length=128)), ('_path', models.CharField(default='', max_length=256)), ('is_check', models.BooleanField(default=False)), ], options={ 'ordering': ['-id'], }, ), migrations.CreateModel( name='User_algorithm', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=128)), ('user_id', models.IntegerField()), ('task', models.CharField(default='', max_length=128)), ('_path', models.CharField(default='', max_length=256)), ('created_at', models.CharField(default='', max_length=256)), ('hyperp_path', models.CharField(default='', max_length=256)), ('algorithm', models.ForeignKey( blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to='_app.algorithm')), ('uid', models.ForeignKey( blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to=settings.AUTH_USER_MODEL)), ], options={ 'ordering': ['-id'], }, ), migrations.CreateModel( name='User_Job', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('jobid', models.CharField(max_length=128, unique=True)), ('name', models.CharField(max_length=128)), ('user_id', models.CharField(max_length=128)), ('username', models.CharField(max_length=128)), ('state', models.CharField(max_length=128)), ('createdTime', models.CharField(max_length=128)), ('completedTime', models.CharField(max_length=128)), ('_path', models.CharField(default='', max_length=256)), ('algorithm', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='_app.user_algorithm')), ('dataset', models.ForeignKey( null=True, on_delete=django.db.models.deletion.SET_NULL, to='_app.dataset')), ], options={ 'ordering': ['-id'], }, ), migrations.CreateModel( name='search_para', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=128)), ('data_type', models.CharField(max_length=64)), ('space', models.CharField(blank=True, max_length=64, null=True)), ('values', models.TextField(blank=True, max_length=2048, null=True)), ('ranges_max', models.CharField(blank=True, max_length=64, null=True)), ('ranges_min', models.CharField(blank=True, max_length=64, null=True)), ('search_id', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='_app.customize_auto_search')), ], options={ 'ordering': ['-id'], }, ), migrations.CreateModel( name='search_job', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('job_id', models.CharField(max_length=128, unique=True)), ('name', models.CharField(max_length=128)), ('state', models.CharField(max_length=128)), ('created_at', models.DateTimeField()), ('completed_at', models.DateTimeField(blank=True, null=True)), ('search_id', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='_app.customize_auto_search')), ], options={ 'ordering': ['-id'], }, ), migrations.CreateModel( name='customize_job', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('job_id', models.CharField(max_length=128, unique=True)), ('name', models.CharField(max_length=128)), ('state', models.CharField(max_length=128)), ('created_at', models.DateTimeField()), ('completed_at', models.DateTimeField(blank=True, null=True)), ('algo_id', models.ForeignKey( blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to='_app.customize_algo')), ('uid', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], options={ 'ordering': ['-id'], }, ), migrations.CreateModel( name='algo_io', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('fname', models.CharField(max_length=128)), ('name', models.CharField(max_length=128)), ('default_path', models.CharField(blank=True, max_length=256)), ('description', models.TextField(blank=True, verbose_name='描述')), ('belong_algo', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='_app.customize_algo')), ], options={ 'ordering': ['-id'], }, ), migrations.CreateModel( name='algo_hpyer', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=128)), ('data_type', models.CharField(max_length=64)), ('initial_value', models.CharField(blank=True, max_length=256)), ('limitations', models.TextField(blank=True, verbose_name='Json字符串形式保存的超参限制条件')), ('is_necessary', models.BooleanField(default=False)), ('description', models.TextField(blank=True, verbose_name='描述')), ('belong_algo', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='_app.customize_algo')), ], options={ 'ordering': ['-id'], }, ), ]
class Migration(migrations.Migration): initial = True dependencies = [ ('auth', '0012_alter_user_first_name_max_length'), ] operations = [ migrations.CreateModel( name='Country', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=100)), ], ), migrations.CreateModel( name='Interest', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('interest', models.CharField(max_length=100)), ], ), migrations.CreateModel( name='UserAcc', fields=[ ('user_ptr', models.OneToOneField( auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='auth.user')), ('follows', models.ManyToManyField(blank=True, related_name='_useracc_follows_+', to='api.UserAcc')), ('friends', models.ManyToManyField(blank=True, to='api.UserAcc')), ('home_country', models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, to='api.country')), ('interests', models.ManyToManyField(blank=True, to='api.Interest')), ('was_here', models.ManyToManyField(blank=True, related_name='_useracc_was_here_+', to='api.Country')), ('will_go', models.ManyToManyField(blank=True, related_name='_useracc_will_go_+', to='api.Country')), ], options={ 'verbose_name': 'user', 'verbose_name_plural': 'users', 'abstract': False, }, bases=('auth.user', ), managers=[ ('objects', django.contrib.auth.models.UserManager()), ], ), migrations.CreateModel( name='Post', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('content', models.TextField(max_length=300)), ('date', models.DateField(auto_now_add=True)), ('likes', models.ManyToManyField(blank=True, related_name='_post_likes_+', to='api.UserAcc')), ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='api.useracc')), ], ), migrations.CreateModel( name='NextTravel', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('starting', models.DateField()), ('until', models.DateField()), ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='api.useracc')), ('where', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='api.country')), ], ), ]
class Migration(migrations.Migration): initial = True dependencies = [ ('auth', '0011_update_proxy_permissions'), ] operations = [ migrations.CreateModel( name='UserInfo', 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')), ('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')), ('nid', models.AutoField(primary_key=True, serialize=False)), ('telephone', models.CharField(max_length=11, null=True, unique=True)), ('avatar', models.FileField(default='/avatars/default.png', upload_to='avatars/')), ('create_time', models.DateTimeField(auto_now_add=True, verbose_name='创建时间')), ], options={ 'verbose_name': 'user', 'verbose_name_plural': 'users', 'abstract': False, }, managers=[ ('objects', django.contrib.auth.models.UserManager()), ], ), migrations.CreateModel( name='Article', fields=[ ('nid', models.AutoField(primary_key=True, serialize=False)), ('title', models.CharField(max_length=50, verbose_name='文章标题')), ('desc', models.CharField(max_length=255, verbose_name='文章描述')), ('create_time', models.DateTimeField(auto_now_add=True, verbose_name='创建时间')), ('content', models.TextField()), ('comment_count', models.IntegerField(default=0)), ('up_count', models.IntegerField(default=0)), ('down_count', models.IntegerField(default=0)), ], ), migrations.CreateModel( name='Blog', fields=[ ('nid', models.AutoField(primary_key=True, serialize=False)), ('title', models.CharField(max_length=64, verbose_name='个人博客标题')), ('site_name', models.CharField(max_length=64, verbose_name='站点名称')), ('theme', models.CharField(max_length=32, verbose_name='博客主题')), ], ), migrations.CreateModel( name='Tag', fields=[ ('nid', models.AutoField(primary_key=True, serialize=False)), ('title', models.CharField(max_length=32, verbose_name='标签名称')), ('blog', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='cnblong.Blog', verbose_name='所属博客')), ], ), migrations.CreateModel( name='Comment', fields=[ ('nid', models.AutoField(primary_key=True, serialize=False)), ('create_time', models.DateTimeField(auto_now_add=True, verbose_name='创建时间')), ('content', models.CharField(max_length=255, verbose_name='评论内容')), ('article', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='cnblong.Article', verbose_name='评论文章')), ('parent_comment', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, to='cnblong.Comment')), ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL, verbose_name='评论者')), ], ), migrations.CreateModel( name='Category', fields=[ ('nid', models.AutoField(primary_key=True, serialize=False)), ('title', models.CharField(max_length=32, verbose_name='分类标题')), ('blog', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='cnblong.Blog', verbose_name='所属博客')), ], ), migrations.CreateModel( name='Article2Tag', fields=[ ('nid', models.AutoField(primary_key=True, serialize=False)), ('article', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='cnblong.Article', verbose_name='文章')), ('tag', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='cnblong.Tag', verbose_name='标签')), ], options={ 'unique_together': {('article', 'tag')}, }, ), migrations.AddField( model_name='article', name='category', field=models.ForeignKey( null=True, on_delete=django.db.models.deletion.CASCADE, to='cnblong.Category'), ), migrations.AddField( model_name='article', name='tags', field=models.ManyToManyField(through='cnblong.Article2Tag', to='cnblong.Tag'), ), migrations.AddField( model_name='article', name='user', field=models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL, verbose_name='作者'), ), migrations.AddField( model_name='userinfo', name='blog', field=models.OneToOneField( null=True, on_delete=django.db.models.deletion.CASCADE, to='cnblong.Blog'), ), migrations.AddField( model_name='userinfo', 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='userinfo', 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.CreateModel( name='ArticleUpDown', fields=[ ('nid', models.AutoField(primary_key=True, serialize=False)), ('is_up', models.BooleanField(default=True)), ('article', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, to='cnblong.Article')), ('user', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], options={ 'unique_together': {('article', 'user')}, }, ), ]
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')), ], options={ 'verbose_name': 'user', 'verbose_name_plural': 'users', 'abstract': False, }, managers=[ ('objects', django.contrib.auth.models.UserManager()), ], ), migrations.CreateModel( name='Homework', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('course', models.CharField(max_length=100)), ('teacher', models.TextField(max_length=100)), ('date', models.DateField()), ('deadline', models.DateField()), ('description', models.TextField(max_length=10000)), ], ), migrations.CreateModel( name='Answer', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('grade', models.CharField(max_length=3)), ('answer', models.TextField(max_length=1000)), ('homework', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='hw_system.homework')), ('student', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], ), migrations.AddField( model_name='user', name='homeworks', field=models.ManyToManyField(through='hw_system.Answer', to='hw_system.Homework'), ), 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 = [ ('auth', '0011_update_proxy_permissions'), ('worksiteadmin', '0001_initial'), ] 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')), ('is_freelancer', models.BooleanField(default=False)), ('is_client', models.BooleanField(default=False)), ('phone_number', models.CharField(max_length=13)), ('address', models.CharField(default='Kenya', max_length=100)), ('certificate', models.FileField(blank=True, max_length=150, null=True, upload_to='Certificates/')), ('is_account_active', models.BooleanField(default=False)), ('best_skill', models.ForeignKey( null=True, on_delete=django.db.models.deletion.SET_NULL, to='worksiteadmin.SkillSet')), ('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')), ('highest_education_level', models.ForeignKey( null=True, on_delete=django.db.models.deletion.SET_NULL, to='worksiteadmin.EducationLevelSet')), ('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()), ], ), ]