class Migration(migrations.Migration): dependencies = [ ('rssant_api', '0012_auto_20191025_1526'), ] operations = [ migrations.CreateModel( name='ImageInfo', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('_version', ool.VersionField(default=0)), ('_created', models.DateTimeField(auto_now_add=True, help_text='创建时间')), ('_updated', models.DateTimeField(auto_now=True, help_text='更新时间')), ('url_root', models.CharField(help_text='eg: https://image.example.com/root-path', max_length=120)), ('sample_url', models.CharField(blank=True, help_text='sample image url', max_length=240, null=True)), ('user_agent', models.CharField(blank=True, help_text='the user-agent used to request sample image', max_length=240, null=True)), ('referer', models.CharField(blank=True, help_text='the referer used to request sample image', max_length=240, null=True)), ('status_code', models.IntegerField(blank=True, help_text='the response status code when request sample image', null=True)), ('dt_created', models.DateTimeField(auto_now_add=True, help_text='created datatime')), ], bases=(ool.VersionedMixin, models.Model), ), migrations.AddIndex( model_name='imageinfo', index=models.Index(fields=['url_root', 'dt_created'], name='rssant_api__url_roo_0d7c51_idx'), ), ]
class Migration(migrations.Migration): initial = True dependencies = [ ('book', '0001_initial'), ] operations = [ migrations.CreateModel( name='Bookshelf', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('version', ool.VersionField(default=0)), ('title', models.CharField(max_length=256, verbose_name='Bookshelf name')), ], bases=(ool.VersionedMixin, models.Model), ), migrations.CreateModel( name='BookshelfItem', fields=[ ('id', models.AutoField(primary_key=True, serialize=False)), ('pos_numerator', models.IntegerField(verbose_name='Position(numerator)')), ('pos_denominator', models.IntegerField(verbose_name='Position(denominator)')), ('version', ool.VersionField(default=0)), ('book', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='book.book')), ('bookshelf', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='bookshelf.bookshelf', verbose_name='Bookshelf')), ], options={ 'unique_together': {('pos_numerator', 'pos_denominator')}, }, bases=(ool.VersionedMixin, models.Model), ), ]
class Migration(migrations.Migration): dependencies = [ ('auction', '0007_auto_20191024_1633'), ] operations = [ migrations.AddField( model_name='auction', name='version', field=ool.VersionField(default=0), ), ]
class Migration(migrations.Migration): dependencies = [ ('rssant_api', '0025_auto_20200516_0959'), ] operations = [ migrations.CreateModel( name='FeedStoryStat', fields=[ ('_version', ool.VersionField(default=0)), ('_created', models.DateTimeField(auto_now_add=True, help_text='创建时间')), ('_updated', models.DateTimeField(auto_now=True, help_text='更新时间')), ('id', models.PositiveIntegerField(help_text='feed id', primary_key=True, serialize=False)), ('monthly_story_count_data', models.BinaryField(blank=True, help_text='monthly story count data', max_length=514, null=True)), ('checksum_data', models.BinaryField(blank=True, help_text='feed checksum data', max_length=4096, null=True)), ('unique_ids_data', models.BinaryField(blank=True, help_text='unique ids data', max_length=102400, null=True)), ], options={ 'abstract': False, }, bases=(ool.VersionedMixin, models.Model), ), ]
class Migration(migrations.Migration): dependencies = [ ('rssant_api', '0010_auto_20190519_0725'), ] operations = [ migrations.CreateModel( name='Registery', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('_version', ool.VersionField(default=0)), ('_created', models.DateTimeField(auto_now_add=True, help_text='创建时间')), ('_updated', models.DateTimeField(auto_now=True, help_text='更新时间')), ('registery_node', models.CharField(help_text='registery node name', max_length=200, unique=True)), ('registery_node_spec', jsonfield.fields.JSONField(help_text='registery node spec')), ('node_specs', jsonfield.fields.JSONField(help_text='node specs')), ('dt_updated', models.DateTimeField(help_text='更新时间')), ], bases=(ool.VersionedMixin, models.Model), ), migrations.AddIndex( model_name='registery', index=models.Index(fields=['registery_node'], name='rssant_api__registe_c3cb8e_idx'), ), ]
class Migration(migrations.Migration): dependencies = [ ('rssant_api', '0008_auto_20190429_1550'), ] operations = [ migrations.AddField( model_name='feed', name='_version', field=ool.VersionField(default=0), ), migrations.AddField( model_name='feedurlmap', name='_version', field=ool.VersionField(default=0), ), migrations.AddField( model_name='rawfeed', name='_version', field=ool.VersionField(default=0), ), migrations.AddField( model_name='story', name='_version', field=ool.VersionField(default=0), ), migrations.AddField( model_name='userfeed', name='_version', field=ool.VersionField(default=0), ), migrations.AddField( model_name='userstory', name='_version', field=ool.VersionField(default=0), ), ]
class Migration(migrations.Migration): dependencies = [ ('rssant_api', '0026_feedstorystat'), ] operations = [ migrations.CreateModel( name='StoryInfo', fields=[ ('_version', ool.VersionField(default=0)), ('id', models.BigIntegerField(help_text='feed_id and offset', primary_key=True, serialize=False)), ('unique_id', models.CharField(help_text='Unique ID', max_length=200)), ('title', models.CharField(help_text='标题', max_length=200)), ('link', models.TextField(help_text='文章链接')), ('author', models.CharField(blank=True, help_text='作者', max_length=200, null=True)), ('image_url', models.TextField(blank=True, help_text='图片链接', null=True)), ('audio_url', models.TextField(blank=True, help_text='播客音频链接', null=True)), ('iframe_url', models.TextField(blank=True, help_text='视频iframe链接', null=True)), ('has_mathjax', models.BooleanField(blank=True, help_text='has MathJax', null=True)), ('is_user_marked', models.BooleanField( blank=True, help_text='is user favorited or watched ever', null=True)), ('dt_published', models.DateTimeField(help_text='发布时间')), ('dt_updated', models.DateTimeField(blank=True, help_text='更新时间', null=True)), ('dt_created', models.DateTimeField(auto_now_add=True, help_text='创建时间')), ('dt_synced', models.DateTimeField(blank=True, help_text='最近一次同步时间', null=True)), ('content_length', models.IntegerField(blank=True, help_text='content length', null=True)), ('summary', models.TextField(blank=True, help_text='摘要或较短的内容', null=True)), ('content_hash_base64', models.CharField(blank=True, help_text='base64 hash value of content', max_length=200, null=True)), ], bases=(ool.VersionedMixin, models.Model), ), ]
class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('rssant_api', '0009_auto_20190518_0659'), ] operations = [ migrations.CreateModel( name='FeedCreation', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('_version', ool.VersionField(default=0)), ('_created', models.DateTimeField(auto_now_add=True, help_text='创建时间')), ('_updated', models.DateTimeField(auto_now=True, help_text='更新时间')), ('url', models.TextField(help_text='用户输入的供稿地址')), ('is_from_bookmark', models.BooleanField(blank=True, default=False, help_text='是否从书签导入', null=True)), ('status', models.CharField(choices=[('pending', 'pending'), ('updating', 'updating'), ('ready', 'ready'), ('error', 'error')], default='pending', help_text='状态', max_length=20)), ('message', models.TextField(help_text='查找订阅的日志信息')), ('dt_created', models.DateTimeField(auto_now_add=True, help_text='创建时间')), ('dt_updated', models.DateTimeField(blank=True, help_text='更新时间', null=True)), ], bases=(ool.VersionedMixin, models.Model), ), migrations.RemoveIndex( model_name='userstory', name='rssant_api__user_fe_cfb4de_idx', ), migrations.RemoveIndex( model_name='userstory', name='rssant_api__user_id_3bc826_idx', ), migrations.RemoveField( model_name='userfeed', name='status', ), migrations.RemoveField( model_name='userfeed', name='url', ), migrations.AlterUniqueTogether( name='userstory', unique_together={('user', 'feed', 'offset'), ('user_feed', 'offset'), ('user', 'story')}, ), migrations.AddIndex( model_name='userstory', index=models.Index(fields=['user', 'feed', 'offset'], name='rssant_api__user_id_1aed91_idx'), ), migrations.AddIndex( model_name='userstory', index=models.Index(fields=['user', 'feed', 'story'], name='rssant_api__user_id_c419be_idx'), ), migrations.AddField( model_name='feedcreation', name='feed', field=models.ForeignKey( blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='rssant_api.Feed'), ), migrations.AddField( model_name='feedcreation', name='user', field=models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL), ), migrations.AddIndex( model_name='feedcreation', index=models.Index(fields=['user', 'dt_created'], name='rssant_api__user_id_09d733_idx'), ), ]
class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ("taggit", "0003_taggeditem_add_unique_index"), ] operations = [ migrations.CreateModel( name="Project", fields=[ ( "id", models.AutoField( auto_created=True, primary_key=True, serialize=False, verbose_name="ID", ), ), ("title", models.CharField(max_length=500, verbose_name="title")), ( "is_archived", models.BooleanField(default=False, verbose_name="archived"), ), ], options={"verbose_name": "project", "verbose_name_plural": "projects",}, ), migrations.CreateModel( name="Task", fields=[ ( "id", models.AutoField( auto_created=True, primary_key=True, serialize=False, verbose_name="ID", ), ), ("version", ool.VersionField(default=0)), ("title", models.CharField(max_length=500, verbose_name="title")), ( "description", models.TextField(blank=True, verbose_name="description"), ), ( "due_date", models.DateField(blank=True, null=True, verbose_name="due date"), ), ( "created_at", models.DateTimeField(auto_now_add=True, verbose_name="created at"), ), ( "status", models.CharField( choices=[ ("open", "open"), ("in_progress", "in progress"), ("done", "done"), ], default="open", max_length=20, verbose_name="status", ), ), ( "priority", models.SmallIntegerField( choices=[ (-2, "lowest"), (-1, "low"), (0, "normal"), (1, "high"), (2, "highest"), ], default=0, verbose_name="priority", ), ), ( "is_archived", models.BooleanField(default=False, verbose_name="archived"), ), ( "assignee", models.ForeignKey( blank=True, null=True, on_delete=django.db.models.deletion.DO_NOTHING, related_name="assignee", to=settings.AUTH_USER_MODEL, verbose_name="assignee", ), ), ( "created_by", models.ForeignKey( default=1, on_delete=django.db.models.deletion.DO_NOTHING, related_name="created_tasks", to=settings.AUTH_USER_MODEL, verbose_name="created by", ), ), ( "project", models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, related_name="projects", to="tasks.project", verbose_name="project", ), ), ( "tags", taggit.managers.TaggableManager( blank=True, help_text="A comma-separated list of tags.", through="taggit.TaggedItem", to="taggit.Tag", verbose_name="tags", ), ), ], options={"verbose_name": "task", "verbose_name_plural": "tasks",}, bases=(ool.VersionedMixin, models.Model), ), migrations.CreateModel( name="ProjectMembership", fields=[ ( "id", models.AutoField( auto_created=True, primary_key=True, serialize=False, verbose_name="ID", ), ), ( "expires_at", models.DateField(blank=True, null=True, verbose_name="expires at"), ), ( "project", models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, related_name="membership", to="tasks.project", ), ), ( "user", models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, related_name="membership", to=settings.AUTH_USER_MODEL, ), ), ], options={ "verbose_name": "project membership", "verbose_name_plural": "project memberships", }, ), migrations.AddField( model_name="project", name="members", field=models.ManyToManyField( through="tasks.ProjectMembership", to=settings.AUTH_USER_MODEL ), ), migrations.CreateModel( name="Note", fields=[ ( "id", models.AutoField( auto_created=True, primary_key=True, serialize=False, verbose_name="ID", ), ), ("body", models.TextField(verbose_name="body")), ( "created_at", models.DateTimeField(auto_now_add=True, verbose_name="created at"), ), ( "author", models.ForeignKey( blank=True, null=True, on_delete=django.db.models.deletion.DO_NOTHING, related_name="author", to=settings.AUTH_USER_MODEL, verbose_name="author", ), ), ( "task", models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, related_name="notes", to="tasks.task", verbose_name="notes", ), ), ], options={"verbose_name": "note", "verbose_name_plural": "notes",}, ), ]
class Migration(migrations.Migration): initial = True dependencies = [] operations = [ migrations.CreateModel( name='Order', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('created_at', models.DateTimeField(auto_now_add=True)), ('updated_at', models.DateTimeField(auto_now=True)), ('customer_name', models.CharField(max_length=50)), ('customer_name_decoded', models.CharField(max_length=50)), ], options={ 'verbose_name': 'Order', 'verbose_name_plural': 'Orders', }, ), migrations.CreateModel( name='SKU', fields=[ ('created_at', models.DateTimeField(auto_now_add=True)), ('updated_at', models.DateTimeField(auto_now=True)), ('id', models.CharField(max_length=100, primary_key=True, serialize=False)), ('product_name', models.CharField(max_length=250)), ], options={ 'verbose_name': 'SKU', 'verbose_name_plural': 'SKUs', }, ), migrations.CreateModel( name='Storage', fields=[ ('created_at', models.DateTimeField(auto_now_add=True)), ('updated_at', models.DateTimeField(auto_now=True)), ('version', ool.VersionField(default=0)), ('id', models.CharField(max_length=100, primary_key=True, serialize=False)), ('stock', models.PositiveSmallIntegerField()), ('sku', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='orders.SKU')), ], options={ 'verbose_name': 'Storage', 'verbose_name_plural': 'Storages', }, bases=(ool.VersionedMixin, models.Model), ), migrations.CreateModel( name='OrderLine', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('created_at', models.DateTimeField(auto_now_add=True)), ('updated_at', models.DateTimeField(auto_now=True)), ('version', ool.VersionField(default=0)), ('quantity', models.PositiveSmallIntegerField()), ('sku', models.ForeignKey( null=True, on_delete=django.db.models.deletion.SET_NULL, to='orders.SKU')), ], options={ 'verbose_name': 'Order Line', 'verbose_name_plural': 'Order Lines', }, bases=(ool.VersionedMixin, models.Model), ), ]