예제 #1
0
class Migration(migrations.Migration):

    initial = True

    dependencies = []

    operations = [
        migrations.CreateModel(
            name='Bulletin',
            fields=[
                ('id',
                 models.UUIDField(default=uuid.uuid4,
                                  editable=False,
                                  primary_key=True,
                                  serialize=False)),
                ('version',
                 concurrency.fields.AutoIncVersionField(
                     default=0, help_text='record revision number')),
                ('publish', models.BooleanField(default=False)),
                ('public', models.BooleanField(default=False)),
                ('title', models.CharField(max_length=250)),
                ('body', markdownx.models.MarkdownxField()),
                ('published', models.DateTimeField(blank=True, null=True)),
                ('created', models.DateTimeField(auto_now_add=True)),
                ('modified', models.DateTimeField(auto_now=True)),
            ],
            options={
                'verbose_name': 'bulletin',
                'verbose_name_plural': 'bulletins',
                'ordering': ['-published']
            },
        )
    ]
예제 #2
0
class Migration(migrations.Migration):
    initial = True

    dependencies = []

    operations = [
        migrations.CreateModel(
            name='Msg',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('created_time',
                 models.DateTimeField(auto_now_add=True, verbose_name='创建时间')),
                ('updated_time',
                 models.DateTimeField(auto_now=True, verbose_name='修改时间')),
                ('is_delete',
                 models.BooleanField(default=False, verbose_name='是否被删除')),
                ('title', models.CharField(max_length=50, verbose_name='标题')),
                ('msg_type',
                 models.IntegerField(choices=[(1, '竞拍消息'), (2, '拍卖公告'),
                                              (3, '系统消息')],
                                     verbose_name='消息类型')),
                ('content', markdownx.models.MarkdownxField()),
                ('periods', models.IntegerField(verbose_name='公告期数')),
            ],
            options={
                'verbose_name': '消息',
                'verbose_name_plural': '消息',
            },
        ),
        migrations.CreateModel(
            name='MsgHandler',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('created_time',
                 models.DateTimeField(auto_now_add=True, verbose_name='创建时间')),
                ('updated_time',
                 models.DateTimeField(auto_now=True, verbose_name='修改时间')),
                ('is_delete',
                 models.BooleanField(default=False, verbose_name='是否被删除')),
                ('msg',
                 models.ForeignKey(on_delete=django.db.models.deletion.CASCADE,
                                   to='msg.Msg',
                                   verbose_name='消息')),
            ],
            options={
                'verbose_name': '消息处理',
                'verbose_name_plural': '消息处理',
            },
        ),
    ]
예제 #3
0
class Migration(migrations.Migration):

    initial = True

    dependencies = [
        ('app_author', '0001_initial'),
    ]

    operations = [
        migrations.CreateModel(
            name='Category',
            fields=[
                ('id', models.AutoField(primary_key=True, serialize=False)),
                ('category_title',
                 models.CharField(max_length=200,
                                  verbose_name='Category Name')),
                ('slug', models.SlugField(editable=False, unique=True)),
            ],
            options={
                'verbose_name_plural': 'Categories',
            },
        ),
        migrations.CreateModel(
            name='Comment',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('comment_content',
                 markdownx.models.MarkdownxField(verbose_name='Markdown')),
                ('is_created', models.DateTimeField(default=timezone.now)),
                ('comment_author',
                 models.ForeignKey(blank=True,
                                   null=True,
                                   on_delete=django.db.models.deletion.CASCADE,
                                   related_name='user_comments',
                                   to='app_author.Profile')),
            ],
        ),
        migrations.CreateModel(
            name='Forum',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('forum_title',
                 models.CharField(max_length=225, verbose_name='Title')),
                ('forum_content',
                 markdownx.models.MarkdownxField(
                     verbose_name='Content (Use Markdown)')),
                ('is_created',
                 models.DateTimeField(blank=True,
                                      default=timezone.now,
                                      null=True)),
                ('is_modified',
                 models.DateTimeField(blank=True,
                                      default=timezone.now,
                                      null=True)),
                ('is_hot', models.BooleanField(default=False)),
                ('is_closed', models.BooleanField(default=False)),
                ('forum_author',
                 models.ForeignKey(blank=True,
                                   null=True,
                                   on_delete=django.db.models.deletion.CASCADE,
                                   related_name='user_forums',
                                   to='app_author.Profile')),
                ('forum_category',
                 models.ForeignKey(on_delete=django.db.models.deletion.CASCADE,
                                   to='app_forum.Category',
                                   verbose_name='Category')),
            ],
        ),
        migrations.AddField(
            model_name='comment',
            name='forum',
            field=models.ForeignKey(
                on_delete=django.db.models.deletion.CASCADE,
                related_name='forum_comments',
                to='app_forum.Forum'),
        ),
    ]
예제 #4
0
class Migration(migrations.Migration):

    initial = True

    dependencies = [
        ('appmngt', '0001_initial'),
        migrations.swappable_dependency(settings.AUTH_USER_MODEL),
        ('taggit', '0002_auto_20150616_2121'),
    ]

    operations = [
        migrations.CreateModel(
            name='FuncFlow',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('name',
                 models.CharField(max_length=200,
                                  unique=True,
                                  verbose_name='Name')),
                ('status',
                 models.CharField(choices=[('Draft', 'Draft'),
                                           ('On going', 'On going'),
                                           ('Released', 'Released'),
                                           ('Retired', 'Retired'),
                                           ('Abort', 'Abort')],
                                  default='Draft',
                                  max_length=20)),
                ('description',
                 markdownx.models.MarkdownxField(
                     blank=True,
                     help_text=
                     "<a href='https://en.wikipedia.org/wiki/Markdown'>You can use Markdown</a>",
                     null=True,
                     verbose_name='Description')),
                ('documentation',
                 models.URLField(blank=True,
                                 null=True,
                                 verbose_name='Documentation')),
                ('comment',
                 markdownx.models.MarkdownxField(
                     blank=True,
                     help_text=
                     "<a href='https://en.wikipedia.org/wiki/Markdown'>You can use Markdown</a>",
                     verbose_name='Comment')),
                ('flow_id',
                 models.CharField(default='',
                                  max_length=64,
                                  unique=True,
                                  verbose_name='Flow ID')),
                ('type',
                 models.CharField(choices=[('Asynchronous', 'Asynchronous'),
                                           ('Synchronous', 'Synchronous'),
                                           ('Redirection', 'Redirection')],
                                  max_length=32,
                                  verbose_name='Type')),
                ('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': 'Functional flow',
            },
        ),
        migrations.CreateModel(
            name='HistoricalFuncFlow',
            fields=[
                ('id',
                 models.IntegerField(auto_created=True,
                                     blank=True,
                                     db_index=True,
                                     verbose_name='ID')),
                ('name',
                 models.CharField(db_index=True,
                                  max_length=200,
                                  verbose_name='Name')),
                ('status',
                 models.CharField(choices=[('Draft', 'Draft'),
                                           ('On going', 'On going'),
                                           ('Released', 'Released'),
                                           ('Retired', 'Retired'),
                                           ('Abort', 'Abort')],
                                  default='Draft',
                                  max_length=20)),
                ('description',
                 markdownx.models.MarkdownxField(
                     blank=True,
                     help_text=
                     "<a href='https://en.wikipedia.org/wiki/Markdown'>You can use Markdown</a>",
                     null=True,
                     verbose_name='Description')),
                ('documentation',
                 models.URLField(blank=True,
                                 null=True,
                                 verbose_name='Documentation')),
                ('comment',
                 markdownx.models.MarkdownxField(
                     blank=True,
                     help_text=
                     "<a href='https://en.wikipedia.org/wiki/Markdown'>You can use Markdown</a>",
                     verbose_name='Comment')),
                ('flow_id',
                 models.CharField(db_index=True,
                                  default='',
                                  max_length=64,
                                  verbose_name='Flow ID')),
                ('type',
                 models.CharField(choices=[('Asynchronous', 'Asynchronous'),
                                           ('Synchronous', 'Synchronous'),
                                           ('Redirection', 'Redirection')],
                                  max_length=32,
                                  verbose_name='Type')),
                ('history_id',
                 models.AutoField(primary_key=True, serialize=False)),
                ('history_change_reason',
                 models.CharField(max_length=100, null=True)),
                ('history_date', models.DateTimeField()),
                ('history_type',
                 models.CharField(choices=[('+', 'Created'), ('~', 'Changed'),
                                           ('-', 'Deleted')],
                                  max_length=1)),
                ('history_user',
                 models.ForeignKey(
                     null=True,
                     on_delete=django.db.models.deletion.SET_NULL,
                     related_name='+',
                     to=settings.AUTH_USER_MODEL)),
            ],
            options={
                'verbose_name': 'historical Functional flow',
                'ordering': ('-history_date', '-history_id'),
                'get_latest_by': 'history_date',
            },
            bases=(simple_history.models.HistoricalChanges, models.Model),
        ),
        migrations.CreateModel(
            name='HistoricalSubFuncFlow',
            fields=[
                ('id',
                 models.IntegerField(auto_created=True,
                                     blank=True,
                                     db_index=True,
                                     verbose_name='ID')),
                ('name',
                 models.CharField(db_index=True,
                                  max_length=200,
                                  verbose_name='Name')),
                ('status',
                 models.CharField(choices=[('Draft', 'Draft'),
                                           ('On going', 'On going'),
                                           ('Released', 'Released'),
                                           ('Retired', 'Retired'),
                                           ('Abort', 'Abort')],
                                  default='Draft',
                                  max_length=20)),
                ('description',
                 markdownx.models.MarkdownxField(
                     blank=True,
                     help_text=
                     "<a href='https://en.wikipedia.org/wiki/Markdown'>You can use Markdown</a>",
                     null=True,
                     verbose_name='Description')),
                ('documentation',
                 models.URLField(blank=True,
                                 null=True,
                                 verbose_name='Documentation')),
                ('comment',
                 markdownx.models.MarkdownxField(
                     blank=True,
                     help_text=
                     "<a href='https://en.wikipedia.org/wiki/Markdown'>You can use Markdown</a>",
                     verbose_name='Comment')),
                ('subflow_id',
                 models.CharField(db_index=True,
                                  default='',
                                  max_length=64,
                                  verbose_name='Sub flow ID')),
                ('vital',
                 models.BooleanField(default=False, verbose_name='Vital')),
                ('history_id',
                 models.AutoField(primary_key=True, serialize=False)),
                ('history_change_reason',
                 models.CharField(max_length=100, null=True)),
                ('history_date', models.DateTimeField()),
                ('history_type',
                 models.CharField(choices=[('+', 'Created'), ('~', 'Changed'),
                                           ('-', 'Deleted')],
                                  max_length=1)),
                ('func_flow',
                 models.ForeignKey(
                     blank=True,
                     db_constraint=False,
                     default=None,
                     limit_choices_to={'status__in': ('On going', 'Released')},
                     null=True,
                     on_delete=django.db.models.deletion.DO_NOTHING,
                     related_name='+',
                     to='funcmngt.FuncFlow',
                     verbose_name='Functional Flow')),
                ('history_user',
                 models.ForeignKey(
                     null=True,
                     on_delete=django.db.models.deletion.SET_NULL,
                     related_name='+',
                     to=settings.AUTH_USER_MODEL)),
                ('receiver',
                 models.ForeignKey(
                     blank=True,
                     db_constraint=False,
                     default=None,
                     limit_choices_to={'status__in': ('On going', 'Released')},
                     null=True,
                     on_delete=django.db.models.deletion.DO_NOTHING,
                     related_name='+',
                     to='appmngt.Application',
                     verbose_name='Receiver')),
                ('requester',
                 models.ForeignKey(
                     blank=True,
                     db_constraint=False,
                     default=None,
                     limit_choices_to={'status__in': ('On going', 'Released')},
                     null=True,
                     on_delete=django.db.models.deletion.DO_NOTHING,
                     related_name='+',
                     to='appmngt.Application',
                     verbose_name='Requester')),
            ],
            options={
                'verbose_name': 'historical Sub functional flow',
                'ordering': ('-history_date', '-history_id'),
                'get_latest_by': 'history_date',
            },
            bases=(simple_history.models.HistoricalChanges, models.Model),
        ),
        migrations.CreateModel(
            name='SubFuncFlow',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('name',
                 models.CharField(max_length=200,
                                  unique=True,
                                  verbose_name='Name')),
                ('status',
                 models.CharField(choices=[('Draft', 'Draft'),
                                           ('On going', 'On going'),
                                           ('Released', 'Released'),
                                           ('Retired', 'Retired'),
                                           ('Abort', 'Abort')],
                                  default='Draft',
                                  max_length=20)),
                ('description',
                 markdownx.models.MarkdownxField(
                     blank=True,
                     help_text=
                     "<a href='https://en.wikipedia.org/wiki/Markdown'>You can use Markdown</a>",
                     null=True,
                     verbose_name='Description')),
                ('documentation',
                 models.URLField(blank=True,
                                 null=True,
                                 verbose_name='Documentation')),
                ('comment',
                 markdownx.models.MarkdownxField(
                     blank=True,
                     help_text=
                     "<a href='https://en.wikipedia.org/wiki/Markdown'>You can use Markdown</a>",
                     verbose_name='Comment')),
                ('subflow_id',
                 models.CharField(default='',
                                  max_length=64,
                                  unique=True,
                                  verbose_name='Sub flow ID')),
                ('vital',
                 models.BooleanField(default=False, verbose_name='Vital')),
                ('func_flow',
                 models.ForeignKey(
                     blank=True,
                     default=None,
                     limit_choices_to={'status__in': ('On going', 'Released')},
                     null=True,
                     on_delete=django.db.models.deletion.CASCADE,
                     related_name='subfuncflow_flow',
                     to='funcmngt.FuncFlow',
                     verbose_name='Functional Flow')),
                ('receiver',
                 models.ForeignKey(
                     blank=True,
                     default=None,
                     limit_choices_to={'status__in': ('On going', 'Released')},
                     null=True,
                     on_delete=django.db.models.deletion.CASCADE,
                     related_name='subfuncflow_rec_app',
                     to='appmngt.Application',
                     verbose_name='Receiver')),
                ('requester',
                 models.ForeignKey(
                     blank=True,
                     default=None,
                     limit_choices_to={'status__in': ('On going', 'Released')},
                     null=True,
                     on_delete=django.db.models.deletion.CASCADE,
                     related_name='subfuncflow_req_app',
                     to='appmngt.Application',
                     verbose_name='Requester')),
                ('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': 'Sub functional flow',
            },
        ),
    ]
예제 #5
0
class Migration(migrations.Migration):

    initial = True

    dependencies = []

    operations = [
        migrations.CreateModel(
            name="Comment",
            fields=[
                ("id",
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name="ID")),
                ("created_at",
                 models.DateTimeField(auto_now_add=True, db_index=True)),
                ("modified_at", models.DateTimeField(auto_now=True)),
                ("deleted_at",
                 models.DateTimeField(blank=True, default=None, null=True)),
                ("original_commenter", models.JSONField()),
                ("comment", models.TextField()),
                ("was_submitted", models.BooleanField(default=False)),
                (
                    "client_mode",
                    models.CharField(
                        choices=[("T", "Testing"), ("L", "Live")],
                        default="T",
                        editable=False,
                        help_text="The mode the comment was submitted under.",
                        max_length=1,
                    ),
                ),
            ],
        ),
        migrations.CreateModel(
            name="Commenter",
            fields=[
                ("id",
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name="ID")),
                ("created_at",
                 models.DateTimeField(auto_now_add=True, db_index=True)),
                ("modified_at", models.DateTimeField(auto_now=True)),
                ("deleted_at",
                 models.DateTimeField(blank=True, default=None, null=True)),
                ("email", models.EmailField(max_length=254)),
                ("first_name",
                 models.CharField(blank=True, max_length=100, null=True)),
                ("last_name",
                 models.CharField(blank=True, max_length=100, null=True)),
            ],
            options={"abstract": False},
        ),
        migrations.CreateModel(
            name="Document",
            fields=[
                ("id",
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name="ID")),
                ("created_at",
                 models.DateTimeField(auto_now_add=True, db_index=True)),
                ("modified_at", models.DateTimeField(auto_now=True)),
                ("deleted_at",
                 models.DateTimeField(blank=True, default=None, null=True)),
                ("document_id",
                 models.CharField(max_length=100, verbose_name="Document ID")),
                ("slug", models.SlugField()),
                ("title", models.CharField(max_length=500)),
                ("description",
                 markdownx.models.MarkdownxField(blank=True, null=True)),
                ("is_accepting_comments", models.BooleanField(default=False)),
                ("is_withdrawn", models.BooleanField(default=False)),
                ("document_type", models.CharField(max_length=50)),
                ("comment_end_date", models.DateTimeField(blank=True,
                                                          null=True)),
                ("comment_start_date",
                 models.DateTimeField(blank=True, null=True)),
                (
                    "client_mode",
                    models.CharField(
                        choices=[("T", "Testing"), ("L", "Live")],
                        default="T",
                        help_text=
                        "Switch to live when you're ready to start accepting comments and have them submitted to regulations.gov. While in testing mode, comments will be logged but not submitted.",
                        max_length=1,
                    ),
                ),
            ],
        ),
        migrations.CreateModel(
            name="DocumentTopic",
            fields=[
                ("id",
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name="ID")),
                ("created_at",
                 models.DateTimeField(auto_now_add=True, db_index=True)),
                ("modified_at", models.DateTimeField(auto_now=True)),
                ("deleted_at",
                 models.DateTimeField(blank=True, default=None, null=True)),
                ("name", models.CharField(max_length=100)),
            ],
            options={"abstract": False},
        ),
    ]
예제 #6
0
class Migration(migrations.Migration):
    initial = True

    dependencies = [
    ]

    operations = [
        migrations.CreateModel(
            name='BidRecord',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('created_time', models.DateTimeField(auto_now_add=True, verbose_name='创建时间')),
                ('updated_time', models.DateTimeField(auto_now=True, verbose_name='修改时间')),
                ('is_delete', models.BooleanField(default=False, verbose_name='是否被删除')),
                ('is_out', models.BooleanField(default=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(auto_now_add=True, verbose_name='创建时间')),
                ('updated_time', models.DateTimeField(auto_now=True, verbose_name='修改时间')),
                ('is_delete', models.BooleanField(default=False, verbose_name='是否被删除')),
                ('name', models.CharField(blank=True, max_length=15, null=True, verbose_name='类型名称')),
                ('image', models.ImageField(upload_to='category/image/', verbose_name='类型的图片')),
                ('index', models.IntegerField(verbose_name='排序')),
            ],
            options={
                'verbose_name': '类型',
                'verbose_name_plural': '类型',
            },
        ),
        migrations.CreateModel(
            name='Goods',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('created_time', models.DateTimeField(auto_now_add=True, verbose_name='创建时间')),
                ('updated_time', models.DateTimeField(auto_now=True, verbose_name='修改时间')),
                ('is_delete', models.BooleanField(default=False, verbose_name='是否被删除')),
                ('goods_id', models.CharField(db_index=True, max_length=64, unique=True, verbose_name='商品id')),
                ('goods_sn', models.CharField(blank=True, default='', max_length=50, null=True, verbose_name='商品唯一货号')),
                ('name', models.CharField(max_length=100, verbose_name='商品名')),
                ('click_num', models.IntegerField(default=0, verbose_name='点击数')),
                ('fav_num', models.IntegerField(default=0, verbose_name='收藏数')),
                ('market_price', models.FloatField(default=0.0, verbose_name='市场价格')),
                ('now_price', models.FloatField(default=0.0, verbose_name='现在价格')),
                ('step_price', models.FloatField(default=0.1, verbose_name='每次出价价格')),
                ('goods_brief', models.TextField(max_length=500, verbose_name='商品简短描述')),
                ('goods_desc', markdownx.models.MarkdownxField(verbose_name='商品描述')),
                ('ship_free', models.BooleanField(default=True, verbose_name='是否承担运费')),
                ('goods_front_image', models.ImageField(upload_to='goods/front/image', verbose_name='封面图')),
                ('is_new', models.BooleanField(default=False, verbose_name='是否新品')),
                ('is_hot', models.BooleanField(default=False, verbose_name='是否热拍')),
                ('is_sell', models.BooleanField(default=False, verbose_name='是否拍出')),
                ('periods', models.IntegerField(verbose_name='期数')),
                ('category', models.ForeignKey(on_delete=django.db.models.deletion.DO_NOTHING, to='goods.Category',
                                               verbose_name='商品类目')),
            ],
            options={
                'verbose_name': '商品',
                'verbose_name_plural': '商品',
            },
        ),
        migrations.CreateModel(
            name='GoodsImage',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('created_time', models.DateTimeField(auto_now_add=True, verbose_name='创建时间')),
                ('updated_time', models.DateTimeField(auto_now=True, verbose_name='修改时间')),
                ('is_delete', models.BooleanField(default=False, verbose_name='是否被删除')),
                ('index', models.IntegerField(verbose_name='图片顺序')),
                ('image', models.ImageField(upload_to='goods/detail/image', verbose_name='图片')),
                ('goods', models.ForeignKey(on_delete=django.db.models.deletion.DO_NOTHING, to='goods.Goods',
                                            verbose_name='商品')),
            ],
            options={
                'verbose_name': '商品图片',
                'verbose_name_plural': '商品图片',
            },
        ),
        migrations.CreateModel(
            name='RoomDetail',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('created_time', models.DateTimeField(auto_now_add=True, verbose_name='创建时间')),
                ('updated_time', models.DateTimeField(auto_now=True, verbose_name='修改时间')),
                ('is_delete', models.BooleanField(default=False, verbose_name='是否被删除')),
                ('name', models.CharField(max_length=100, verbose_name='房间名字')),
                ('onlookers', models.IntegerField(verbose_name='围观人数')),
                ('bidders', models.IntegerField(verbose_name='出价人数')),
                ('goods',
                 models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='goods.Goods', verbose_name='商品')),
            ],
            options={
                'verbose_name': '房间详情',
                'verbose_name_plural': '房间详情',
            },
        ),
        migrations.AddField(
            model_name='bidrecord',
            name='goods',
            field=models.ForeignKey(on_delete=django.db.models.deletion.DO_NOTHING, to='goods.Goods',
                                    verbose_name='商品'),
        ),
    ]
예제 #7
0
class Migration(migrations.Migration):

    initial = True

    dependencies = [
        ('taggit', '0003_taggeditem_add_unique_index'),
    ]

    operations = [
        migrations.CreateModel(
            name='FAQ',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('order', models.PositiveIntegerField(db_index=True, editable=False, verbose_name='order')),
                ('notes', models.TextField(blank=True, help_text='Internal notes or description.', null=True)),
                ('created_at', models.DateTimeField(auto_now_add=True, help_text='A timestamp of when the object is first created.')),
                ('updated_at', models.DateTimeField(auto_now=True, help_text='A timestamp of the last time when the object was modified.')),
                ('question', models.CharField(max_length=255)),
                ('answer', markdownx.models.MarkdownxField()),
            ],
            options={
                'ordering': ('order',),
                'abstract': False,
            },
        ),
        migrations.CreateModel(
            name='Link',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('notes', models.TextField(blank=True, help_text='Internal notes or description.', null=True)),
                ('created_at', models.DateTimeField(auto_now_add=True, help_text='A timestamp of when the object is first created.')),
                ('updated_at', models.DateTimeField(auto_now=True, help_text='A timestamp of the last time when the object was modified.')),
                ('url', models.URLField(max_length=2000)),
                ('title', models.CharField(blank=True, max_length=255, null=True)),
                ('label', models.CharField(blank=True, max_length=255, null=True)),
            ],
            options={
                'abstract': False,
            },
        ),
        migrations.CreateModel(
            name='Scholarship',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('notes', models.TextField(blank=True, help_text='Internal notes or description.', null=True)),
                ('created_at', models.DateTimeField(auto_now_add=True, help_text='A timestamp of when the object is first created.')),
                ('updated_at', models.DateTimeField(auto_now=True, help_text='A timestamp of the last time when the object was modified.')),
                ('license', models.CharField(blank=True, help_text='The Creative Commons licence associated to the legal resource.', max_length=50, null=True)),
                ('contributor_name', models.CharField(max_length=120)),
                ('contributor_email', models.EmailField(max_length=254)),
                ('summary', models.TextField(blank=True, null=True)),
                ('status', models.PositiveSmallIntegerField(choices=[(1, 'Unreviewed'), (2, 'Review in Progress'), (3, 'Published'), (4, 'Rejected')], default=1, help_text='The stage of the review process where the resource is.')),
                ('title', models.CharField(blank=True, max_length=255, null=True)),
                ('publication_name', models.CharField(blank=True, max_length=255, null=True)),
                ('publication_year', models.PositiveSmallIntegerField(blank=True, null=True)),
                ('authors', models.CharField(blank=True, max_length=255, null=True)),
                ('link', models.ForeignKey(help_text='The link to the article.', on_delete=django.db.models.deletion.CASCADE, to='legal_db.Link')),
                ('tags', taggit.managers.TaggableManager(blank=True, help_text='A comma-separated list of tags.', through='taggit.TaggedItem', to='taggit.Tag', verbose_name='Tags')),
            ],
            options={
                'abstract': False,
            },
        ),
        migrations.CreateModel(
            name='Case',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('notes', models.TextField(blank=True, help_text='Internal notes or description.', null=True)),
                ('created_at', models.DateTimeField(auto_now_add=True, help_text='A timestamp of when the object is first created.')),
                ('updated_at', models.DateTimeField(auto_now=True, help_text='A timestamp of the last time when the object was modified.')),
                ('license', models.CharField(blank=True, help_text='The Creative Commons licence associated to the legal resource.', max_length=50, null=True)),
                ('contributor_name', models.CharField(max_length=120)),
                ('contributor_email', models.EmailField(max_length=254)),
                ('summary', models.TextField(blank=True, null=True)),
                ('status', models.PositiveSmallIntegerField(choices=[(1, 'Unreviewed'), (2, 'Review in Progress'), (3, 'Published'), (4, 'Rejected')], default=1, help_text='The stage of the review process where the resource is.')),
                ('name', models.CharField(blank=True, help_text='If there are multiple lawsuits between the parties, please just include one here and note the others in the related cases field.', max_length=200, null=True)),
                ('related_cases', models.CharField(blank=True, help_text='If there are multiple lawsuits between the parties in this dispute, please note additional cases here.', max_length=255, null=True)),
                ('country', django_countries.fields.CountryField(blank=True, max_length=2, null=True)),
                ('courts', models.CharField(blank=True, help_text='The original court name and/or English translation. If the lawsuit was filed in one court and then went to another court on appeal, please note all relevant courts here.', max_length=255, null=True)),
                ('background', models.TextField(blank=True, help_text='Describe the factual information that led to the lawsuit being filed, and explain what claims were filed in the lawsuit.', null=True)),
                ('decision_year', models.PositiveSmallIntegerField(blank=True, help_text='Year of case resolution.', null=True)),
                ('is_pending', models.BooleanField(blank=True, help_text='Indicate if is an ongoing case or not.', null=True)),
                ('links', models.ManyToManyField(help_text='Include any links to pleadings, briefs, and opinions in the lawsuit, as well as blog posts, academic articles, or other relevant materials.', to='legal_db.Link')),
                ('tags', taggit.managers.TaggableManager(blank=True, help_text='A comma-separated list of tags.', through='taggit.TaggedItem', to='taggit.Tag', verbose_name='Tags')),
            ],
            options={
                'abstract': False,
            },
        ),
    ]
class Migration(migrations.Migration):

    dependencies = [
        ('data_registry', '0029_auto_20210813_1929'),
    ]

    operations = [
        migrations.AlterField(
            model_name='collection',
            name='additional_data',
            field=markdownx.models.MarkdownxField(blank=True, default='', help_text='Any notable highlights about the available data, such as extensions used or additional fields, as Markdown text.', null=True, verbose_name='data availability'),
            preserve_default=False,
        ),
        migrations.AlterField(
            model_name='collection',
            name='additional_data_en',
            field=markdownx.models.MarkdownxField(blank=True, help_text='Any notable highlights about the available data, such as extensions used or additional fields, as Markdown text.', null=True, verbose_name='data availability'),
        ),
        migrations.AlterField(
            model_name='collection',
            name='additional_data_es',
            field=markdownx.models.MarkdownxField(blank=True, help_text='Any notable highlights about the available data, such as extensions used or additional fields, as Markdown text.', null=True, verbose_name='data availability'),
        ),
        migrations.AlterField(
            model_name='collection',
            name='additional_data_ru',
            field=markdownx.models.MarkdownxField(blank=True, help_text='Any notable highlights about the available data, such as extensions used or additional fields, as Markdown text.', null=True, verbose_name='data availability'),
        ),
        migrations.AlterField(
            model_name='collection',
            name='country',
            field=models.CharField(blank=True, default='', help_text='The official name of the country from which the data originates.', max_length=2048),
            preserve_default=False,
        ),
        migrations.AlterField(
            model_name='collection',
            name='country_en',
            field=models.CharField(blank=True, help_text='The official name of the country from which the data originates.', max_length=2048, null=True),
        ),
        migrations.AlterField(
            model_name='collection',
            name='country_es',
            field=models.CharField(blank=True, help_text='The official name of the country from which the data originates.', max_length=2048, null=True),
        ),
        migrations.AlterField(
            model_name='collection',
            name='country_flag',
            field=models.CharField(blank=True, default='', max_length=2048),
            preserve_default=False,
        ),
        migrations.AlterField(
            model_name='collection',
            name='country_ru',
            field=models.CharField(blank=True, help_text='The official name of the country from which the data originates.', max_length=2048, null=True),
        ),
        migrations.AlterField(
            model_name='collection',
            name='description',
            field=markdownx.models.MarkdownxField(blank=True, default='', help_text='The first paragraph of the description of the publication, as Markdown text, following the <a href="https://docs.google.com/document/d/1Pr87zDrs9YY7BEvr_e6QjOy0gexs06dU9ES2_-V7Lzw/edit#heading=h.fksp8fxgoi7v">template and guidance</a>.'),
            preserve_default=False,
        ),
        migrations.AlterField(
            model_name='collection',
            name='description_en',
            field=markdownx.models.MarkdownxField(blank=True, help_text='The first paragraph of the description of the publication, as Markdown text, following the <a href="https://docs.google.com/document/d/1Pr87zDrs9YY7BEvr_e6QjOy0gexs06dU9ES2_-V7Lzw/edit#heading=h.fksp8fxgoi7v">template and guidance</a>.', null=True),
        ),
        migrations.AlterField(
            model_name='collection',
            name='description_es',
            field=markdownx.models.MarkdownxField(blank=True, help_text='The first paragraph of the description of the publication, as Markdown text, following the <a href="https://docs.google.com/document/d/1Pr87zDrs9YY7BEvr_e6QjOy0gexs06dU9ES2_-V7Lzw/edit#heading=h.fksp8fxgoi7v">template and guidance</a>.', null=True),
        ),
        migrations.AlterField(
            model_name='collection',
            name='description_long',
            field=markdownx.models.MarkdownxField(blank=True, default='', help_text='The remaining paragraphs of the description of the publication, as Markdown text, which will appear under "Show more".', null=True),
            preserve_default=False,
        ),
        migrations.AlterField(
            model_name='collection',
            name='description_long_en',
            field=markdownx.models.MarkdownxField(blank=True, help_text='The remaining paragraphs of the description of the publication, as Markdown text, which will appear under "Show more".', null=True),
        ),
        migrations.AlterField(
            model_name='collection',
            name='description_long_es',
            field=markdownx.models.MarkdownxField(blank=True, help_text='The remaining paragraphs of the description of the publication, as Markdown text, which will appear under "Show more".', null=True),
        ),
        migrations.AlterField(
            model_name='collection',
            name='description_long_ru',
            field=markdownx.models.MarkdownxField(blank=True, help_text='The remaining paragraphs of the description of the publication, as Markdown text, which will appear under "Show more".', null=True),
        ),
        migrations.AlterField(
            model_name='collection',
            name='description_ru',
            field=markdownx.models.MarkdownxField(blank=True, help_text='The first paragraph of the description of the publication, as Markdown text, following the <a href="https://docs.google.com/document/d/1Pr87zDrs9YY7BEvr_e6QjOy0gexs06dU9ES2_-V7Lzw/edit#heading=h.fksp8fxgoi7v">template and guidance</a>.', null=True),
        ),
        migrations.AlterField(
            model_name='collection',
            name='frozen',
            field=models.BooleanField(default=False, help_text='If the spider is broken, check this box to prevent new jobs from running.'),
        ),
        migrations.AlterField(
            model_name='collection',
            name='language',
            field=models.CharField(blank=True, default='', help_text='The languages used within data fields: for example, "Spanish".', max_length=2048, null=True),
            preserve_default=False,
        ),
        migrations.AlterField(
            model_name='collection',
            name='last_update',
            field=models.DateField(blank=True, help_text="The date on which the most recent 'collect' job task completed.", null=True, verbose_name='last updated'),
        ),
        migrations.AlterField(
            model_name='collection',
            name='license_custom',
            field=models.ForeignKey(blank=True, help_text='If not set, the Overview section will display the license URL within the OCDS package.', null=True, on_delete=django.db.models.deletion.CASCADE, related_name='collection', to='data_registry.license', verbose_name='data license'),
        ),
        migrations.AlterField(
            model_name='collection',
            name='public',
            field=models.BooleanField(default=False, help_text="If the active job's tasks completed without errors and all fields below in all languages are filled in, check this box."),
        ),
        migrations.AlterField(
            model_name='collection',
            name='source_id',
            field=models.CharField(help_text="The name of the spider in Kingfisher Collect. If a new spider is not listed, Kingfisher Collect needs to be re-deployed to the registry's server.", max_length=2048, verbose_name='source ID'),
        ),
        migrations.AlterField(
            model_name='collection',
            name='summary',
            field=markdownx.models.MarkdownxField(blank=True, default='', help_text='A short summary of quality issues, as Markdown text. Individual issues can be described below, which will be rendered as a bullet list.', verbose_name='quality summary', null=True),
            preserve_default=False,
        ),
        migrations.AlterField(
            model_name='collection',
            name='summary_en',
            field=markdownx.models.MarkdownxField(blank=True, help_text='A short summary of quality issues, as Markdown text. Individual issues can be described below, which will be rendered as a bullet list.', null=True, verbose_name='quality summary'),
        ),
        migrations.AlterField(
            model_name='collection',
            name='summary_es',
            field=markdownx.models.MarkdownxField(blank=True, help_text='A short summary of quality issues, as Markdown text. Individual issues can be described below, which will be rendered as a bullet list.', null=True, verbose_name='quality summary'),
        ),
        migrations.AlterField(
            model_name='collection',
            name='summary_ru',
            field=markdownx.models.MarkdownxField(blank=True, help_text='A short summary of quality issues, as Markdown text. Individual issues can be described below, which will be rendered as a bullet list.', null=True, verbose_name='quality summary'),
        ),
        migrations.AlterField(
            model_name='collection',
            name='title',
            field=models.TextField(help_text='The name of the publication, following the <a href="https://docs.google.com/document/d/14ZXlAB6GWeK4xwDUt9HGi0fTew4BahjZQ2owdLLVp6I/edit#heading=h.t81hzvffylry">naming conventions</a>, and omitting the country name.'),
        ),
        migrations.AlterField(
            model_name='collection',
            name='title_en',
            field=models.TextField(help_text='The name of the publication, following the <a href="https://docs.google.com/document/d/14ZXlAB6GWeK4xwDUt9HGi0fTew4BahjZQ2owdLLVp6I/edit#heading=h.t81hzvffylry">naming conventions</a>, and omitting the country name.', null=True),
        ),
        migrations.AlterField(
            model_name='collection',
            name='title_es',
            field=models.TextField(help_text='The name of the publication, following the <a href="https://docs.google.com/document/d/14ZXlAB6GWeK4xwDUt9HGi0fTew4BahjZQ2owdLLVp6I/edit#heading=h.t81hzvffylry">naming conventions</a>, and omitting the country name.', null=True),
        ),
        migrations.AlterField(
            model_name='collection',
            name='title_ru',
            field=models.TextField(help_text='The name of the publication, following the <a href="https://docs.google.com/document/d/14ZXlAB6GWeK4xwDUt9HGi0fTew4BahjZQ2owdLLVp6I/edit#heading=h.t81hzvffylry">naming conventions</a>, and omitting the country name.', null=True),
        ),
        migrations.AlterField(
            model_name='collection',
            name='update_frequency',
            field=models.CharField(blank=True, choices=[('MONTHLY', 'MONTHLY'), ('HALF_YEARLY', 'HALF_YEARLY'), ('ANNUALLY', 'ANNUALLY')], default='', help_text='The frequency at which the registry updates the publication, based on the frequency at which the publication is updated.', max_length=2048),
            preserve_default=False,
        ),
        migrations.AlterField(
            model_name='issue',
            name='description',
            field=markdownx.models.MarkdownxField(help_text='A one-line description of the quality issue, as Markdown text.'),
        ),
        migrations.AlterField(
            model_name='issue',
            name='description_en',
            field=markdownx.models.MarkdownxField(help_text='A one-line description of the quality issue, as Markdown text.', null=True),
        ),
        migrations.AlterField(
            model_name='issue',
            name='description_es',
            field=markdownx.models.MarkdownxField(help_text='A one-line description of the quality issue, as Markdown text.', null=True),
        ),
        migrations.AlterField(
            model_name='issue',
            name='description_ru',
            field=markdownx.models.MarkdownxField(help_text='A one-line description of the quality issue, as Markdown text.', null=True),
        ),
        migrations.AlterField(
            model_name='job',
            name='active',
            field=models.BooleanField(default=False, help_text="Set this as the active job for the collection from the collection's page."),
        ),
        migrations.AlterField(
            model_name='job',
            name='archived',
            field=models.BooleanField(default=False, help_text='Whether the temporary data created by job tasks has been deleted.', verbose_name='temporary data deleted'),
        ),
        migrations.AlterField(
            model_name='job',
            name='collection',
            field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='job', to='data_registry.collection', verbose_name='publication'),
        ),
        migrations.AlterField(
            model_name='job',
            name='context',
            field=models.JSONField(blank=True, help_text='Refer to the User Guide to interpret and use this information for debugging.', null=True),
        ),
        migrations.AlterField(
            model_name='job',
            name='date_from',
            field=models.DateField(blank=True, null=True, verbose_name='minimum release date'),
        ),
        migrations.AlterField(
            model_name='job',
            name='date_to',
            field=models.DateField(blank=True, null=True, verbose_name='maximum release date'),
        ),
        migrations.AlterField(
            model_name='job',
            name='end',
            field=models.DateTimeField(blank=True, db_index=True, null=True, verbose_name='job ended at'),
        ),
        migrations.AlterField(
            model_name='job',
            name='keep_all_data',
            field=models.BooleanField(default=False, help_text='By default, temporary data created by job tasks is deleted after the job is completed. To preserve this data for debugging, check this box. Then, when ready, uncheck this box and run the "cbom" management command.', verbose_name='preserve temporary data'),
        ),
        migrations.AlterField(
            model_name='job',
            name='ocid_prefix',
            field=models.CharField(blank=True, max_length=2048, null=True, verbose_name='OCID prefix'),
        ),
        migrations.AlterField(
            model_name='job',
            name='start',
            field=models.DateTimeField(blank=True, db_index=True, null=True, verbose_name='job started at'),
        ),
        migrations.AlterField(
            model_name='license',
            name='description',
            field=markdownx.models.MarkdownxField(blank=True, default='', help_text='A brief description of the permissions, conditions and limitations, as Markdown text.'),
            preserve_default=False,
        ),
        migrations.AlterField(
            model_name='license',
            name='description_en',
            field=markdownx.models.MarkdownxField(blank=True, help_text='A brief description of the permissions, conditions and limitations, as Markdown text.', null=True),
        ),
        migrations.AlterField(
            model_name='license',
            name='description_es',
            field=markdownx.models.MarkdownxField(blank=True, help_text='A brief description of the permissions, conditions and limitations, as Markdown text.', null=True),
        ),
        migrations.AlterField(
            model_name='license',
            name='description_ru',
            field=markdownx.models.MarkdownxField(blank=True, help_text='A brief description of the permissions, conditions and limitations, as Markdown text.', null=True),
        ),
        migrations.AlterField(
            model_name='license',
            name='name',
            field=models.CharField(blank=True, default='', help_text='The official name of the license.', max_length=2048),
            preserve_default=False,
        ),
        migrations.AlterField(
            model_name='license',
            name='name_en',
            field=models.CharField(blank=True, help_text='The official name of the license.', max_length=2048, null=True),
        ),
        migrations.AlterField(
            model_name='license',
            name='name_es',
            field=models.CharField(blank=True, help_text='The official name of the license.', max_length=2048, null=True),
        ),
        migrations.AlterField(
            model_name='license',
            name='name_ru',
            field=models.CharField(blank=True, help_text='The official name of the license.', max_length=2048, null=True),
        ),
        migrations.AlterField(
            model_name='license',
            name='url',
            field=models.CharField(blank=True, default='', help_text='The canonical URL of the license.', max_length=2048, verbose_name='URL'),
            preserve_default=False,
        ),
        migrations.AlterField(
            model_name='task',
            name='note',
            field=models.TextField(blank=True, help_text='Metadata about any failure.', null=True),
        ),
    ]
예제 #9
0
class Migration(migrations.Migration):

    initial = True

    dependencies = [
        ('user_manager', '0001_initial'),
        ('docs_manager', '0001_initial'),
        ('git_manager', '0001_initial'),
    ]

    operations = [
        migrations.CreateModel(
            name='Category',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('created', model_utils.fields.AutoCreatedField(default=django.utils.timezone.now, editable=False, verbose_name='created')),
                ('modified', model_utils.fields.AutoLastModifiedField(default=django.utils.timezone.now, editable=False, verbose_name='modified')),
                ('name', models.CharField(max_length=255)),
                ('description', models.TextField(blank=True, null=True)),
                ('slug', autoslug.fields.AutoSlugField(editable=False, populate_from='name')),
                ('parent', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='marketplace.Category')),
            ],
            options={
                'abstract': False,
            },
        ),
        migrations.CreateModel(
            name='Language',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('created', model_utils.fields.AutoCreatedField(default=django.utils.timezone.now, editable=False, verbose_name='created')),
                ('modified', model_utils.fields.AutoLastModifiedField(default=django.utils.timezone.now, editable=False, verbose_name='modified')),
                ('language', models.CharField(max_length=255)),
            ],
            options={
                'abstract': False,
            },
        ),
        migrations.CreateModel(
            name='Package',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('created', model_utils.fields.AutoCreatedField(default=django.utils.timezone.now, editable=False, verbose_name='created')),
                ('modified', model_utils.fields.AutoLastModifiedField(default=django.utils.timezone.now, editable=False, verbose_name='modified')),
                ('name', models.CharField(max_length=255, unique=True)),
                ('description', models.TextField()),
            ],
            options={
                'abstract': False,
            },
        ),
        migrations.CreateModel(
            name='PackageResource',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('created', model_utils.fields.AutoCreatedField(default=django.utils.timezone.now, editable=False, verbose_name='created')),
                ('modified', model_utils.fields.AutoLastModifiedField(default=django.utils.timezone.now, editable=False, verbose_name='modified')),
                ('resource', markdownx.models.MarkdownxField()),
                ('url', models.URLField(null=True)),
                ('added_by', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='user_manager.WorkbenchUser')),
            ],
            options={
                'abstract': False,
            },
        ),
        migrations.CreateModel(
            name='PackageVersion',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('created', model_utils.fields.AutoCreatedField(default=django.utils.timezone.now, editable=False, verbose_name='created')),
                ('modified', model_utils.fields.AutoLastModifiedField(default=django.utils.timezone.now, editable=False, verbose_name='modified')),
                ('version_nr', models.CharField(max_length=50)),
                ('changelog', models.TextField()),
                ('pre_release', models.BooleanField(default=False)),
                ('url', models.URLField(null=True)),
                ('added_by', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, to='user_manager.WorkbenchUser')),
            ],
        ),
        migrations.CreateModel(
            name='ExternalPackage',
            fields=[
                ('package_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='marketplace.Package')),
                ('project_page', models.URLField()),
            ],
            options={
                'abstract': False,
            },
            bases=('marketplace.package',),
        ),
        migrations.CreateModel(
            name='InternalPackage',
            fields=[
                ('package_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='marketplace.Package')),
                ('published', models.BooleanField(default=False)),
                ('docs', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, to='docs_manager.Docs')),
                ('git_repo', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='git_manager.GitRepository')),
            ],
            options={
                'abstract': False,
            },
            bases=('marketplace.package',),
        ),
        migrations.AddField(
            model_name='packageversion',
            name='package',
            field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='marketplace.Package'),
        ),
        migrations.AddField(
            model_name='packageresource',
            name='package',
            field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='marketplace.Package'),
        ),
        migrations.AddField(
            model_name='package',
            name='category',
            field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='marketplace.Category'),
        ),
        migrations.AddField(
            model_name='package',
            name='language',
            field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='marketplace.Language'),
        ),
        migrations.AddField(
            model_name='package',
            name='owner',
            field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='owner', to='user_manager.WorkbenchUser'),
        ),
        migrations.AddField(
            model_name='package',
            name='subscribed_users',
            field=models.ManyToManyField(to='user_manager.WorkbenchUser'),
        ),
        migrations.AlterUniqueTogether(
            name='packageversion',
            unique_together=set([('package', 'version_nr')]),
        ),
    ]