class Migration(migrations.Migration): initial = True dependencies = [] operations = [ migrations.CreateModel( name='LivePreview', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('title', models.CharField(max_length=36, verbose_name='标题')), ('content', DjangoUeditor.models.UEditorField(default='', verbose_name='直播内容')), ('live_time', models.DateTimeField(default=datetime.datetime.now, verbose_name='直播时间')), ('link', models.URLField(max_length=128, verbose_name='直播链接')), ('add_time', models.DateTimeField(default=datetime.datetime.now, verbose_name='添加时间')), ], options={ 'verbose_name': '直播预告', 'verbose_name_plural': '直播预告', }, ), ]
class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] operations = [ migrations.CreateModel( name='Banner', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('title', models.CharField(max_length=100, verbose_name='标题')), ('image', models.ImageField(upload_to='banner/%Y/%m', verbose_name='轮播图')), ('url', models.URLField(verbose_name='访问地址')), ('index', models.IntegerField(default=100, verbose_name='顺序')), ('add_time', models.DateTimeField(default=datetime.datetime.now, verbose_name='添加时间')), ], options={ 'verbose_name': '轮播图', 'verbose_name_plural': '轮播图', }, ), migrations.CreateModel( name='News', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=50, verbose_name='公告标题')), ('detail', DjangoUeditor.models.UEditorField(default='', verbose_name='公告详情')), ('publishTime', models.DateTimeField(auto_now_add=True, verbose_name='申请时间')), ('author', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL, verbose_name='作者')), ], ), ]
class Migration(migrations.Migration): dependencies = [ ('myblog', '0005_blog_comments'), ] operations = [ migrations.AddField( model_name='user', name='fans_num', field=models.PositiveIntegerField(default=0), ), migrations.AddField( model_name='user', name='follow_num', field=models.PositiveIntegerField(default=0), ), migrations.AddField( model_name='user', name='url', field=models.URLField(blank=True, null=True), ), migrations.AlterField( model_name='blog', name='content', field=DjangoUeditor.models.UEditorField(blank=True), ), migrations.CreateModel( name='Relation', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('created_at', models.DateTimeField(auto_now_add=True)), ('followed', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='as_followed', to='myblog.User')), ('follower', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='as_follower', to='myblog.User')), ], options={ 'verbose_name': '用户关系', 'verbose_name_plural': '用户关系', 'ordering': ['-created_at'], }, ), ]
class Migration(migrations.Migration): dependencies = [ ('blogapp', '0001_initial'), ] operations = [ migrations.CreateModel( name='leave', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=20, verbose_name='名字')), ('url', models.URLField(default='http://www.rcc.com', verbose_name='个人主页')), ('email', models.EmailField(default='*****@*****.**', max_length=254, verbose_name='邮箱')), ('create_time', models.DateTimeField(auto_now_add=True, verbose_name='留言时间')), ('body', models.CharField(max_length=100, verbose_name='内容')), ], ), migrations.AlterField( model_name='article', name='body', field=DjangoUeditor.models.UEditorField(), ), ]
class Migration(migrations.Migration): dependencies = [ ('blog', '0002_article_user'), ] operations = [ migrations.AlterField( model_name='article', name='content', field=DjangoUeditor.models.UEditorField(blank=True, verbose_name='文章内容'), ), migrations.AlterField( model_name='banner', name='img', field=models.ImageField(upload_to='banner/', verbose_name='图片'), ), migrations.AlterField( model_name='banner', name='link_url', field=models.URLField(max_length=100, verbose_name='链接地址'), ), ]
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')), ('avatar', models.ImageField(blank=True, default='avatar/四叶草.png', max_length=200, null=True, upload_to='avatar', verbose_name='用户头像')), ('gender', models.CharField(choices=[('男', '男'), ('女', '女')], default='女', max_length=6, verbose_name='性 别')), ('is_vip', models.BooleanField(default=False, verbose_name='四叶草会员')), ('faved_list', models.TextField(blank=True, 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': '用户', 'verbose_name_plural': '用户', 'ordering': ['-id'], }, managers=[ ('objects', django.contrib.auth.models.UserManager()), ], ), migrations.CreateModel( name='Article', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('title', models.CharField(max_length=30, verbose_name='文章标题')), ('desc', models.CharField(max_length=50, verbose_name='文章描述')), ('content', DjangoUeditor.models.UEditorField(verbose_name='文章内容')), ('click_num', models.IntegerField(default=0, verbose_name='浏览量')), ('fav_num', models.IntegerField(default=0, verbose_name='收藏数')), ('is_recommend', models.BooleanField(default=False, verbose_name='推荐')), ('is_top', models.BooleanField(default=False, verbose_name='置顶')), ('top_index', models.IntegerField(default=0, verbose_name='置顶顺序')), ('date_publish', models.DateTimeField(auto_now_add=True, verbose_name='发布时间')), ('category', models.CharField(choices=[('阅读', '阅读'), ('思维导图', '思维导图'), ('写作', '写作'), ('演讲', '演讲'), ('其他', '其他')], default='其他', max_length=10, verbose_name='类 型')), ('author', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL, verbose_name='作 者')), ], options={ 'verbose_name': '文章', 'verbose_name_plural': '文章', 'ordering': ['-date_publish'], }, ), migrations.CreateModel( name='Comment', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('date_publish', models.DateTimeField(auto_now_add=True, verbose_name='发布时间')), ('content', models.TextField(default='32个赞!', verbose_name='评论内容')), ('article', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='homepage.Article', verbose_name='点评文章')), ], options={ 'verbose_name': '评论', 'verbose_name_plural': '评论', 'ordering': ['-date_publish'], }, ), migrations.CreateModel( name='GoldenWords', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('copyright', models.CharField(choices=[('原创', '原创'), ('转载', '转载')], default='转载', max_length=4, verbose_name='版 权')), ('content', models.CharField(max_length=300, verbose_name='金句内容')), ('photo', models.ImageField(blank=True, default='photo/defult_goldwords.png', max_length=200, null=True, upload_to='photo', verbose_name='金句配图')), ('application', models.CharField(max_length=100, verbose_name='应用场景')), ('fav_num', models.IntegerField(default=0, verbose_name='收藏数')), ('is_recommend', models.BooleanField(default=False, verbose_name='推荐')), ('is_top', models.BooleanField(default=False, verbose_name='置顶')), ('top_index', models.IntegerField(default=0, verbose_name='置顶顺序')), ('date_publish', models.DateTimeField(auto_now_add=True, verbose_name='发布时间')), ('click_num', models.IntegerField(default=0, verbose_name='浏览量')), ('publisher', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL, verbose_name='发布人')), ], options={ 'verbose_name': '金句', 'verbose_name_plural': '金句', 'ordering': ['-date_publish'], }, ), migrations.CreateModel( name='GoodBooks', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=20, verbose_name='书籍名称')), ('author', models.CharField(blank=True, max_length=20, null=True, verbose_name='书籍作者')), ('bookcover', models.ImageField(blank=True, max_length=200, null=True, upload_to='bookcover', verbose_name='书籍封面')), ('bookreview', models.TextField(max_length=600, verbose_name='推荐词/书评')), ('url', models.URLField(blank=True, max_length=100, null=True, verbose_name='相关网址')), ('application', models.CharField(blank=True, max_length=100, null=True, verbose_name='适合人群')), ('fav_num', models.IntegerField(default=0, verbose_name='收藏数')), ('has_read', models.BooleanField(default=False, verbose_name='已读')), ('is_recommend', models.BooleanField(default=False, verbose_name='推荐')), ('is_top', models.BooleanField(default=False, verbose_name='置顶')), ('top_index', models.IntegerField(default=0, verbose_name='置顶顺序')), ('date_publish', models.DateTimeField(auto_now_add=True, verbose_name='发布时间')), ('click_num', models.IntegerField(default=0, verbose_name='浏览量')), ('publisher', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL, verbose_name='推荐人')), ], options={ 'verbose_name': '好书', 'verbose_name_plural': '好书', 'ordering': ['-date_publish'], }, ), migrations.CreateModel( name='GoodImgs', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('goodimg', models.ImageField(max_length=200, upload_to='goodimg', verbose_name='美图')), ('application', models.CharField(max_length=100, verbose_name='应用场景/图片主题')), ('date_publish', models.DateTimeField(auto_now_add=True, verbose_name='发布时间')), ('publisher', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL, verbose_name='分享人')), ], options={ 'verbose_name': '美图', 'verbose_name_plural': '美图', 'ordering': ['-date_publish'], }, ), migrations.CreateModel( name='Links', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('title', models.CharField(max_length=50, verbose_name='标题')), ('description', models.CharField(max_length=200, verbose_name='友情链接描述')), ('callback_url', models.URLField(verbose_name='url地址')), ('date_publish', models.DateTimeField(auto_now_add=True, verbose_name='发布时间')), ('index', models.IntegerField(default=999, verbose_name='排列顺序(从小到大)')), ], options={ 'verbose_name': '友情链接', 'verbose_name_plural': '友情链接', 'ordering': ['index', 'id'], }, ), migrations.CreateModel( name='Member', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('VipCard', models.ImageField(blank=True, max_length=200, null=True, upload_to='VipCard', verbose_name='四叶草会员卡')), ('syc_No', models.IntegerField(blank=True, null=True, unique=True, verbose_name='会员号')), ('role', models.CharField(blank=True, default='', max_length=100, null=True, verbose_name='角色')), ('join_time', models.DateField(blank=True, null=True, verbose_name='入会时间')), ('valid_time', models.DateField(blank=True, null=True, verbose_name='会员有效期')), ('study_num', models.IntegerField(default=0, verbose_name='参加活动数')), ('practise_num', models.IntegerField(default=0, verbose_name='风火轮打卡数')), ('url', models.URLField(blank=True, default='', max_length=100, null=True, verbose_name='个人网页地址')), ('video', models.URLField(blank=True, max_length=100, null=True, verbose_name='入会演讲视频地址')), ('profile', models.TextField(blank=True, default='', max_length=600, null=True, verbose_name='个人简介')), ('birthday', models.DateField(blank=True, null=True, verbose_name='出生年月')), ('wechat', models.CharField(blank=True, max_length=20, null=True, verbose_name='微信号')), ('mobile', models.CharField(blank=True, max_length=11, null=True, unique=True, verbose_name='手机号码')), ('join_team_time', models.DateField(blank=True, null=True, verbose_name='加入四叶草运营团队的时间')), ('click_num', models.IntegerField(default=0, verbose_name='浏览量')), ('book_read', models.ManyToManyField(blank=True, to='homepage.GoodBooks', verbose_name='已读书籍')), ('name', models.OneToOneField( blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL, verbose_name='姓名')), ], options={ 'verbose_name': '会员库', 'verbose_name_plural': '会员库', }, ), migrations.CreateModel( name='Tag', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=30, verbose_name='标签名称')), ], options={ 'verbose_name': '标签', 'verbose_name_plural': '标签', }, ), migrations.CreateModel( name='UserFavorite', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('fav_id', models.IntegerField(default=0, verbose_name='数据id')), ('fav_type', models.CharField(choices=[('文章', '文章'), ('好书', '好书'), ('美图', '美图'), ('金句', '金句'), ('会员', '会员')], default='文章', max_length=8, verbose_name='收藏类型')), ('add_time', models.DateTimeField(auto_now_add=True, verbose_name='添加时间')), ('member', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='homepage.Member', verbose_name='用户')), ], options={ 'verbose_name': '用户收藏', 'verbose_name_plural': '用户收藏', }, ), migrations.AddField( model_name='goodimgs', name='tag', field=models.ManyToManyField(blank=True, to='homepage.Tag', verbose_name='标 签'), ), migrations.AddField( model_name='goodbooks', name='tag', field=models.ManyToManyField(blank=True, to='homepage.Tag', verbose_name='标 签'), ), migrations.AddField( model_name='goldenwords', name='tag', field=models.ManyToManyField(blank=True, to='homepage.Tag', verbose_name='标 签'), ), migrations.AddField( model_name='comment', name='goldwords', field=models.ForeignKey( blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='homepage.GoldenWords', verbose_name='点评金句'), ), migrations.AddField( model_name='comment', name='goodbooks', field=models.ForeignKey( blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='homepage.GoodBooks', verbose_name='点评好书'), ), migrations.AddField( model_name='comment', name='member', field=models.ForeignKey( blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='homepage.Member', verbose_name='点评会员'), ), migrations.AddField( model_name='comment', name='pid', field=models.ForeignKey( blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='homepage.Comment', verbose_name='父级点评'), ), migrations.AddField( model_name='comment', name='user', 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='article', name='tag', field=models.ManyToManyField(blank=True, to='homepage.Tag', verbose_name='标 签'), ), ]
class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('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')), ('avatar', models.ImageField(blank=True, upload_to='upload/mugshots', 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='Article', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('created_time', models.DateTimeField(default=django.utils.timezone.now, verbose_name='创建时间')), ('last_mod_time', models.DateTimeField(default=django.utils.timezone.now, verbose_name='修改时间')), ('title', models.CharField(max_length=200, unique=True, verbose_name='标题')), ('body', DjangoUeditor.models.UEditorField(blank=True, default='', verbose_name='正文')), ('pub_time', models.DateTimeField(blank=True, null=True, verbose_name='发布时间')), ('status', models.CharField(choices=[('d', '草稿'), ('p', '发表')], default='p', max_length=1, verbose_name='文章状态')), ('comment_status', models.CharField(choices=[('o', '打开'), ('c', '关闭')], default='o', max_length=1, verbose_name='评论状态')), ('type', models.CharField(choices=[('a', '文章'), ('p', '页面')], default='a', max_length=1, verbose_name='类型')), ('views', models.PositiveIntegerField(default=0, verbose_name='浏览量')), ('author', models.CharField(default='shenruxiang', max_length=32, verbose_name='文章作者')), ('article_order', models.IntegerField(default=0, verbose_name='排序,数字越大越靠前')), ], options={ 'verbose_name': '文章', 'verbose_name_plural': '文章', 'ordering': ['-article_order', '-pub_time'], 'get_latest_by': 'created_time', }, ), migrations.CreateModel( name='BlogSettings', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('sitename', models.CharField(default='', max_length=200, verbose_name='网站名称')), ('site_description', models.TextField(default='', max_length=1000, verbose_name='网站描述')), ('site_seo_description', models.TextField(default='', max_length=1000, verbose_name='网站SEO描述')), ('site_keywords', models.TextField(default='', max_length=1000, verbose_name='网站关键字')), ('article_sub_length', models.IntegerField(default=300, verbose_name='文章摘要长度')), ('sidebar_article_count', models.IntegerField(default=10, verbose_name='侧边栏文章数目')), ('sidebar_comment_count', models.IntegerField(default=5, verbose_name='侧边栏评论数目')), ('show_google_adsense', models.BooleanField(default=False, verbose_name='是否显示谷歌广告')), ('google_adsense_codes', models.TextField(blank=True, default='', max_length=2000, null=True, verbose_name='广告内容')), ('open_site_comment', models.BooleanField(default=True, verbose_name='是否打开网站评论功能')), ('beiancode', models.CharField(blank=True, default='', max_length=2000, null=True, verbose_name='备案号')), ('analyticscode', models.TextField(default='', max_length=1000, verbose_name='网站统计代码')), ('gongan_beiancode', models.TextField(blank=True, default='', max_length=2000, null=True, verbose_name='公安备案号')), ], options={ 'verbose_name': '网站配置', 'verbose_name_plural': '网站配置', }, ), migrations.CreateModel( name='Category', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('created_time', models.DateTimeField(default=django.utils.timezone.now, verbose_name='创建时间')), ('last_mod_time', models.DateTimeField(default=django.utils.timezone.now, verbose_name='修改时间')), ('name', models.CharField(max_length=30, unique=True, verbose_name='分类名')), ('parent_category', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='blog.Category', verbose_name='父级分类')), ], options={ 'verbose_name': '分类', 'verbose_name_plural': '分类', 'ordering': ['name'], }, ), migrations.CreateModel( name='Comment', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('body', models.TextField(max_length=300, verbose_name='正文')), ('created_time', models.DateTimeField(default=django.utils.timezone.now, verbose_name='创建时间')), ('last_mod_time', models.DateTimeField(default=django.utils.timezone.now, verbose_name='修改时间')), ('is_enable', models.BooleanField(default=True, verbose_name='是否显示')), ('article', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='blog.Article', verbose_name='文章')), ('author', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL, verbose_name='作者')), ('parent_comment', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='blog.Comment', verbose_name='上级评论')), ], options={ 'verbose_name': '评论', 'verbose_name_plural': '评论', 'ordering': ['created_time'], 'get_latest_by': 'created_time', }, ), migrations.CreateModel( name='Links', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=30, unique=True, verbose_name='链接名称')), ('link', models.URLField(verbose_name='链接地址')), ('sequence', models.IntegerField(unique=True, verbose_name='排序')), ('created_time', models.DateTimeField(default=django.utils.timezone.now, verbose_name='创建时间')), ('last_mod_time', models.DateTimeField(default=django.utils.timezone.now, verbose_name='修改时间')), ], options={ 'verbose_name': '友情链接', 'verbose_name_plural': '友情链接', 'ordering': ['sequence'], }, ), migrations.CreateModel( name='SideBar', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=100, verbose_name='标题')), ('content', models.TextField(verbose_name='内容')), ('sequence', models.IntegerField(unique=True, verbose_name='排序')), ('is_enable', models.BooleanField(default=True, verbose_name='是否启用')), ('created_time', models.DateTimeField(default=django.utils.timezone.now, verbose_name='创建时间')), ('last_mod_time', models.DateTimeField(default=django.utils.timezone.now, verbose_name='修改时间')), ], options={ 'verbose_name': '侧边栏', 'verbose_name_plural': '侧边栏', 'ordering': ['sequence'], }, ), migrations.CreateModel( name='Tag', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('created_time', models.DateTimeField(default=django.utils.timezone.now, verbose_name='创建时间')), ('last_mod_time', models.DateTimeField(default=django.utils.timezone.now, verbose_name='修改时间')), ('name', models.CharField(max_length=30, unique=True, verbose_name='标签名')), ], options={ 'verbose_name': '标签', 'verbose_name_plural': '标签', 'ordering': ['name'], }, ), migrations.AddField( model_name='article', name='category', field=models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, to='blog.Category', verbose_name='分类'), ), migrations.AddField( model_name='article', name='tags', field=models.ManyToManyField(blank=True, to='blog.Tag', verbose_name='标签集合'), ), ]
class Migration(migrations.Migration): dependencies = [ ('blog', '0001_initial'), ] operations = [ migrations.CreateModel( name='Article', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('is_delete', models.BooleanField(default=False, verbose_name='是否删除')), ('created_time', models.DateTimeField(auto_now_add=True, verbose_name='创建时间')), ('updated_time', models.DateTimeField(auto_now=True, verbose_name='更新时间')), ('title', models.CharField(max_length=100, verbose_name='标题')), ('intro', models.CharField(max_length=255, verbose_name='简介')), ('vnum', models.IntegerField(default=0, verbose_name='浏览量')), ('cover', models.ImageField(upload_to='article/%Y/%m/%d', verbose_name='图片')), ('is_top', models.BooleanField(default=False, verbose_name='是否置顶')), ('content', DjangoUeditor.models.UEditorField()), ], options={ 'abstract': False, }, ), migrations.CreateModel( name='Banner', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('is_delete', models.BooleanField(default=False, verbose_name='是否删除')), ('created_time', models.DateTimeField(auto_now_add=True, verbose_name='创建时间')), ('updated_time', models.DateTimeField(auto_now=True, verbose_name='更新时间')), ('title', models.CharField(max_length=10, verbose_name='标题')), ('cover', models.ImageField(upload_to='banner/%Y/%m/%d', verbose_name='图片')), ('link', models.URLField(verbose_name='跳转地址')), ('position', models.IntegerField(default=0, verbose_name='排序')), ], options={ 'abstract': False, }, ), migrations.CreateModel( name='Category', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('is_delete', models.BooleanField(default=False, verbose_name='是否删除')), ('created_time', models.DateTimeField(auto_now_add=True, verbose_name='创建时间')), ('updated_time', models.DateTimeField(auto_now=True, verbose_name='更新时间')), ('name', models.CharField(max_length=10, verbose_name='标题')), ('position', models.IntegerField(default=0, verbose_name='排序')), ], options={ 'abstract': False, }, ), migrations.CreateModel( name='Comment', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('is_delete', models.BooleanField(default=False, verbose_name='是否删除')), ('created_time', models.DateTimeField(auto_now_add=True, verbose_name='创建时间')), ('updated_time', models.DateTimeField(auto_now=True, verbose_name='更新时间')), ('content', models.CharField(max_length=255, verbose_name='评论内容')), ('article', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='blog.Article')), ('users', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], options={ 'abstract': False, }, ), migrations.CreateModel( name='FriendLink', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('is_delete', models.BooleanField(default=False, verbose_name='是否删除')), ('created_time', models.DateTimeField(auto_now_add=True, verbose_name='创建时间')), ('updated_time', models.DateTimeField(auto_now=True, verbose_name='更新时间')), ('name', models.CharField(max_length=255, verbose_name='友情链接')), ('link', models.URLField(verbose_name='跳转地址')), ('position', models.IntegerField(default=0, verbose_name='排序')), ], options={ 'abstract': False, }, ), migrations.CreateModel( name='Tag', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('is_delete', models.BooleanField(default=False, verbose_name='是否删除')), ('created_time', models.DateTimeField(auto_now_add=True, verbose_name='创建时间')), ('updated_time', models.DateTimeField(auto_now=True, verbose_name='更新时间')), ('name', models.CharField(max_length=10, verbose_name='标题')), ('position', models.IntegerField(default=0, verbose_name='排序')), ], options={ 'abstract': False, }, ), migrations.AddField( model_name='article', name='category', field=models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, to='blog.Category'), ), migrations.AddField( model_name='article', name='tag', field=models.ManyToManyField(to='blog.Tag'), ), migrations.AddField( model_name='article', name='user', field=models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL), ), ]
class Migration(migrations.Migration): initial = True dependencies = [ ('auth', '0008_alter_user_username_max_length'), ] operations = [ migrations.CreateModel( name='MyUser', 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')), ('number_id', models.CharField(error_messages={'unique': '该学工号已经注册!请检查!'}, help_text='请输入正确的学工号用于系统登录', max_length=15, unique=True, validators=[ django.contrib.auth.validators. UnicodeUsernameValidator() ], verbose_name='学工号')), ('name', models.CharField(max_length=50, verbose_name='姓名')), ], options={ 'verbose_name': '用户', 'verbose_name_plural': '用户', 'ordering': ['number_id'], }, ), migrations.CreateModel( name='ArticleCategory', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('category_name', models.CharField(max_length=50, verbose_name='栏目二级分类名称')), ], options={ 'verbose_name': '栏目二级分类', 'verbose_name_plural': '栏目二级分类', }, ), migrations.CreateModel( name='ArticleColumn', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('column_name', models.CharField(max_length=50, verbose_name='栏目名称')), ], options={ 'verbose_name': '文章栏目', 'verbose_name_plural': '文章栏目', }, ), migrations.CreateModel( name='BaseArticle', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('heading', models.CharField(max_length=50, verbose_name='标题')), ('subheading', models.CharField(blank=True, default='', max_length=50, verbose_name='副标题')), ('author', models.CharField(choices=[('0', '我自己'), ('1', '匿名'), ('2', '未知')], default='0', max_length=15, verbose_name='作者')), ('source', models.CharField(choices=[('0', '本站原创'), ('1', '转载'), ('2', '未知'), ('3', '来自网络')], default='0', max_length=15, verbose_name='来源')), ('open_jmp_url', models.BooleanField(default=False, verbose_name='启用转向链接')), ('jmp_url', models.URLField(blank=True, default='', verbose_name='转向链接')), ('content', DjangoUeditor.models.UEditorField(blank=True, default='', verbose_name='正文')), ('index_img', models.BooleanField(default=True, verbose_name='从本文获取首页图片')), ('index_img_url', models.CharField(blank=True, default='', max_length=200, verbose_name='首页图片地址')), ('article_top', models.BooleanField(default=False, verbose_name='置顶文章')), ('article_hot', models.BooleanField(default=False, verbose_name='热门文章')), ('c_time', models.DateField(auto_now_add=True, verbose_name='录入时间')), ], options={ 'verbose_name': '文章', 'verbose_name_plural': '文章', 'ordering': ['-c_time', 'article_top', 'article_hot'], }, ), migrations.CreateModel( name='Carousel', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('pic', models.ImageField(upload_to='index-img', verbose_name='图片(规格: 1190*398)')), ('headline', models.CharField(blank=True, default='', max_length=80, verbose_name='标题')), ('display_level', models.IntegerField(default=1, verbose_name='显示顺序')), ], options={ 'verbose_name': '首页轮播图', 'verbose_name_plural': '首页轮播图', 'ordering': ['display_level'], }, ), migrations.CreateModel( name='Connection', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('display_level', models.IntegerField(verbose_name='显示等级')), ('job_tile', models.CharField(blank=True, default='', max_length=100, verbose_name='职务')), ('job', models.CharField(blank=True, default='', max_length=100, verbose_name='职责')), ('phone', models.CharField(blank=True, default='', max_length=100, verbose_name='电话')), ('email', models.EmailField(blank=True, default='', max_length=254, verbose_name='Email')), ], options={ 'verbose_name': '职责关系', 'verbose_name_plural': '职责关系', 'ordering': ['group_fk', 'display_level'], }, ), migrations.CreateModel( name='Group', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=20, unique=True, verbose_name='组织名字')), ('type', models.CharField(choices=[('0', '组织'), ('1', '社团'), ('2', '实验室'), ('3', '其他')], default=0, max_length=10, verbose_name='组织类型')), ('pic', models.ImageField(blank=True, upload_to='org-img', verbose_name='组织图片')), ('link_url', models.URLField(blank=True, default='', verbose_name='组织网址')), ], options={ 'verbose_name': '组织', 'verbose_name_plural': '组织', }, ), migrations.CreateModel( name='HZBX', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('heading', models.CharField(max_length=50, verbose_name='标题')), ('content', DjangoUeditor.models.UEditorField(blank=True, default='', verbose_name='正文')), ('c_time', models.DateTimeField(auto_now_add=True, verbose_name='录入时间')), ('publisher', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL, verbose_name='发表人')), ], options={ 'verbose_name': '合作办学', 'verbose_name_plural': '合作办学', }, ), migrations.CreateModel( name='Introduce', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('department', models.CharField(choices=[('0', '学院'), ('1', '物理系'), ('2', '电子工程系'), ('3', '计算机科学与技术系'), ('4', '海洋技术系'), ('5', '信息工程系'), ('6', '物理学'), ('7', '光信息科学与技术'), ('8', '电子信息科学与技术'), ('9', '电子信息工程'), ('10', '通信工程'), ('11', '计算机科学与技术'), ('12', '海洋技术')], default=0, help_text='院系介绍选择结尾为系,专业介绍结尾无系', max_length=20, verbose_name='院系专业')), ('content', DjangoUeditor.models.UEditorField(blank=True, default='', verbose_name='正文')), ], options={ 'verbose_name': '院系、专业介绍', 'verbose_name_plural': '院系、专业介绍', 'ordering': ['department'], }, ), migrations.CreateModel( name='IPRecord', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('ip_addr', models.GenericIPAddressField(verbose_name='IP地址')), ('time', models.DateTimeField(auto_now=True, verbose_name='登录时间')), ('user_fk', models.ForeignKey( null=True, on_delete=django.db.models.deletion.SET_NULL, to=settings.AUTH_USER_MODEL, verbose_name='管理员')), ], options={ 'verbose_name': '登录记录', 'verbose_name_plural': '登录记录', 'ordering': ['-time'], }, ), migrations.CreateModel( name='Profile', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('pic', models.ImageField(blank=True, upload_to='user-head', verbose_name='上传照片')), ('birthday', models.DateField(verbose_name='生日')), ('politics_status', models.CharField(blank=True, default='', max_length=20, verbose_name='政治面貌')), ('education', models.CharField(blank=True, default='', max_length=50, verbose_name='学历')), ('mobile_phone', models.CharField(blank=True, default='', max_length=15, verbose_name='移动电话')), ('office_phone', models.CharField(blank=True, default='', max_length=15, verbose_name='办公电话')), ('email', models.EmailField(blank=True, default='', max_length=254, verbose_name='Email')), ('workplace', models.CharField(blank=True, default='', max_length=50, verbose_name='办公室')), ('address', models.CharField(blank=True, default='', max_length=80, verbose_name='通信地址')), ('job_title', models.CharField(choices=[('0', '教授'), ('1', '副教授'), ('2', '高级工程师'), ('3', '高级实验师'), ('4', '讲师'), ('5', '助理工程师'), ('6', '助理实验师'), ('7', '其他')], default=0, max_length=10, verbose_name='职称')), ('job', models.CharField(choices=[('0', '院长'), ('1', '副院长'), ('2', '系主任'), ('3', '副系主任'), ('4', '其他')], default=0, max_length=10, verbose_name='职务')), ('tutor', models.CharField(choices=[('0', '博士生导师'), ('1', '硕士生导师'), ('2', '其他')], default=0, max_length=10, verbose_name='导师')), ('department', models.CharField(choices=[('0', '物理系'), ('1', '电子工程系'), ('2', '计算机科学与技术系'), ('3', '海洋技术系'), ('4', '信息工程中心'), ('5', '行政人员')], default=0, max_length=15, verbose_name='单位')), ('course', it.models.NormalTextField(blank=True, default='', verbose_name='教授课程')), ('experience', it.models.NormalTextField(blank=True, default='', verbose_name='教育及工作经历')), ('research_direction', it.models.NormalTextField(blank=True, default='', verbose_name='研究方向')), ('research_project', it.models.NormalTextField(blank=True, default='', verbose_name='科研项目')), ('achievements', it.models.NormalTextField(blank=True, default='', verbose_name='学术成果')), ('paper', it.models.NormalTextField(blank=True, default='', verbose_name='论文专利')), ('enrolment', it.models.NormalTextField(blank=True, default='', verbose_name='研究生招生条件')), ('remark', it.models.NormalTextField(blank=True, default='', verbose_name='备注')), ('user_fk', models.OneToOneField( on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL, verbose_name='用户')), ], options={ 'verbose_name': '用户详细信息', 'verbose_name_plural': '用户详细信息', }, ), migrations.CreateModel( name='Teach_Course', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('course_name', models.CharField(max_length=50, verbose_name='课程名称')), ('department', models.CharField(choices=[('0', '物理系'), ('1', '电子工程系'), ('2', '计算机科学与技术系'), ('3', '海洋技术系')], default=0, max_length=20, verbose_name='开课院系')), ('major', models.CharField(choices=[('0', '物理学'), ('1', '光信息科学与技术'), ('2', '电子信息科学与技术'), ('3', '电子信息工程'), ('4', '通信工程'), ('5', '计算机科学与技术'), ('6', '海洋技术')], default=0, max_length=20, verbose_name='所属专业')), ('course_type', models.CharField(choices=[('0', '无实验理论课或纯试验课程'), ('1', '含实验理论课'), ('2', '课程设计(或以周为教学单位的试验课)')], default=0, max_length=30, verbose_name='课程类型')), ('course_id', models.CharField(max_length=30, verbose_name='课程编号')), ('course_name_english', models.CharField(max_length=100, verbose_name='课程英文名称')), ('course_hours', models.SmallIntegerField(verbose_name='课程总学时')), ('course_credit', models.FloatField(verbose_name='课程总学分')), ('experiment_hours', models.SmallIntegerField(verbose_name='含实验或实践学时')), ('experiment_credit', models.FloatField(verbose_name='含实验或实践学分')), ('recommend_book', models.CharField(blank=True, default='', max_length=200, verbose_name='推荐使用教材')), ('recommend_book_author', models.CharField(blank=True, default='', max_length=200, verbose_name='推荐使用教材编者')), ('recommend_book_publisher', models.CharField(blank=True, default='', max_length=200, verbose_name='推荐使用教材出版社')), ('recommend_book_time_version', models.CharField(blank=True, default='', max_length=200, verbose_name='推荐使用教材出版时间及版次')), ('course_object', it.models.NormalTextField(blank=True, default='', verbose_name='课程教学目标与基本要求')), ('quiz_type', models.CharField(max_length=20, verbose_name='考试形式')), ('referance_book', it.models.NormalTextField(blank=True, default='', verbose_name='学习参考书')), ('additional_file', models.FileField(blank=True, upload_to='course-file', verbose_name='上传更多信息')), ], options={ 'verbose_name': '课程列表', 'verbose_name_plural': '课程列表', }, ), migrations.CreateModel( name='Teach_Plan', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('major', models.CharField(choices=[('0', '物理学'), ('1', '光信息科学与技术'), ('2', '电子信息科学与技术'), ('3', '电子信息工程'), ('4', '电子信息工程中法卓越班'), ('5', '通信工程'), ('6', '计算机科学与技术'), ('7', '海洋技术')], default='0', max_length=20, verbose_name='专业')), ('u_time', models.DateField(auto_now=True, verbose_name='上传时间')), ('file', models.FileField(blank=True, upload_to='teach-plan', verbose_name='替换上传')), ], options={ 'verbose_name': '培养计划', 'verbose_name_plural': '培养计划', 'ordering': ['major'], }, ), migrations.CreateModel( name='News', fields=[ ('basearticle_ptr', models.OneToOneField( auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='it.BaseArticle')), ('is_official', models.BooleanField(default=True, verbose_name='学院官方')), ], options={ 'verbose_name': '学院新闻', 'verbose_name_plural': '学院新闻', }, bases=('it.basearticle', ), ), migrations.CreateModel( name='XSBG', fields=[ ('basearticle_ptr', models.OneToOneField( auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='it.BaseArticle')), ('meeting_place', models.CharField(max_length=100, verbose_name='举办地点')), ('meeting_time', models.DateTimeField(verbose_name='举办时间')), ], options={ 'verbose_name': '学术报告', 'verbose_name_plural': '学术报告', }, bases=('it.basearticle', ), ), migrations.AddField( model_name='connection', name='group_fk', field=models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, to='it.Group', verbose_name='组织'), ), migrations.AddField( model_name='connection', name='users_fk', field=models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL, verbose_name='组员'), ), migrations.AddField( model_name='basearticle', name='category', field=models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, to='it.ArticleCategory', verbose_name='栏目分类'), ), migrations.AddField( model_name='basearticle', name='column', field=models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, to='it.ArticleColumn', verbose_name='文章发表栏目'), ), migrations.AddField( model_name='basearticle', name='publisher', field=models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL, verbose_name='发表人'), ), migrations.AddField( model_name='articlecategory', name='belong_column', field=models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, related_name='category', to='it.ArticleColumn'), ), migrations.AddField( model_name='myuser', 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='myuser', 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='connection', unique_together=set([('group_fk', 'users_fk')]), ), ]
class Migration(migrations.Migration): initial = True dependencies = [ ('org', '0001_initial'), ] operations = [ migrations.CreateModel( name='Course', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=50, verbose_name='课程名')), ('desc', models.TextField(verbose_name='课程描述')), ('level', models.CharField(choices=[('primary', '初级'), ('middle', '中级'), ('advanced', '高级')], default='primary', max_length=20)), ('detail', DjangoUeditor.models.UEditorField(default='', verbose_name='课程详情')), ('learn_times', models.IntegerField(default=0, verbose_name='学习时长(分钟数)')), ('cover', models.ImageField(default='course/cover/default.png', upload_to='course/cover/%Y/%m', verbose_name='课程封面')), ('tag', models.CharField(default='', max_length=20, verbose_name='课程标签')), ('tips', models.CharField(default='', max_length=300, verbose_name='课程须知')), ('tell_you', models.CharField(default='', max_length=300, verbose_name='老师告诉你')), ('is_banner', models.BooleanField(default=False, verbose_name='是否轮播')), ('click_nums', models.IntegerField(default=0, verbose_name='点击量')), ('stu_nums', models.IntegerField(default=0, verbose_name='学习人数')), ('fav_nums', models.IntegerField(default=0, verbose_name='收藏人数')), ('add_time', models.DateTimeField(auto_now_add=True, verbose_name='添加时间')), ], options={ 'verbose_name': '课程', 'verbose_name_plural': '课程', }, ), migrations.CreateModel( name='CourseCategory', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=20, verbose_name='课程类别')), ('index', models.SmallIntegerField(default=100, verbose_name='类别排序')), ], options={ 'verbose_name': '课程类别', 'verbose_name_plural': '课程类别', }, ), migrations.CreateModel( name='Lesson', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=100, verbose_name='章节名')), ('add_time', models.DateTimeField(auto_now_add=True, verbose_name='添加时间')), ('course', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='course.Course', verbose_name='所属课程')), ], options={ 'verbose_name': '章节', 'verbose_name_plural': '章节', }, ), migrations.CreateModel( name='Resource', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=100, verbose_name='资源名称')), ('download', models.FileField(upload_to='course/resource/%Y/%m', verbose_name='资源文件')), ('add_time', models.DateTimeField(auto_now_add=True, verbose_name='添加时间')), ('course', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='course.Course', verbose_name='所属课程')), ], options={ 'verbose_name': '课程资源', 'verbose_name_plural': '课程资源', }, ), migrations.CreateModel( name='Video', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=100, verbose_name='视频名称')), ('url', models.URLField(default='', unique=True, verbose_name='访问地址')), ('add_time', models.DateTimeField(auto_now_add=True, verbose_name='添加时间')), ('lesson', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='course.Lesson', verbose_name='所属章节')), ], options={ 'verbose_name': '视频', 'verbose_name_plural': '视频', }, ), migrations.AddField( model_name='course', name='category', field=models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, to='course.CourseCategory', verbose_name='课程类别'), ), migrations.AddField( model_name='course', name='org', field=models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, to='org.Org', verbose_name='所属机构'), ), migrations.AddField( model_name='course', name='teacher', field=models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, to='org.Teacher', verbose_name='所属教师'), ), ]
class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] 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=70, verbose_name='标题')), ('excerpt', models.TextField(blank=True, max_length=200, verbose_name='摘要')), ('img', models.ImageField(blank=True, null=True, upload_to='article_img/%Y/%m/%d/', verbose_name='文章图片')), ('body', DjangoUeditor.models.UEditorField(blank=True, verbose_name='内容')), ('views', models.PositiveIntegerField(default=0, verbose_name='阅读量')), ('created_time', models.DateTimeField(auto_now_add=True, verbose_name='发布时间')), ('modified_time', models.DateTimeField(auto_now=True, verbose_name='修改时间')), ], ), migrations.CreateModel( name='Banner', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('text_info', models.CharField(default='', max_length=50, verbose_name='标题')), ('img', models.ImageField(upload_to='banner/', verbose_name='轮播图')), ('link_url', models.URLField(max_length=100, verbose_name='图片链接')), ('is_active', models.BooleanField(default=False, verbose_name='是否是active')), ], options={ 'verbose_name': '轮播图', 'verbose_name_plural': '轮播图', }, ), migrations.CreateModel( name='Category', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=100, verbose_name='博客分类')), ('index', models.IntegerField(default=999, verbose_name='分类排序')), ], options={ 'verbose_name': '博客分类', 'verbose_name_plural': '博客分类', }, ), migrations.CreateModel( name='Link', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=20, verbose_name='链接名称')), ('linkurl', models.URLField(max_length=100, verbose_name='网址')), ], options={ 'verbose_name': '友情链接', 'verbose_name_plural': '友情链接', }, ), migrations.CreateModel( name='Tag', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=100, verbose_name='文章标签')), ], options={ 'verbose_name': '文章标签', 'verbose_name_plural': '文章标签', }, ), migrations.CreateModel( name='Tui', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=100, verbose_name='推荐位')), ], options={ 'verbose_name': '推荐位', 'verbose_name_plural': '推荐位', }, ), migrations.AddField( model_name='article', name='category', field=models.ForeignKey( blank=True, null=True, on_delete=django.db.models.deletion.DO_NOTHING, to='blog.Category', verbose_name='分类'), ), migrations.AddField( model_name='article', name='tags', field=models.ManyToManyField(blank=True, to='blog.Tag', verbose_name='标签'), ), migrations.AddField( model_name='article', name='tui', field=models.ForeignKey( blank=True, null=True, on_delete=django.db.models.deletion.DO_NOTHING, to='blog.Tui', verbose_name='推荐位'), ), migrations.AddField( model_name='article', name='user', field=models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL, verbose_name='作者'), ), ]
class Migration(migrations.Migration): initial = True dependencies = [ ('organization', '0001_initial'), ] operations = [ migrations.CreateModel( name='Course', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=50, verbose_name='课程名称')), ('desc', models.CharField(max_length=300, verbose_name='课程描述')), ('detail', DjangoUeditor.models.UEditorField(blank=True, default='', verbose_name='课程详情')), ('is_tg', models.BooleanField(default=False, verbose_name='课程首页推广')), ('degree', models.CharField(choices=[('cj', '初级'), ('zj', '中级'), ('gj', '高级')], default='zj', max_length=5, verbose_name='视频级别')), ('learn_times', models.IntegerField(default=0, verbose_name='学习时长')), ('students', models.IntegerField(default=0, verbose_name='学习人数')), ('fav_nums', models.IntegerField(default=0, verbose_name='收藏人数')), ('category', models.CharField(blank=True, max_length=50, null=True, verbose_name='课程类别')), ('image', models.ImageField(blank=True, null=True, upload_to='courses/%Y/%m', verbose_name='封面图片')), ('click_nums', models.IntegerField(default=0, verbose_name='点击人数')), ('tag', models.CharField(blank=True, default='Python开发', max_length=20, null=True, verbose_name='课程标签')), ('kcxz', models.CharField(blank=True, max_length=50, null=True, verbose_name='课程须知')), ('xdaoshenm', models.CharField(blank=True, max_length=100, null=True, verbose_name='能学到什么?')), ('add_time', models.DateTimeField(default=datetime.datetime.now, verbose_name='添加时间')), ('course_org', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='organization.CourseOrg', verbose_name='课程机构')), ('kcjs_org', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='organization.Teacher', verbose_name='课程讲师')), ], options={ 'verbose_name': '课程详情', 'verbose_name_plural': '课程详情', 'db_table': 'Course', }, ), migrations.CreateModel( name='CourseResource', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=50, verbose_name='附件名称')), ('download', models.FileField(max_length=150, upload_to='course/resource/%Y/%m', verbose_name='资源文件')), ('add_time', models.DateTimeField(default=datetime.datetime.now, verbose_name='添加时间')), ('course', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='courses.Course', verbose_name='课程名称')), ], options={ 'verbose_name': '课程附件', 'verbose_name_plural': '课程附件', 'db_table': 'CourseResource', }, ), migrations.CreateModel( name='Lesson', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=120, verbose_name='章节名称')), ('add_time', models.DateTimeField(default=datetime.datetime.now, verbose_name='添加时间')), ('course', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='courses.Course', verbose_name='课程名称')), ], options={ 'verbose_name': '课程章节', 'verbose_name_plural': '课程章节', 'db_table': 'Lesson', }, ), migrations.CreateModel( name='Video', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=120, verbose_name='视频名称')), ('video_url', models.URLField(blank=True, null=True, verbose_name='视频资源地址')), ('video_time', models.IntegerField(blank=True, null=True, verbose_name='视频时长')), ('add_time', models.DateTimeField(default=datetime.datetime.now, verbose_name='更新时间')), ('lesson', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='courses.Lesson', verbose_name='章节名称')), ], options={ 'verbose_name': '视频资源', 'verbose_name_plural': '视频资源', 'db_table': 'Video', }, ), migrations.CreateModel( name='BannerCourse', fields=[], options={ 'verbose_name': '轮播课程', 'verbose_name_plural': '轮播课程', 'proxy': True, 'indexes': [], }, bases=('courses.course', ), ), ]
class Migration(migrations.Migration): initial = True dependencies = [] operations = [ migrations.CreateModel( name='Goods', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('create_time', models.DateTimeField(auto_now_add=True, verbose_name='创建时间')), ('update_time', models.DateTimeField(auto_now=True, verbose_name='更新时间')), ('is_delete', models.BooleanField(default=False, verbose_name='删除标记')), ('name', models.CharField(max_length=20, verbose_name='商品SPU名称')), ('detail', DjangoUeditor.models.UEditorField(blank=True, default='', verbose_name='商品详情')), ], options={ 'verbose_name': '商品SPU', 'verbose_name_plural': '商品SPU', 'db_table': 'df_goods', }, ), migrations.CreateModel( name='GoodsImage', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('create_time', models.DateTimeField(auto_now_add=True, verbose_name='创建时间')), ('update_time', models.DateTimeField(auto_now=True, verbose_name='更新时间')), ('is_delete', models.BooleanField(default=False, verbose_name='删除标记')), ('image', models.ImageField(upload_to='goods', verbose_name='图片路径')), ], options={ 'verbose_name': '商品图片', 'verbose_name_plural': '商品图片', 'db_table': 'df_goods_image', }, ), migrations.CreateModel( name='GoodsSKU', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('create_time', models.DateTimeField(auto_now_add=True, verbose_name='创建时间')), ('update_time', models.DateTimeField(auto_now=True, verbose_name='更新时间')), ('is_delete', models.BooleanField(default=False, verbose_name='删除标记')), ('name', models.CharField(max_length=20, verbose_name='商品名称')), ('desc', models.CharField(max_length=256, verbose_name='商品简介')), ('price', models.DecimalField(decimal_places=2, max_digits=10, verbose_name='价格')), ('unite', models.CharField(max_length=20, verbose_name='商品单位')), ('image', models.ImageField(upload_to='goods', verbose_name='商品图片')), ('stock', models.IntegerField(default=1, verbose_name='商品库存')), ('sales', models.IntegerField(default=0, verbose_name='商品销量')), ('status', models.SmallIntegerField(choices=[(0, '下线'), (1, '上线')], default=1, verbose_name='状态')), ('goods', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='goods.Goods', verbose_name='商品SPU')), ], options={ 'verbose_name': '商品', 'verbose_name_plural': '商品', 'db_table': 'df_goods_sku', }, ), migrations.CreateModel( name='GoodsType', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('create_time', models.DateTimeField(auto_now_add=True, verbose_name='创建时间')), ('update_time', models.DateTimeField(auto_now=True, verbose_name='更新时间')), ('is_delete', models.BooleanField(default=False, verbose_name='删除标记')), ('name', models.CharField(max_length=20, verbose_name='种类名称')), ('logo', models.CharField(max_length=20, verbose_name='标识')), ('image', models.ImageField(upload_to='type', verbose_name='商品类型图片')), ], options={ 'verbose_name': '商品种类', 'verbose_name_plural': '商品种类', 'db_table': 'df_goods_type', }, ), migrations.CreateModel( name='IndexGoodsBanner', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('create_time', models.DateTimeField(auto_now_add=True, verbose_name='创建时间')), ('update_time', models.DateTimeField(auto_now=True, verbose_name='更新时间')), ('is_delete', models.BooleanField(default=False, verbose_name='删除标记')), ('image', models.ImageField(upload_to='banner', verbose_name='图片')), ('index', models.SmallIntegerField(default=0, verbose_name='展示顺序')), ('sku', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='goods.GoodsSKU', verbose_name='商品')), ], options={ 'verbose_name': '首页轮播商品', 'verbose_name_plural': '首页轮播商品', 'db_table': 'df_index_banner', }, ), migrations.CreateModel( name='IndexPromotionBanner', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('create_time', models.DateTimeField(auto_now_add=True, verbose_name='创建时间')), ('update_time', models.DateTimeField(auto_now=True, verbose_name='更新时间')), ('is_delete', models.BooleanField(default=False, verbose_name='删除标记')), ('name', models.CharField(max_length=20, verbose_name='活动名称')), ('url', models.URLField(verbose_name='活动链接')), ('image', models.ImageField(upload_to='banner', verbose_name='活动图片')), ('index', models.SmallIntegerField(default=0, verbose_name='展示顺序')), ], options={ 'verbose_name': '主页促销活动', 'verbose_name_plural': '主页促销活动', 'db_table': 'df_index_promotion', }, ), migrations.CreateModel( name='IndexTypeGoodsBanner', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('create_time', models.DateTimeField(auto_now_add=True, verbose_name='创建时间')), ('update_time', models.DateTimeField(auto_now=True, verbose_name='更新时间')), ('is_delete', models.BooleanField(default=False, verbose_name='删除标记')), ('display_type', models.SmallIntegerField(choices=[(0, '标题'), (1, '图片')], default=1, verbose_name='展示类型')), ('index', models.SmallIntegerField(default=1, verbose_name='展示顺序')), ('sku', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='goods.GoodsSKU', verbose_name='商品SKU')), ('type', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='goods.GoodsType', verbose_name='商品类型')), ], options={ 'verbose_name': '主页分类展示商品', 'verbose_name_plural': '主页分类展示商品', 'db_table': 'df_index_type_goods', }, ), migrations.AddField( model_name='goodssku', name='type', field=models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, to='goods.GoodsType', verbose_name='商品种类'), ), migrations.AddField( model_name='goodsimage', name='sku', field=models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, to='goods.GoodsSKU', verbose_name='商品'), ), ]
class Migration(migrations.Migration): dependencies = [ ('users', '0001_initial'), ] operations = [ migrations.CreateModel( name='Banner', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('title', models.CharField(max_length=100, verbose_name='标题')), ('image', models.ImageField(upload_to='banner/%Y%m', verbose_name='轮播图')), ('url', models.URLField(verbose_name='访问地址')), ('index', models.IntegerField(default=100, verbose_name='顺序')), ('add_time', models.DateTimeField(default=datetime.datetime.now, verbose_name='添加时间')), ], options={ 'verbose_name': '轮播图', 'verbose_name_plural': '轮播图', }, ), migrations.CreateModel( name='EmailVerifyRecord', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('code', models.CharField(max_length=20, verbose_name='验证码')), ('email', models.EmailField(max_length=50, verbose_name='邮箱')), ('send_type', models.CharField(choices=[('register', '注册'), ('forget', '找回密码')], max_length=10)), ('send_time', models.DateTimeField(default=datetime.datetime.now)), ], options={ 'verbose_name': '邮箱验证码', 'verbose_name_plural': '邮箱验证码', }, ), migrations.RemoveField( model_name='userprofile', name='adress', ), migrations.AddField( model_name='userprofile', name='address', field=DjangoUeditor.models.UEditorField(default='', max_length=100, verbose_name='地址'), ), ]
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')), ('mobile', models.CharField(blank=True, max_length=11, null=True, verbose_name='\u624b\u673a')), ('birthday', models.DateField(blank=True, null=True, verbose_name='\u751f\u65e5')), ('gender', models.CharField(choices=[('male', '\u7537'), ('female', '\u5973')], default='male', max_length=10, verbose_name='\u6027\u522b')), ('image', models.ImageField(blank=True, null=True, upload_to='users/%Y/%m', verbose_name='\u56fe\u7247')), ('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': '\u7528\u6237', 'verbose_name_plural': '\u7528\u6237', }, managers=[ ('objects', django.contrib.auth.models.UserManager()), ], ), migrations.CreateModel( name='Author', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=50, verbose_name='\u59d3\u540d')), ('image', models.ImageField(upload_to='author/%Y/%m', verbose_name='\u5934\u50cf')), ('position', models.CharField(max_length=50, verbose_name='\u804c\u4f4d')), ], options={ 'verbose_name': '\u53d1\u5e03\u4eba', 'verbose_name_plural': '\u53d1\u5e03\u4eba', }, ), migrations.CreateModel( name='Imagecount', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('imageName', models.CharField(max_length=50, verbose_name='\u56fe\u7247')), ('imageHome', models.ImageField(upload_to='imagecount/%Y/%m', verbose_name='\u8f6e\u64ad\u56fe')), ('imageHomeSmall', models.ImageField(upload_to='imagecount/%Y/%m', verbose_name='\u5c0f\u8f6e\u64ad\u56fe')), ('imageRecommend', models.ImageField(upload_to='imagecount/%Y/%m', verbose_name='\u9762\u5305\u5c51')), ], options={ 'verbose_name': '\u56fe\u7247\u5408\u96c6', 'verbose_name_plural': '\u56fe\u7247\u5408\u96c6', }, ), migrations.CreateModel( name='Interview', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('title', models.CharField(max_length=50, verbose_name='\u6807\u9898')), ('salary', models.CharField(choices=[('s1', '2k\u4ee5\u4e0b'), ('s2', '2k-5k'), ('s3', '5k-10k'), ('s4', '10k-15k'), ('s5', '15k-25k'), ('s6', '25k-50k'), ('s7', '50k\u4ee5\u4e0a')], default='s3', max_length=20, verbose_name='\u85aa\u8d44')), ('education', models.CharField(choices=[('e1', '\u4e0d\u9650'), ('e2', '\u4e2d\u4e13\u53ca\u4ee5\u4e0b'), ('e3', '\u9ad8\u4e2d'), ('e4', '\u5927\u4e13'), ('e5', '\u672c\u79d1'), ('e6', '\u7855\u58eb'), ('e7', '\u535a\u58eb')], default='e5', max_length=20, verbose_name='\u5b66\u5386')), ('desc', models.CharField(max_length=20, verbose_name='\u804c\u4f4d\u63cf\u8ff0')), ('content', DjangoUeditor.models.UEditorField(default='', verbose_name='\u5185\u5bb9')), ('workType', models.CharField(choices=[('w1', '\u4e0d\u9650'), ('w2', '\u5168\u804c'), ('w3', '\u517c\u804c'), ('w4', '\u5b9e\u4e60')], default='w1', max_length=20, verbose_name='\u5de5\u4f5c\u6027\u8d28')), ('image', models.ImageField(upload_to='interview/%Y/%m', verbose_name='\u5c01\u9762')), ('company', models.CharField(max_length=50, verbose_name='\u516c\u53f8')), ('yearsRequire', models.CharField(choices=[('y1', '\u4e0d\u9650'), ('y2', '\u5e94\u5c4a\u751f'), ('y3', '1\u5e74\u4ee5\u5185'), ('y4', '1-3\u5e74'), ('y5', '3-5\u5e74'), ('y6', '5-10\u5e74'), ('y7', '10\u5e74\u4ee5\u4e0a')], default='y1', max_length=20, verbose_name='\u5de5\u4f5c\u7ecf\u9a8c')), ('trade', models.CharField(choices=[('t1', '\u6280\u672f'), ('t2', '\u4ea7\u54c1'), ('t3', '\u8bbe\u8ba1'), ('t4', '\u8fd0\u8425'), ('t5', '\u5e02\u573a\u9500\u552e'), ('t6', '\u804c\u80fd'), ('t7', '\u91d1\u878d'), ('t8', '\u6587\u6848\u516c\u5173'), ('t9', '\u6559\u5e08'), ('t10', '\u6821\u62db')], default='t1', max_length=10, verbose_name='\u884c\u4e1a')), ('domain', models.CharField(max_length=20, verbose_name='\u516c\u53f8\u9886\u57df')), ('scale', models.CharField(choices=[('s1', '\u4e0d\u9650'), ('s2', '0-19\u4eba'), ('s3', '20-99\u4eba'), ('s4', '100-499\u4eba'), ('s5', '500-999\u4eba'), ('s6', '1000-9999'), ('s6', '10000\u4ee5\u4e0a')], default='s1', max_length=20, verbose_name='\u516c\u53f8\u89c4\u6a21')), ('moment', models.CharField(choices=[('m1', '\u4e0d\u9650'), ('m2', '\u672a\u878d\u8d44'), ('m3', '\u5929\u4f7f\u8f6e'), ('m4', 'A\u8f6e'), ('m5', 'B\u8f6e'), ('m6', 'C\u8f6e'), ('m7', 'D\u8f6e'), ('m8', 'D\u8f6e\u4ee5\u4e0a'), ('m9', '\u5df2\u4e0a\u5e02'), ('m10', '\u4e0d\u9700\u8981\u878d\u8d44')], default='m1', max_length=20, verbose_name='\u76ee\u524d\u516c\u53f8\u9636\u6bb5')), ('companyHome', models.URLField(max_length=100, verbose_name='\u516c\u53f8\u9996\u9875')), ('welfare1', models.CharField(blank=True, max_length=10, null=True, verbose_name='\u516c\u53f8\u798f\u52291')), ('welfare2', models.CharField(blank=True, max_length=10, null=True, verbose_name='\u516c\u53f8\u798f\u52292')), ('welfare3', models.CharField(blank=True, max_length=10, null=True, verbose_name='\u516c\u53f8\u798f\u52293')), ('location', models.CharField(choices=[('l1', '\u5317\u4eac'), ('l2', '\u4e0a\u6d77'), ('l3', '\u5929\u6d25'), ('l4', '\u5e7f\u5dde'), ('l5', '\u676d\u5dde'), ('l6', '\u6df1\u5733'), ('l7', '\u5176\u4ed6')], default='l1', max_length=10, verbose_name='\u5de5\u4f5c\u5730\u533a')), ('map', models.URLField(max_length=100, verbose_name='\u5de5\u4f5c\u5730\u56fe')), ('pub_time', models.DateTimeField(default=datetime.datetime.now, verbose_name='\u53d1\u5e03\u65f6\u95f4')), ('read_counts', models.IntegerField(default=0, verbose_name='\u9605\u8bfb\u6b21\u6570')), ('author', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='interview.Author', verbose_name='\u6240\u5c5e\u53d1\u5e03\u4eba')), ], options={ 'verbose_name': '\u8be6\u60c5', 'verbose_name_plural': '\u8be6\u60c5', }, ), ]
class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] operations = [ migrations.CreateModel( name='Activate', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('text', models.TextField(null=True, verbose_name='公告')), ('is_active', models.BooleanField(default=False, verbose_name='是否开启')), ('add_date', models.DateTimeField(auto_now_add=True, verbose_name='提交日期')), ], options={ 'verbose_name': '公告', 'verbose_name_plural': '公告', }, ), migrations.CreateModel( name='BigCategory', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=20, verbose_name='文章大分类')), ('slug', models.SlugField(unique=True)), ('description', models.TextField(default='ygy的个人网站,记录生活的瞬间,分享学习的心得,感悟生活,留住感动,静静寻觅生活的美好', help_text='用来作为SEO中description,长度参考SEO标准', max_length=240, verbose_name='描述')), ('keywords', models.TextField(default='ygy,ygy1997,归元,网络,IT,技术,博客,Python', help_text='用来作为SEO中keywords,长度参考SEO标准', max_length=240, verbose_name='关键字')), ], options={ 'verbose_name': '大分类', 'verbose_name_plural': '大分类', }, ), migrations.CreateModel( name='Carousel', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('number', models.IntegerField(help_text='编号决定图片播放的顺序,图片不要多于5张', verbose_name='编号')), ('title', models.CharField(blank=True, help_text='标题可以为空', max_length=20, null=True, verbose_name='标题')), ('content', models.CharField(max_length=80, verbose_name='描述')), ('img_url', models.CharField(max_length=200, verbose_name='图片地址')), ('url', models.CharField(default='#', help_text='图片跳转的超链接,默认#表示不跳转', max_length=200, verbose_name='跳转链接')), ], options={ 'verbose_name': '图片轮播', 'verbose_name_plural': '图片轮播', 'ordering': ['number', '-id'], }, ), migrations.CreateModel( name='FriendLink', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=50, verbose_name='网站名称')), ('description', models.CharField(blank=True, max_length=100, verbose_name='网站描述')), ('link', models.URLField(help_text='请填写http或https开头的完整形式地址', verbose_name='友链地址')), ('logo', models.URLField(blank=True, help_text='请填写http或https开头的完整形式地址', verbose_name='网站LOGO')), ('create_date', models.DateTimeField(auto_now_add=True, verbose_name='创建时间')), ('is_active', models.BooleanField(default=True, verbose_name='是否有效')), ('is_show', models.BooleanField(default=False, verbose_name='是否首页展示')), ], options={ 'verbose_name': '友情链接', 'verbose_name_plural': '友情链接', 'ordering': ['create_date'], }, ), migrations.CreateModel( name='Keyword', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=20, verbose_name='文章关键词')), ], options={ 'verbose_name': '关键词', 'verbose_name_plural': '关键词', 'ordering': ['name'], }, ), migrations.CreateModel( name='Tag', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=20, verbose_name='文章标签')), ('slug', models.SlugField(unique=True)), ('description', models.TextField(default='ygy的个人网站,记录生活的瞬间,分享学习的心得,感悟生活,留住感动,静静寻觅生活的美好', help_text='用来作为SEO中description,长度参考SEO标准', max_length=240, verbose_name='描述')), ], options={ 'verbose_name': '标签', 'verbose_name_plural': '标签', 'ordering': ['id'], }, ), migrations.CreateModel( name='Category', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=20, verbose_name='文章分类')), ('slug', models.SlugField(unique=True)), ('description', models.TextField(default='ygy的个人网站,记录生活的瞬间,分享学习的心得,感悟生活,留住感动,静静寻觅生活的美好', help_text='用来作为SEO中description,长度参考SEO标准', max_length=240, verbose_name='描述')), ('bigcategory', models.ForeignKey(on_delete=django.db.models.deletion.DO_NOTHING, to='ygy.BigCategory', verbose_name='大分类')), ], options={ 'verbose_name': '分类', 'verbose_name_plural': '分类', 'ordering': ['name'], }, ), migrations.CreateModel( name='Article', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('title', models.CharField(max_length=150, verbose_name='文章标题')), ('summary', models.TextField(default='文章摘要等同于网页description内容,请务必填写...', max_length=230, verbose_name='文章摘要')), ('body', DjangoUeditor.models.UEditorField(verbose_name='内容')), ('img_link', models.CharField(default='/static/images/summary.jpg', max_length=255, verbose_name='图片地址')), ('create_date', models.DateTimeField(auto_now_add=True, verbose_name='创建时间')), ('update_date', models.DateTimeField(auto_now=True, verbose_name='修改时间')), ('views', models.IntegerField(default=0, verbose_name='阅览量')), ('loves', models.IntegerField(default=0, verbose_name='喜爱量')), ('slug', models.SlugField(unique=True)), ('author', models.ForeignKey(on_delete=django.db.models.deletion.DO_NOTHING, to=settings.AUTH_USER_MODEL, verbose_name='作者')), ('category', models.ForeignKey(on_delete=django.db.models.deletion.DO_NOTHING, to='ygy.Category', verbose_name='文章分类')), ('keywords', models.ManyToManyField(help_text='文章关键词,用来作为SEO中keywords,最好使用长尾词,3-4个足够', to='ygy.Keyword', verbose_name='文章关键词')), ('tags', models.ManyToManyField(to='ygy.Tag', verbose_name='标签')), ], options={ 'verbose_name': '文章', 'verbose_name_plural': '文章', 'ordering': ['-create_date'], }, ), ]
class Migration(migrations.Migration): initial = True dependencies = [] operations = [ migrations.CreateModel( name='VideoInfo', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('title', models.CharField(default='', help_text='视频标题', max_length=50, verbose_name='视频标题')), ('front_img', models.ImageField(help_text='封面图', max_length=200, upload_to='images/video/front/', verbose_name='封面图')), ('video_desc', DjangoUeditor.models.UEditorField(blank=True, default='', help_text='视频描述', null=True, verbose_name='视频描述')), ('video_url', models.URLField(default='', help_text='视频链接', verbose_name='视频链接')), ('add_time', models.DateTimeField(default=datetime.datetime.now, help_text='添加时间', verbose_name='添加时间')), ], options={ 'verbose_name': '婚礼视频详情页', 'verbose_name_plural': '婚礼视频详情页', }, ), migrations.CreateModel( name='VideoLabel', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(default='婚礼视频', help_text='该大类名称', max_length=40, verbose_name='该大类名称')), ('label', models.CharField(default='', help_text='标签', max_length=40, verbose_name='标签')), ('desc', models.TextField(default='', help_text='描述', verbose_name='描述')), ('add_time', models.DateTimeField(default=datetime.datetime.now, verbose_name='添加时间')), ], options={ 'verbose_name': '婚礼视频', 'verbose_name_plural': '婚礼视频', }, ), ]
class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Banner', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('title', models.CharField(default='', max_length=50, verbose_name='标题')), ('image', models.ImageField(upload_to='banner', verbose_name='轮播图')), ('link_url', models.URLField(max_length=100, verbose_name='图片链接')), ('index', models.IntegerField(verbose_name='索引')), ('is_active', models.BooleanField(default=False, verbose_name='是否激活')), ], options={ 'verbose_name': '轮播图', 'verbose_name_plural': '轮播图', }, ), migrations.CreateModel( name='BlogCategory', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('category', models.CharField(default='', max_length=50, verbose_name='类别')), ], options={ 'verbose_name': '博客分类', 'verbose_name_plural': '博客分类', }, ), migrations.CreateModel( name='Comment', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('pub_date', models.DateTimeField(default=datetime.datetime.now, verbose_name='发布时间')), ('content', models.TextField(verbose_name='内容')), ], options={ 'verbose_name': '评论', 'verbose_name_plural': '评论', }, ), migrations.CreateModel( name='FriendlyLink', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('title', models.CharField(default='', max_length=50, verbose_name='标题')), ('url', models.URLField(default='', max_length=50, verbose_name='链接')), ], options={ 'verbose_name': '友情链接', 'verbose_name_plural': '友情链接', }, ), migrations.CreateModel( name='Post', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('title', models.CharField(default='', max_length=50, verbose_name='标题')), ('content', DjangoUeditor.models.UEditorField(verbose_name='内容')), ('pub_date', models.DateTimeField(default=datetime.datetime.now, verbose_name='发布时间')), ('cover', models.ImageField(upload_to='post/covers', verbose_name='博客封面')), ('visits', models.IntegerField(default=0, verbose_name='访问人数')), ('recommend', models.BooleanField(default=False, verbose_name='是否推荐')), ('category', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='blogs.BlogCategory', verbose_name='博客类型')), ], options={ 'verbose_name': '博客', 'verbose_name_plural': '博客', }, ), migrations.CreateModel( name='Tags', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(default='', max_length=30, verbose_name='标签')), ], options={ 'verbose_name': '标签', 'verbose_name_plural': '标签', }, ), migrations.AddField( model_name='post', name='tags', field=models.ManyToManyField(to='blogs.Tags', verbose_name='标签'), ), ]
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')), ('first_name', models.CharField(blank=True, max_length=30, verbose_name='first name')), ('last_name', models.CharField(blank=True, max_length=30, verbose_name='last name')), ('is_staff', models.BooleanField( default=False, help_text= 'Designates whether the user can log into this admin site.', verbose_name='staff status')), ('is_active', models.BooleanField( default=True, help_text= 'Designates whether this user should be treated as active. Unselect this instead of deleting accounts.', verbose_name='active')), ('date_joined', models.DateTimeField(default=django.utils.timezone.now, verbose_name='date joined')), ('avatar', models.ImageField(blank=True, max_length=200, null=True, upload_to='avatar/%Y/%m', verbose_name='用户头像')), ('username', models.CharField(max_length=100, unique=True, verbose_name='用户')), ('email', models.CharField(max_length=100, 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': '用户', 'verbose_name_plural': '用户', }, managers=[ ('objects', django.contrib.auth.models.UserManager()), ], ), migrations.CreateModel( name='Article', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('title', models.CharField(max_length=50, verbose_name='文章标题')), ('desc', models.CharField(max_length=50, verbose_name='文章描述')), ('content', DjangoUeditor.models.UEditorField(verbose_name='文章内容')), ('click_count', models.IntegerField(default=0, verbose_name='点击次数')), ('comment_count', models.IntegerField(default=0, verbose_name='评论次数')), ('date_publish', models.DateTimeField(auto_now_add=True, verbose_name='发布时间')), ], options={ 'verbose_name': '文章', 'verbose_name_plural': '文章', 'ordering': ['-date_publish'], }, ), migrations.CreateModel( name='Category', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=30, verbose_name='分类名称')), ('index', models.IntegerField(default=1, verbose_name='分类的排序')), ], options={ 'verbose_name': '分类', 'verbose_name_plural': '分类', 'ordering': ['index', 'id'], }, ), migrations.CreateModel( name='Comment', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('content', mdeditor.fields.MDTextField(verbose_name='评论内容')), ('username', models.CharField(blank=True, max_length=30, null=True, verbose_name='用户名')), ('email', models.EmailField(blank=True, max_length=50, null=True, verbose_name='邮箱地址')), ('date_publish', models.DateTimeField(auto_now_add=True, verbose_name='发布时间')), ('article', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='blog.Article', verbose_name='文章')), ('pid', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='blog.Comment', verbose_name='父级评论')), ('user', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL, verbose_name='用户')), ], options={ 'verbose_name': '评论', 'verbose_name_plural': '评论', }, ), migrations.CreateModel( name='Links', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('title', models.CharField(max_length=50, verbose_name='标题')), ('description', models.CharField(max_length=200, verbose_name='友情链接描述')), ('callback_url', models.URLField(verbose_name='url地址')), ('date_publish', models.DateTimeField(auto_now_add=True, verbose_name='发布时间')), ('index', models.IntegerField(default=999, verbose_name='排列顺序(从小到大)')), ], options={ 'verbose_name': '友情链接', 'verbose_name_plural': '友情链接', 'ordering': ['index', 'id'], }, ), migrations.CreateModel( name='Tag', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=30, verbose_name='标签名称')), ], options={ 'verbose_name': '标签', 'verbose_name_plural': '标签', }, ), migrations.AddField( model_name='article', name='category', field=models.ForeignKey( blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='blog.Category', verbose_name='分类'), ), migrations.AddField( model_name='article', name='tag', field=models.ManyToManyField(to='blog.Tag', verbose_name='标签'), ), migrations.AddField( model_name='article', name='user', field=models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL, verbose_name='用户'), ), ]
class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Ads', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('img', models.ImageField(upload_to='ads', verbose_name='图片')), ('desc', models.CharField(blank=True, max_length=20, null=True, verbose_name='图片描述')), ], ), migrations.CreateModel( name='Article', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('title', models.CharField(max_length=50, verbose_name='文章标题')), ('create_time', models.DateTimeField(auto_now_add=True, verbose_name='创建时间')), ('update_time', models.DateTimeField(auto_now=True, verbose_name='修改时间')), ('author', models.CharField(max_length=20, verbose_name='作者')), ('views', models.CharField(default=0, max_length=20, verbose_name='浏览量')), ('body', DjangoUeditor.models.UEditorField(verbose_name='正文')), ], ), migrations.CreateModel( name='Category', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=20, verbose_name='分类名')), ], ), migrations.CreateModel( name='Tag', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=20, verbose_name='标签名')), ], ), migrations.CreateModel( name='Comment', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=20, verbose_name='评论人')), ('url', models.URLField(default='http://www.charlie.com', verbose_name='个人主页')), ('email', models.EmailField(default='*****@*****.**', max_length=254, verbose_name='个人邮箱')), ('body', DjangoUeditor.models.UEditorField(verbose_name='评论内容')), ('create_time', models.DateTimeField(auto_now_add=True, verbose_name='评论时间')), ('article', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='blogapp.Article', verbose_name='所属文章')), ], ), migrations.AddField( model_name='article', name='category', field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='blogapp.Category', verbose_name='分类'), ), migrations.AddField( model_name='article', name='tags', field=models.ManyToManyField(to='blogapp.Tag'), ), ]
class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] operations = [ migrations.CreateModel( name='Ad', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('title', models.CharField(help_text='标题', max_length=50, verbose_name='标题')), ('pic', models.ImageField(help_text='广告图', upload_to='uploads', verbose_name='广告图')), ('adurl', models.URLField(help_text='地址', verbose_name='地址')), ('adlocation', models.CharField(help_text='位置', max_length=2, verbose_name='位置')), ('status', models.CharField(default=1, help_text='状态', max_length=1, verbose_name='状态')), ], ), migrations.CreateModel( name='Article', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('title', models.CharField(help_text='名称', max_length=100, verbose_name='标题')), ('slug', models.SlugField(unique_for_year='publish_date', verbose_name='描述')), ('content', DjangoUeditor.models.UEditorField(blank=True, default='', verbose_name='内容')), ('status', models.CharField(help_text='状态', max_length=2, verbose_name='状态')), ('publish_date', models.DateTimeField(default=datetime.datetime( 2018, 9, 24, 22, 46, 14, 204475), help_text='发布日期', verbose_name='发布日期')), ('expiration_date', models.DateTimeField(blank=True, help_text='有效日期', null=True, verbose_name='有效日期')), ('is_active', models.BooleanField(default=True, help_text='是否热门', verbose_name='是否热门')), ('pic', models.ImageField(help_text='图片', upload_to='uploads', verbose_name='图片')), ('praise_num', models.IntegerField(default=0, help_text='点赞', verbose_name='点赞')), ('read_num', models.IntegerField(default=0, help_text='浏览数', verbose_name='浏览数')), ('fav_num', models.IntegerField(default=0, help_text='收藏数', verbose_name='收藏数')), ('author', models.ForeignKey(help_text='作者', on_delete=django.db.models.deletion.CASCADE, related_name='author', to=settings.AUTH_USER_MODEL, verbose_name='作者')), ], options={ 'verbose_name_plural': '新闻文章', 'verbose_name': '新闻文章', }, ), migrations.CreateModel( name='Category', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('title', models.CharField(help_text='大类', max_length=20, verbose_name='名称')), ], options={ 'verbose_name_plural': '新闻类别', 'ordering': ['title'], 'verbose_name': '新闻类别', }, ), migrations.CreateModel( name='Item', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('title', models.CharField(help_text='名称', max_length=20, verbose_name='名称')), ('created_date', models.DateTimeField(default=datetime.datetime.now, help_text='创建时间', verbose_name='创建时间')), ('completed', models.BooleanField(default=False, help_text='是否完成', verbose_name='是否完成')), ('categorys', models.ForeignKey(help_text='大类', on_delete=django.db.models.deletion.CASCADE, related_name='items', to='article.Category')), ], options={ 'verbose_name_plural': '新闻子栏目', 'ordering': ['title'], 'verbose_name': '新闻子栏目', }, ), migrations.CreateModel( name='Tag', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(help_text='名称', max_length=50, verbose_name='名称')), ('slug', models.SlugField(verbose_name='描述')), ], options={ 'verbose_name_plural': '标签', 'ordering': ['id'], 'verbose_name': '标签', }, ), migrations.CreateModel( name='UserFav', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('add_time', models.DateTimeField(default=datetime.datetime.now, verbose_name='添加时间')), ('articles', models.ForeignKey(help_text='文章id', on_delete=django.db.models.deletion.CASCADE, related_name='articles', to='article.Article', verbose_name='文章')), ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='user', to=settings.AUTH_USER_MODEL, verbose_name='用户')), ], options={ 'verbose_name_plural': '用户收藏', 'verbose_name': '用户收藏', }, ), migrations.AddField( model_name='article', name='item', field=models.ForeignKey( help_text='类别名称', on_delete=django.db.models.deletion.CASCADE, related_name='item', to='article.Item', verbose_name='类别名称'), ), migrations.AddField( model_name='article', name='tags', field=models.ManyToManyField(blank=True, help_text='标签', related_name='tags', to='article.Tag'), ), migrations.AlterUniqueTogether( name='userfav', unique_together={('user', 'articles')}, ), ]
class Migration(migrations.Migration): initial = True dependencies = [ ('auth', '0009_alter_user_last_name_max_length'), ] operations = [ migrations.CreateModel( name='ForumUser', 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')), ('nickname', models.CharField(blank=True, max_length=200, null=True)), ('avatar', models.CharField(blank=True, max_length=200, null=True)), ('signature', models.CharField(blank=True, max_length=500, null=True)), ('location', models.CharField(blank=True, max_length=200, null=True)), ('website', models.URLField(blank=True, null=True)), ('company', models.CharField(blank=True, max_length=200, null=True)), ('role', models.IntegerField(blank=True, null=True)), ('balance', models.IntegerField(blank=True, null=True)), ('reputation', models.IntegerField(blank=True, null=True)), ('self_intro', models.CharField(blank=True, max_length=500, null=True)), ('updated', 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, }, managers=[ ('objects', django.contrib.auth.models.UserManager()), ], ), migrations.CreateModel( name='Blog', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('creatdate', models.DateTimeField(auto_now=True, verbose_name='创建时间')), ('update', models.DateTimeField(default=datetime.datetime(2018, 11, 10, 10, 5, 33, 451401, tzinfo=utc), verbose_name='更新时间')), ('count', models.IntegerField(blank=True, null=True, verbose_name='点击次数')), ('name', models.CharField(blank=True, max_length=100)), ('content', DjangoUeditor.models.UEditorField(blank=True, verbose_name='内容\t')), ], ), migrations.CreateModel( name='File', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('userId', models.IntegerField(blank=True, null=True)), ('fid', models.IntegerField(blank=True, null=True)), ('file', models.FileField(upload_to='upload/')), ], ), migrations.CreateModel( name='Topic', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('title', models.CharField(blank=True, max_length=200, null=True)), ('describe', models.CharField(blank=True, max_length=200, null=True)), ('lookNumber', models.IntegerField(blank=True, null=True)), ('created', models.DateTimeField(blank=True, null=True)), ('updated', models.DateTimeField(blank=True, null=True)), ], ), migrations.CreateModel( name='UserCenterTitle', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(blank=True, max_length=10, null=True, verbose_name='标题名称')), ('weight', models.IntegerField( default=1, validators=[ django.core.validators.MaxValueValidator(100), django.core.validators.MinValueValidator(1) ], verbose_name='1-100')), ('icon', models.CharField(blank=True, max_length=50, null=True, verbose_name='标题的icon')), ('isSuper', models.BooleanField(default=False, verbose_name='是否是超级用户所有')), ], ), migrations.AddField( model_name='blog', name='topic', field=models.ForeignKey( null=True, on_delete=django.db.models.deletion.SET_NULL, to='blog.Topic'), ), ]
class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('courses', '0001_initial'), ] 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=50, verbose_name='文章标题')), ('desc', models.CharField(max_length=128, verbose_name='文章描述')), ('content', DjangoUeditor.models.UEditorField(default='', verbose_name='文章内容')), ('image', models.ImageField(default='post/default.png', max_length=200, upload_to='post/%Y/%m', verbose_name='封面图')), ('click_count', models.IntegerField(default=0, verbose_name='点击次数')), ('is_recommend', models.BooleanField(default=False, verbose_name='是否推荐')), ('date_publish', models.DateTimeField(auto_now_add=True, verbose_name='发布时间')), ('is_reproduce', models.BooleanField(default=False, verbose_name='是否转载')), ('reproduce_user', models.CharField(blank=True, default='', max_length=20, null=True, verbose_name='转载作者')), ('reproduce_url', models.URLField(blank=True, default='', max_length=100, null=True, verbose_name='转载链接')), ('no', models.IntegerField(default=0, verbose_name='关卡中的文章序号')), ], options={ 'ordering': ['-date_publish'], 'verbose_name': '文章', 'verbose_name_plural': '文章', }, ), migrations.CreateModel( name='Catagory', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=30, verbose_name='分类名称')), ('index', models.IntegerField(default=999, verbose_name='分类的排序')), ('add_time', models.DateTimeField(default=datetime.datetime.now, verbose_name='添加时间')), ], options={ 'verbose_name': '分类', 'verbose_name_plural': '分类', }, ), migrations.CreateModel( name='Tag', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=30, verbose_name='标签名称')), ('add_time', models.DateTimeField(default=datetime.datetime.now, verbose_name='添加时间')), ], options={ 'verbose_name': '标签', 'verbose_name_plural': '标签', }, ), migrations.AddField( model_name='article', name='category', field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='article.Catagory', verbose_name='分类'), ), migrations.AddField( model_name='article', name='lesson', field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='courses.Lesson', verbose_name='所属关卡'), ), migrations.AddField( model_name='article', name='tag', field=models.ManyToManyField(to='article.Tag', verbose_name='标签'), ), migrations.AddField( model_name='article', name='user', field=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 = [ ] operations = [ migrations.CreateModel( name='Banner', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('position', models.IntegerField(default=0, verbose_name='位置')), ('is_show', models.BooleanField(default=True, verbose_name='是否显示')), ('is_top', models.BooleanField(default=False, verbose_name='是否置顶')), ('create_time', models.DateTimeField(auto_now_add=True, verbose_name='创建时间')), ('update_time', models.DateTimeField(auto_now=True, verbose_name='跟新时间')), ('image', models.ImageField(upload_to='banner/%Y/%m/%d', verbose_name='图片')), ('url', models.URLField(verbose_name='跳转链接')), ('name', models.CharField(max_length=50, verbose_name='图片描述')), ], options={ 'verbose_name': '轮廓图', 'verbose_name_plural': '轮廓图', }, ), migrations.CreateModel( name='Category', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('position', models.IntegerField(default=0, verbose_name='位置')), ('is_show', models.BooleanField(default=True, verbose_name='是否显示')), ('is_top', models.BooleanField(default=False, verbose_name='是否置顶')), ('create_time', models.DateTimeField(auto_now_add=True, verbose_name='创建时间')), ('update_time', models.DateTimeField(auto_now=True, verbose_name='跟新时间')), ('name', models.CharField(max_length=10, verbose_name='类名')), ], options={ 'verbose_name': '分类', 'verbose_name_plural': '分类', }, ), migrations.CreateModel( name='Company', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('position', models.IntegerField(default=0, verbose_name='位置')), ('is_show', models.BooleanField(default=True, verbose_name='是否显示')), ('is_top', models.BooleanField(default=False, verbose_name='是否置顶')), ('create_time', models.DateTimeField(auto_now_add=True, verbose_name='创建时间')), ('update_time', models.DateTimeField(auto_now=True, verbose_name='跟新时间')), ('name', models.CharField(max_length=10, verbose_name='公司名称')), ('conpany_info', models.CharField(max_length=255, verbose_name='公司介绍')), ('video', models.FileField(upload_to='video/%Y/%m/%d', verbose_name='视屏')), ], options={ 'verbose_name': '公司简介', 'verbose_name_plural': '公司简介', }, ), migrations.CreateModel( name='Dbz_nav', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('position', models.IntegerField(default=0, verbose_name='位置')), ('is_show', models.BooleanField(default=True, verbose_name='是否显示')), ('is_top', models.BooleanField(default=False, verbose_name='是否置顶')), ('create_time', models.DateTimeField(auto_now_add=True, verbose_name='创建时间')), ('update_time', models.DateTimeField(auto_now=True, verbose_name='跟新时间')), ('name', models.CharField(max_length=8, verbose_name='导航名字')), ], options={ 'verbose_name': '导航', 'verbose_name_plural': '导航', }, ), migrations.CreateModel( name='Join_hands', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('position', models.IntegerField(default=0, verbose_name='位置')), ('is_show', models.BooleanField(default=True, verbose_name='是否显示')), ('is_top', models.BooleanField(default=False, verbose_name='是否置顶')), ('create_time', models.DateTimeField(auto_now_add=True, verbose_name='创建时间')), ('update_time', models.DateTimeField(auto_now=True, verbose_name='跟新时间')), ('company_info', models.CharField(max_length=255, verbose_name='公司简介')), ('company_logo', models.ImageField(upload_to='logo/%Y/%m/%d', verbose_name='公司图片')), ], options={ 'verbose_name': '合作伙伴', 'verbose_name_plural': '合作伙伴', }, ), migrations.CreateModel( name='News', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('position', models.IntegerField(default=0, verbose_name='位置')), ('is_show', models.BooleanField(default=True, verbose_name='是否显示')), ('is_top', models.BooleanField(default=False, verbose_name='是否置顶')), ('create_time', models.DateTimeField(auto_now_add=True, verbose_name='创建时间')), ('update_time', models.DateTimeField(auto_now=True, verbose_name='跟新时间')), ('cover', models.ImageField(upload_to='news/%Y/%m/%d', verbose_name='封面')), ('news_info', models.CharField(max_length=50, verbose_name='文章简介')), ('content', DjangoUeditor.models.UEditorField()), ('name', models.CharField(max_length=25, verbose_name='文章名字')), ('browse', models.IntegerField(default=0, verbose_name='浏览量')), ], options={ 'verbose_name': '新闻', 'verbose_name_plural': '新闻', }, ), migrations.CreateModel( name='NewsClassfly', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('position', models.IntegerField(default=0, verbose_name='位置')), ('is_show', models.BooleanField(default=True, verbose_name='是否显示')), ('is_top', models.BooleanField(default=False, verbose_name='是否置顶')), ('create_time', models.DateTimeField(auto_now_add=True, verbose_name='创建时间')), ('update_time', models.DateTimeField(auto_now=True, verbose_name='跟新时间')), ('name', models.CharField(max_length=10, verbose_name='新闻分类')), ], options={ 'verbose_name': '新闻分类', 'verbose_name_plural': '新闻分类', }, ), migrations.CreateModel( name='Product', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('position', models.IntegerField(default=0, verbose_name='位置')), ('is_show', models.BooleanField(default=True, verbose_name='是否显示')), ('is_top', models.BooleanField(default=False, verbose_name='是否置顶')), ('create_time', models.DateTimeField(auto_now_add=True, verbose_name='创建时间')), ('update_time', models.DateTimeField(auto_now=True, verbose_name='跟新时间')), ('cover', models.ImageField(upload_to='product/%Y/%m/%d', verbose_name='产品样式')), ('name', models.CharField(max_length=20, verbose_name='产品名字')), ('sub_title', models.CharField(max_length=30, verbose_name='副标题')), ], options={ 'verbose_name': '产品', 'verbose_name_plural': '产品', }, ), migrations.CreateModel( name='Staff', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('position', models.IntegerField(default=0, verbose_name='位置')), ('is_show', models.BooleanField(default=True, verbose_name='是否显示')), ('is_top', models.BooleanField(default=False, verbose_name='是否置顶')), ('create_time', models.DateTimeField(auto_now_add=True, verbose_name='创建时间')), ('update_time', models.DateTimeField(auto_now=True, verbose_name='跟新时间')), ('phont', models.ImageField(upload_to='phont/%Y/%m/%d', verbose_name='员工头像')), ('job', models.CharField(max_length=10, verbose_name='职位')), ('phone', models.CharField(max_length=11, verbose_name='手机号')), ('email', models.CharField(max_length=20, verbose_name='邮箱')), ('name', models.CharField(max_length=20, verbose_name='名字')), ('address', models.CharField(max_length=50, verbose_name='地址')), ], options={ 'verbose_name': '客户表', 'verbose_name_plural': '客户表', }, ), migrations.AddField( model_name='news', name='classfly', field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='news.NewsClassfly'), ), migrations.AddField( model_name='category', name='product', field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='news.Product'), ), ]
class Migration(migrations.Migration): initial = True dependencies = [] operations = [ migrations.CreateModel( name='Goods', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=20, verbose_name='商品SPU名称')), ('detail', DjangoUeditor.models.UEditorField(default='', verbose_name='内容')), ('add_time', models.DateTimeField(default=datetime.datetime.now, verbose_name='添加时间')), ], options={ 'verbose_name': '商品SPU', 'verbose_name_plural': '商品SPU', 'db_table': 'df_goods', }, ), migrations.CreateModel( name='GoodsImage', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('image', models.ImageField(upload_to='goods', verbose_name='图片路径')), ('add_time', models.DateTimeField(default=datetime.datetime.now, verbose_name='添加时间')), ], options={ 'verbose_name': '商品图片', 'verbose_name_plural': '商品图片', 'db_table': 'df_goods_image', }, ), migrations.CreateModel( name='GoodsSKU', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=20, verbose_name='商品名称')), ('desc', models.CharField(max_length=256, verbose_name='商品简介')), ('price', models.DecimalField(decimal_places=2, max_digits=10, verbose_name='商品价格')), ('unite', models.CharField(max_length=20, verbose_name='商品单位')), ('image', models.ImageField(blank=True, null=True, upload_to='goods/images/', verbose_name='商品图片')), ('stock', models.IntegerField(default=1, verbose_name='商品库存')), ('sales', models.IntegerField(default=0, verbose_name='商品销量')), ('click_num', models.IntegerField(default=0, verbose_name='点击数')), ('fav_num', models.IntegerField(default=0, verbose_name='收藏数')), ('status', models.SmallIntegerField(choices=[(0, '下线'), (1, '上线')], default=1, verbose_name='商品状态')), ('is_new', models.BooleanField(default=False, verbose_name='是否新品')), ('is_hot', models.BooleanField(default=False, verbose_name='是否热销')), ('is_recommend', models.BooleanField(default=False, verbose_name='是否推荐')), ('add_time', models.DateTimeField(default=datetime.datetime.now, verbose_name='添加时间')), ('goods', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='goods.Goods', verbose_name='商品SPU')), ], options={ 'verbose_name': '商品', 'verbose_name_plural': '商品', 'db_table': 'df_goods_sku', }, ), migrations.CreateModel( name='GoodsType', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=20, verbose_name='种类名称')), ('add_time', models.DateTimeField(default=datetime.datetime.now, verbose_name='添加时间')), ], options={ 'verbose_name': '商品种类', 'verbose_name_plural': '商品种类', 'db_table': 'df_goods_type', }, ), migrations.CreateModel( name='IndexGoodsBanner', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('image', models.ImageField(upload_to='banner', verbose_name='图片')), ('index', models.SmallIntegerField(default=0, verbose_name='展示顺序')), ('add_time', models.DateTimeField(default=datetime.datetime.now, verbose_name='添加时间')), ('sku', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='goods.GoodsSKU', verbose_name='商品')), ], options={ 'verbose_name': '首页轮播商品', 'verbose_name_plural': '首页轮播商品', 'db_table': 'df_index_banner', }, ), migrations.CreateModel( name='IndexPromotionBanner', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=20, verbose_name='活动名称')), ('url', models.URLField(verbose_name='活动链接')), ('image', models.ImageField(upload_to='banner', verbose_name='活动图片')), ('index', models.SmallIntegerField(default=0, verbose_name='展示顺序')), ('add_time', models.DateTimeField(default=datetime.datetime.now, verbose_name='添加时间')), ], options={ 'verbose_name': '主页促销活动', 'verbose_name_plural': '主页促销活动', 'db_table': 'df_index_promotion', }, ), migrations.AddField( model_name='goodssku', name='type', field=models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, to='goods.GoodsType', verbose_name='商品种类'), ), migrations.AddField( model_name='goodsimage', name='sku', field=models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, to='goods.GoodsSKU', verbose_name='商品'), ), ]
class Migration(migrations.Migration): initial = True dependencies = [ ('auth', '0008_alter_user_username_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=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')), ('faceid', models.TextField(blank=True, null=True, verbose_name='用户唯一值')), ('user_name', models.TextField(blank=True, null=True, verbose_name='用户名')), ('knowfacecode', models.TextField(blank=True, default='', null=True, verbose_name='用户人脸矩阵')), ('login_type', models.IntegerField(choices=[(0, '未登录'), (1, '未人脸认证'), (2, '已人脸认证')], default=0, help_text='登录类型', verbose_name='登录类型')), ('name', models.CharField(blank=True, max_length=30, null=True, verbose_name='姓名')), ('birthday', models.DateField(blank=True, null=True, verbose_name='出生年月')), ('mobile', models.CharField(blank=True, max_length=11, null=True, verbose_name='电话号码')), ('gender', models.CharField(choices=[('male', '男'), ('female', '女')], default='male', max_length=6, verbose_name='性别')), ('email', models.CharField(blank=True, max_length=100, 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': '用户信息', 'verbose_name_plural': '用户信息', }, managers=[ ('objects', django.contrib.auth.models.UserManager()), ], ), migrations.CreateModel( name='Banner', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('title', models.CharField(max_length=100, verbose_name='title')), ('image', models.ImageField(upload_to='banner/%Y/%m', verbose_name='lunbo')), ('url', models.URLField(verbose_name='url')), ('index', models.IntegerField(default=100, verbose_name='index')), ('add_time', models.DateField(default=datetime.datetime.now, verbose_name='time')), ], options={ 'verbose_name': 'banner', 'verbose_name_plural': 'banner', }, ), migrations.CreateModel( name='EmailVerifyRecord', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('code', models.CharField(max_length=20, verbose_name='验证码')), ('email', models.EmailField(max_length=50, verbose_name='邮件')), ('type_code', models.CharField(choices=[('register', 'register'), ('forget', 'forget')], max_length=10)), ('send_time', models.DateField(default=datetime.datetime.now, verbose_name='添加时间')), ], options={ 'verbose_name': '邮件验证码', 'verbose_name_plural': '邮件验证码', }, ), migrations.CreateModel( name='FaceUser', fields=[ ('id', models.IntegerField(primary_key=True, serialize=False)), ('faceid', models.TextField(verbose_name='用户唯一值')), ('username', models.TextField(verbose_name='用户名')), ('knowfacecode', models.TextField(verbose_name='用户人脸矩阵')), ], options={ 'verbose_name': '用户人脸', 'verbose_name_plural': '用户人脸', }, ), migrations.CreateModel( name='Suggestion', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('suggest_name', models.CharField(blank=True, max_length=100, null=True, verbose_name='用户名')), ('suggest_content', models.TextField(verbose_name='建议内容')), ('email', models.EmailField(max_length=50, verbose_name='邮件地址')), ('suggest_type', models.IntegerField(choices=[(1, '已答复'), (0, '未答复')], default=0, help_text='回复类型', verbose_name='回复类型')), ('reply_content', DjangoUeditor.models.UEditorField(blank=True, default='', null=True, verbose_name='回复内容')), ('add_time', models.DateField(default=datetime.datetime.now, verbose_name='添加时间')), ], options={ 'verbose_name': '用户建议', 'verbose_name_plural': '用户建议', }, ), ]
class Migration(migrations.Migration): initial = True dependencies = [] 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=50, verbose_name='标题')), ('article_from', models.IntegerField(choices=[(0, '原创'), (1, '转载')], default=0, verbose_name='文章来源')), ('summary', models.TextField(verbose_name='摘要')), ('tags', models.CharField(blank=True, help_text='用逗号分隔', max_length=100, null=True, verbose_name='标签')), ('content', DjangoUeditor.models.UEditorField(default='', verbose_name='正文')), ('reading_num', models.IntegerField(default=0, verbose_name='阅读量')), ('is_top', models.BooleanField(default=False, verbose_name='是否置顶')), ('rank', models.IntegerField(default=0, verbose_name='排序')), ('status', models.IntegerField(choices=[(0, '发表'), (1, '草稿'), (2, '丢弃')], default=0, verbose_name='文章状态')), ('create_time', models.DateTimeField(default=django.utils.timezone.now, verbose_name='创建时间')), ('update_time', models.DateTimeField(blank=True, null=True, verbose_name='修改时间')), ], options={ 'verbose_name': '文章', 'verbose_name_plural': '文章', }, ), migrations.CreateModel( name='Category', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=40, verbose_name='类型名称')), ('rank', models.IntegerField(default=0, verbose_name='排序')), ('create_time', models.DateTimeField(default=django.utils.timezone.now, verbose_name='创建时间')), ('update_time', models.DateTimeField(blank=True, null=True, verbose_name='修改时间')), ], options={ 'verbose_name': '文章类型', 'verbose_name_plural': '文章类型', 'ordering': ['rank', '-create_time'], }, ), migrations.CreateModel( name='Link', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=40, verbose_name='链接名')), ('url', models.URLField(max_length=40, verbose_name='链接地址')), ('rank', models.IntegerField(default=0, verbose_name='排序')), ('create_time', models.DateTimeField(default=django.utils.timezone.now, verbose_name='创建时间')), ('update_time', models.DateTimeField(blank=True, null=True, verbose_name='修改时间')), ], options={ 'verbose_name': '友情链接', 'verbose_name_plural': '友情链接', }, ), ]
class Migration(migrations.Migration): initial = True dependencies = [ ('auth', '0008_alter_user_username_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=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')), ('nick_name', models.CharField(default='好学长', max_length=50, verbose_name='呢称')), ('gender', models.CharField(choices=[('male', '男'), ('female', '女')], default='male', max_length=6, verbose_name='性别')), ('mobile', models.CharField(max_length=11, 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': '用户信息', 'verbose_name_plural': '用户信息', }, managers=[ ('objects', django.contrib.auth.models.UserManager()), ], ), migrations.CreateModel( name='AboutUs', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('title', models.CharField(max_length=255, verbose_name='标题')), ('context', DjangoUeditor.models.UEditorField(default='', verbose_name='公司介绍')), ('pub_date', models.DateTimeField(auto_now_add=True)), ('update_time', models.DateTimeField(auto_now=True, null=True)), ], options={ 'verbose_name': '关于我们', 'verbose_name_plural': '关于我们', }, ), migrations.CreateModel( name='ApplicationCate', fields=[ ('id', models.CharField(max_length=10, primary_key=True, serialize=False, verbose_name='分类ID')), ('name', models.CharField(max_length=50, verbose_name='应用领域名称')), ('context', DjangoUeditor.models.UEditorField(default='', verbose_name='具体介绍')), ('image', models.ImageField(upload_to='img/%Y/%m', verbose_name='应用领域图片')), ('describe', models.CharField(max_length=511, verbose_name='描述')), ('created_time', models.DateTimeField(auto_now_add=True, verbose_name='创建时间')), ('last_modified_time', models.DateTimeField(auto_now=True, verbose_name='修改时间')), ], options={ 'verbose_name': '应用领域分类', 'verbose_name_plural': '应用领域分类', }, ), migrations.CreateModel( name='Brands', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('title', models.CharField(max_length=255, verbose_name='代理品牌')), ('describe', models.CharField(max_length=255, verbose_name='描述')), ('logo', models.ImageField(upload_to='img/%Y/%m', verbose_name='品牌logo')), ('url', models.URLField(verbose_name='代理品牌网页地址')), ('pub_date', models.DateTimeField(auto_now_add=True)), ('update_time', models.DateTimeField(auto_now=True, null=True)), ], options={ 'verbose_name': '客户案例', 'verbose_name_plural': '客户案例', }, ), migrations.CreateModel( name='News', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('title', models.CharField(max_length=255, verbose_name='文章标题')), ('describe', models.CharField(max_length=255, verbose_name='描述')), ('isImportant', models.BooleanField(default=False, verbose_name='是否添加为首页大图新闻')), ('picture', models.ImageField(upload_to='img/%Y/%m', verbose_name='首页大图')), ('image', models.ImageField(upload_to='img/%Y/%m', verbose_name='新闻图例')), ('context', DjangoUeditor.models.UEditorField(default='', verbose_name='文章内容')), ('pub_date', models.DateTimeField(auto_now_add=True)), ('update_time', models.DateTimeField(auto_now=True, null=True)), ('click_count', models.IntegerField(default=0, verbose_name='点击数')), ], options={ 'verbose_name': '新闻动态', 'verbose_name_plural': '新闻动态', }, ), migrations.CreateModel( name='ProductMainCate', fields=[ ('id', models.CharField(max_length=10, primary_key=True, serialize=False, verbose_name='分类ID')), ('name', models.CharField(max_length=50, verbose_name='产品分类')), ('image', models.ImageField(upload_to='img/%Y/%m', verbose_name='类别图片')), ('describe', models.CharField(max_length=511, verbose_name='类别介绍')), ('created_time', models.DateTimeField(auto_now_add=True, verbose_name='创建时间')), ('last_modified_time', models.DateTimeField(auto_now=True, verbose_name='修改时间')), ], options={ 'verbose_name': '产品分类', 'verbose_name_plural': '产品分类', }, ), migrations.CreateModel( name='Products', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('title', models.CharField(max_length=255, verbose_name='标题')), ('describe', models.CharField(max_length=511, verbose_name='描述')), ('image', models.ImageField(upload_to='img/%Y/%m', verbose_name='案例图片')), ('context', DjangoUeditor.models.UEditorField(default='', verbose_name='具体介绍')), ('pub_date', models.DateTimeField(auto_now_add=True)), ('update_time', models.DateTimeField(auto_now=True, null=True)), ], options={ 'verbose_name': '产品详情', 'verbose_name_plural': '产品详情', }, ), migrations.CreateModel( name='ProductSecondCate', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=50, verbose_name='细化分类名称')), ('describe', models.CharField(max_length=511, verbose_name='类别介绍')), ('logo', models.ImageField(upload_to='img/%Y/%m', verbose_name='分类产品logo')), ('image', models.ImageField(upload_to='img/%Y/%m', verbose_name='产品图片案例')), ('created_time', models.DateTimeField(auto_now_add=True, verbose_name='创建时间')), ('last_modified_time', models.DateTimeField(auto_now=True, verbose_name='修改时间')), ('productMainCate', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='user.ProductMainCate', verbose_name='产品分类')), ], options={ 'verbose_name': '产品具体分类', 'verbose_name_plural': '产品具体分类', }, ), migrations.AddField( model_name='products', name='productSecondCate', field=models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, to='user.ProductSecondCate', verbose_name='细化分类'), ), ]
class Migration(migrations.Migration): initial = True dependencies = [] 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=256, verbose_name='\u6807\u9898')), ('description', models.TextField(blank=True, verbose_name='\u63cf\u8ff0')), ('keywords', models.CharField(blank=True, max_length=255, verbose_name='\u6807\u7b7e')), ('content', DjangoUeditor.models.UEditorField( blank=True, verbose_name='\u5185\u5bb9')), ('transshipment', models.URLField(blank=True, verbose_name='\u8f6c\u8f7d\u5730\u5740')), ('pub_date', models.DateTimeField( auto_now_add=True, verbose_name='\u53d1\u8868\u65f6\u95f4')), ('update_time', models.DateTimeField( auto_now=True, null=True, verbose_name='\u66f4\u65b0\u65f6\u95f4')), ], options={ 'db_table': 'article', }, ), migrations.CreateModel( name='Column', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=50, verbose_name='\u680f\u76ee\u540d\u79f0')), ], options={ 'db_table': 'column', }, ), migrations.AddField( model_name='article', name='column', field=models.ManyToManyField( to='Article.Column', verbose_name='\u6240\u5c5e\u680f\u76ee'), ), ]
class Migration(migrations.Migration): initial = True dependencies = [ ('auth', '0009_alter_user_last_name_max_length'), ] operations = [ migrations.CreateModel( name='BokeUser', 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')), ('phone', models.CharField(max_length=11, 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='Article', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('is_delete', models.BooleanField(default=False, verbose_name='是否删除')), ('created_time', models.DateTimeField(auto_now_add=True, verbose_name='创建时间')), ('update_time', models.DateTimeField(auto_now_add=True, verbose_name='更新时间')), ('title', models.CharField(max_length=100, verbose_name='标题')), ('intro', models.CharField(max_length=255, verbose_name='简介')), ('vnum', models.IntegerField(default=0, verbose_name='浏览量')), ('cover', models.ImageField(upload_to='article/%Y/%m/%d', verbose_name='图片')), ('is_top', models.BooleanField(default=False, verbose_name='是否置顶')), ('content', DjangoUeditor.models.UEditorField()), ], options={ 'verbose_name': '文章', 'verbose_name_plural': '文章', 'ordering': ['-created_time'], }, ), migrations.CreateModel( name='Banner', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('is_delete', models.BooleanField(default=False, verbose_name='是否删除')), ('created_time', models.DateTimeField(auto_now_add=True, verbose_name='创建时间')), ('update_time', models.DateTimeField(auto_now_add=True, verbose_name='更新时间')), ('title', models.CharField(max_length=10, verbose_name='标题')), ('cover', models.ImageField(upload_to='banner/%Y/%m/%d', verbose_name='图片')), ('link', models.URLField(verbose_name='跳转地址')), ('position', models.IntegerField(default=0, verbose_name='排序')), ], options={ 'verbose_name': '轮播图', 'verbose_name_plural': '轮播图', 'ordering': ['position'], }, ), migrations.CreateModel( name='Category', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('is_delete', models.BooleanField(default=False, verbose_name='是否删除')), ('created_time', models.DateTimeField(auto_now_add=True, verbose_name='创建时间')), ('update_time', models.DateTimeField(auto_now_add=True, verbose_name='更新时间')), ('name', models.CharField(max_length=10, verbose_name='标题')), ('position', models.IntegerField(default=0, verbose_name='排序')), ], options={ 'verbose_name': '分类', 'verbose_name_plural': '分类', 'ordering': ['position'], }, ), migrations.CreateModel( name='Comment', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('is_delete', models.BooleanField(default=False, verbose_name='是否删除')), ('created_time', models.DateTimeField(auto_now_add=True, verbose_name='创建时间')), ('update_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='app.Article')), ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], options={ 'verbose_name': '评论', 'verbose_name_plural': '评论', 'ordering': ['-created_time'], }, ), migrations.CreateModel( name='FriendLink', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('is_delete', models.BooleanField(default=False, verbose_name='是否删除')), ('created_time', models.DateTimeField(auto_now_add=True, verbose_name='创建时间')), ('update_time', models.DateTimeField(auto_now_add=True, verbose_name='更新时间')), ('name', models.CharField(max_length=255, verbose_name='友情链接')), ('link', models.URLField(verbose_name='跳转地址')), ('position', models.IntegerField(default=0, verbose_name='排序')), ], options={ 'verbose_name': '友情链接', 'verbose_name_plural': '友情链接', 'ordering': ['position'], }, ), migrations.CreateModel( name='Tag', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('is_delete', models.BooleanField(default=False, verbose_name='是否删除')), ('created_time', models.DateTimeField(auto_now_add=True, verbose_name='创建时间')), ('update_time', models.DateTimeField(auto_now_add=True, verbose_name='更新时间')), ('name', models.CharField(max_length=10, verbose_name='标题')), ('position', models.IntegerField(default=0, verbose_name='排序')), ], options={ 'verbose_name': '标签', 'verbose_name_plural': '标签', 'ordering': ['position'], }, ), migrations.AddField( model_name='article', name='category', field=models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, to='app.Category'), ), migrations.AddField( model_name='article', name='tag', field=models.ManyToManyField(to='app.Tag'), ), migrations.AddField( model_name='article', name='user', field=models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL), ), ]