class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('app1', '0002_auto_20190427_2146'), ] 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=200)), ('description', models.TextField()), ('image', models.ImageField(blank=True, null=True, upload_to=app1.models.article_images)), ('user', models.ForeignKey( null=True, on_delete=django.db.models.deletion.SET_NULL, to=settings.AUTH_USER_MODEL)), ], ), ]
class Migration(migrations.Migration): dependencies = [ ('app1', '0010_auto_20200318_1923'), ] operations = [ migrations.AddField( model_name='additionaluser', name='profile', field=models.ImageField(default='static/Anonymous.png', upload_to=app1.models.user_profile_path), ), migrations.AlterField( model_name='additionaluser', name='dept', field=models.CharField(choices=[ ('Civil Engineering', 'Civil Engineering'), ('Mechanical Engineering', 'Mechanical Engineering'), ('Electronics and Communication Engineering', 'Electronics and Communication Engineering'), ('Electrical and Electronics Engineering', 'Electrical and Electronics Engineering'), ('Computer Science and Engineering', 'Computer Science and Engineering'), ('Metallurgical Engineering', 'Metallurgical Engineering') ], max_length=256), ), migrations.AlterField( model_name='alumnidatabase', name='College', field=models.CharField(choices=[ ('Government college of engineering, salem', 'Government college of engineering, salem') ], max_length=256), ), migrations.AlterField( model_name='alumnidatabase', name='Dept', field=models.CharField(choices=[ ('Civil Engineering', 'Civil Engineering'), ('Mechanical Engineering', 'Mechanical Engineering'), ('Electronics and Communication Engineering', 'Electronics and Communication Engineering'), ('Electrical and Electronics Engineering', 'Electrical and Electronics Engineering'), ('Computer Science and Engineering', 'Computer Science and Engineering'), ('Metallurgical Engineering', 'Metallurgical Engineering') ], max_length=200), ), ]
class Migration(migrations.Migration): dependencies = [ ('app1', '0006_auto_20190225_2343'), ] operations = [ migrations.AlterField( model_name='document', name='photo', field=models.ImageField(default='defo', upload_to=app1.models.update_filename), ), ]
class Migration(migrations.Migration): dependencies = [ ('app1', '0011_auto_20200320_1428'), ] operations = [ migrations.AlterField( model_name='additionaluser', name='profile', field=models.ImageField(default='media/Anonymous.png', upload_to=app1.models.user_profile_path), ), ]
class Migration(migrations.Migration): initial = True dependencies = [] operations = [ migrations.CreateModel( name='Book', fields=[ ('ISBN', models.CharField(max_length=13, primary_key=True, serialize=False, verbose_name='ISBN')), ('title', models.CharField(max_length=128, verbose_name='书名')), ('author', models.CharField(max_length=32, verbose_name='作者')), ('press', models.CharField(max_length=64, verbose_name='出版社')), ('description', models.CharField(default='', max_length=1024, verbose_name='详细')), ('price', models.CharField(max_length=20, null=True, verbose_name='价格')), ('category', models.CharField(default='文学', max_length=64, verbose_name='分类')), ('cover', models.ImageField(blank=True, upload_to=app1.models.custom_path, verbose_name='封面')), ('index', models.CharField(max_length=16, null=True, verbose_name='索引')), ('location', models.CharField(default='图书馆1楼', max_length=64, verbose_name='位置')), ('quantity', models.IntegerField(default=1, verbose_name='数量')), ], options={ 'verbose_name': '图书', 'verbose_name_plural': '图书', }, ), ]
class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('app1', '0001_initial'), ] operations = [ migrations.CreateModel( name='Reader', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=16, unique=True, verbose_name='姓名')), ('phone', models.IntegerField(unique=True, verbose_name='电话')), ('max_borrowing', models.IntegerField(default=5, verbose_name='可借数量')), ('balance', models.FloatField(default=0.0, verbose_name='余额')), ('photo', models.ImageField(blank=True, upload_to=app1.models.custom_path, verbose_name='头像')), ('status', models.IntegerField(choices=[(0, 'normal'), (-1, 'overdue')], default=0)), ('user', models.OneToOneField( on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL, verbose_name='读者')), ], options={ 'verbose_name': '读者', 'verbose_name_plural': '读者', }, ), ]
class Migration(migrations.Migration): dependencies = [ ('app1', '0001_initial'), ] operations = [ migrations.RemoveField( model_name='profile', name='birth_date', ), migrations.AddField( model_name='profile', name='avatar', field=models.ImageField(blank=True, null=True, upload_to=app1.models.user_directory_path), ), ]
class Migration(migrations.Migration): initial = True dependencies = [] operations = [ migrations.CreateModel( name='Division', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('title', models.CharField(max_length=10, unique=True)), ('views', models.IntegerField(default=0)), ('slug', models.SlugField()), ], ), migrations.CreateModel( name='Page', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=10, unique=True)), ('views', models.IntegerField(default=0)), ('slug', models.SlugField()), ('likes', models.IntegerField(default=0)), ('images', models.ImageField(blank=True, null=True, upload_to=app1.models.desti)), ('division', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='app1.Division')), ], ), ]
class Migration(migrations.Migration): dependencies = [ ('app1', '0012_auto_20200320_1431'), ] operations = [ migrations.AlterField( model_name='additionaluser', name='college', field=models.CharField(choices=[('Government college of engineering, salem', 'Government college of engineering, salem'), ('Government College of Engineering, Bargur', 'Government College of Engineering, Bargur')], max_length=256), ), migrations.AlterField( model_name='additionaluser', name='profile', field=models.ImageField(default='Anonymous.png', upload_to=app1.models.user_profile_path), ), migrations.AlterField( model_name='alumnidatabase', name='College', field=models.CharField(choices=[('Government college of engineering, salem', 'Government college of engineering, salem'), ('Government College of Engineering, Bargur', 'Government College of Engineering, Bargur')], max_length=256), ), ]
class Migration(migrations.Migration): initial = True dependencies = [ ('auth', '0011_update_proxy_permissions'), ] operations = [ migrations.CreateModel( name='Product', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=32)), ('description', models.TextField()), ('price', models.DecimalField(decimal_places=2, max_digits=6)), ('location', models.CharField(max_length=32)), ('slug', models.SlugField(max_length=48)), ('active', models.BooleanField(default=True)), ('available', models.BooleanField(default=True)), ('date_updated', models.DateTimeField(auto_now=True)), ], ), migrations.CreateModel( name='ProductTag', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=32)), ('slug', models.SlugField(max_length=48)), ('description', models.TextField(blank=True)), ('active', models.BooleanField(default=True)), ], ), migrations.CreateModel( name='ProductImage', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('image', models.ImageField(upload_to='product-images')), ('thumbnail', models.ImageField(null=True, upload_to='product-thumbnails')), ('product', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='app1.Product')), ], ), migrations.AddField( model_name='product', name='tags', field=models.ManyToManyField(blank=True, to='app1.ProductTag'), ), 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')), ('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', app1.models.UserManager()), ], ), ]
class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('app1', '0001_initial'), ] operations = [ migrations.CreateModel( name='image', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('pic', models.ImageField(upload_to=app1.models.desti)), ], ), migrations.CreateModel( name='like', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ], ), migrations.CreateModel( name='Story', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ], ), migrations.CreateModel( name='UserProfile', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('user', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], ), migrations.RemoveField( model_name='page', name='images', ), migrations.RemoveField( model_name='page', name='likes', ), migrations.AddField( model_name='page', name='des', field=models.TextField(default='', max_length=500), preserve_default=False, ), migrations.AddField( model_name='story', name='story_page', field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='app1.Page'), ), migrations.AddField( model_name='story', name='user', field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL), ), migrations.AddField( model_name='like', name='page', field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='app1.Page'), ), migrations.AddField( model_name='like', name='user', field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL), ), migrations.AddField( model_name='image', name='page', field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='pages', to='app1.Page'), ), migrations.AddField( model_name='image', name='user', field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL), ), ]
class Migration(migrations.Migration): initial = True dependencies = [] operations = [ migrations.CreateModel( name='User', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('password', models.CharField(max_length=128, verbose_name='password')), ('email', models.EmailField(max_length=100, unique=True)), ('username', models.CharField(max_length=100, unique=True)), ('date_joined', models.DateTimeField(auto_now_add=True, verbose_name='date joined')), ('last_login', models.DateTimeField(auto_now=True, verbose_name='last_login')), ('is_admin', models.BooleanField(default=False)), ('is_active', models.BooleanField(default=True)), ('is_staff', models.BooleanField(default=False)), ('is_superuser', models.BooleanField(default=False)), ('profile_image', models.ImageField( blank=True, default=app1.models.get_default_profile_image, max_length=255, null=True, upload_to=app1.models.get_profile_image_filepath)), ('hide_email', models.BooleanField(default=False)), ], options={ 'abstract': False, }, managers=[ ('object', django.db.models.manager.Manager()), ], ), migrations.CreateModel( name='Message', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('message', models.CharField(max_length=500)), ('created_at', models.DateTimeField(auto_now_add=True)), ('sender_id', models.ForeignKey(default='unknown', on_delete=django.db.models.deletion.CASCADE, to='app1.user')), ], ), ]