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

    dependencies = [
        ('profiles', '0026_auto_20161123_1358'),
    ]

    operations = [
        migrations.AlterField(
            model_name='profile',
            name='schemas',
            field=JSONField(default={}),
        ),
        migrations.AlterField(
            model_name='profile',
            name='specification',
            field=JSONField(default={}, blank=True),
        ),
        migrations.AlterField(
            model_name='profile',
            name='specification_data',
            field=JSONField(default={}, blank=True),
        ),
        migrations.AlterField(
            model_name='profile',
            name='structure',
            field=JSONField(default={}, blank=True),
        ),
        migrations.AlterField(
            model_name='profile',
            name='template',
            field=JSONField(default={}, blank=True),
        ),
    ]
예제 #2
0
class Migration(migrations.Migration):

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

    operations = [
        migrations.CreateModel(
            name='Profile',
            fields=[
                ('id',
                 models.UUIDField(default=uuid.uuid4,
                                  editable=False,
                                  primary_key=True,
                                  serialize=False)),
                ('profile_type',
                 models.CharField(choices=[
                     ('transfer_project', 'Transfer Project'),
                     ('content_type', 'Content Type'),
                     ('data_selection', 'Data Selection'),
                     ('classification', 'Classification'),
                     ('import', 'Import'),
                     ('submit_description', 'Submit Description'),
                     ('sip', 'SIP'), ('aip', 'AIP'), ('dip', 'DIP'),
                     ('workflow', 'Workflow'),
                     ('preservation_description', 'Preservation Description')
                 ],
                                  max_length=255)),
                ('name', models.CharField(max_length=255)),
                ('type', models.CharField(blank=True, max_length=255)),
                ('status', models.CharField(blank=True, max_length=255)),
                ('label', models.CharField(blank=True, max_length=255)),
                ('representation_info',
                 models.CharField(blank=True, max_length=255)),
                ('preservation_descriptive_info',
                 models.CharField(blank=True, max_length=255)),
                ('supplemental', models.CharField(blank=True, max_length=255)),
                ('access_constraints',
                 models.CharField(blank=True, max_length=255)),
                ('datamodel_reference',
                 models.CharField(blank=True, max_length=255)),
                ('additional', models.CharField(blank=True, max_length=255)),
                ('submission_method',
                 models.CharField(blank=True, max_length=255)),
                ('submission_schedule',
                 models.CharField(blank=True, max_length=255)),
                ('submission_data_inventory',
                 models.CharField(blank=True, max_length=255)),
                ('structure', models.TextField()),
                ('template', JSONField(null=True)),
                ('specification', JSONField(null=True)),
                ('specification_data', JSONField(null=True)),
            ],
            options={
                'ordering': ['name'],
                'verbose_name': 'Profile',
            },
        ),
    ]
예제 #3
0
class extensionPackage(models.Model):
    id = models.AutoField(primary_key=True)
    allElements = JSONField(null=True)
    existingElements = JSONField(null=True)
    allAttributes = JSONField(null=True)

    prefix = models.CharField(max_length=20)
    schemaURL = models.URLField()
    targetNamespace = models.CharField(max_length=255)
    nsmap = JSONField(default={})
예제 #4
0
class templatePackage(models.Model):
    existingElements = JSONField(null=True)
    # treeData = JSONField(null=True)
    allElements = JSONField(null=True)
    structure = JSONField(default=[])
    # isTreeCreated = models.BooleanField(default=True)
    name = models.CharField(max_length=255, primary_key=True)
    root_element = models.CharField(max_length=55, default='')
    extensions = models.ManyToManyField(extensionPackage)

    prefix = models.CharField(max_length=20)
    schemaURL = models.URLField()
    targetNamespace = models.CharField(max_length=255)
    nsmap = JSONField(default={})
예제 #5
0
class Migration(migrations.Migration):

    dependencies = [
        migrations.swappable_dependency(settings.AUTH_USER_MODEL),
        ('tags', '0016_auto_20190305_1605'),
    ]

    operations = [
        migrations.CreateModel(
            name='Search',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('query', JSONField()),
                ('name', models.CharField(max_length=255)),
                ('user',
                 models.ForeignKey(on_delete=django.db.models.deletion.CASCADE,
                                   related_name='searches',
                                   to=settings.AUTH_USER_MODEL)),
            ],
        ),
    ]
class Migration(migrations.Migration):

    dependencies = [
        migrations.swappable_dependency(settings.AUTH_USER_MODEL),
        ('ip', '0083_auto_20191015_2358'),
        ('profiles', '0051_auto_20190611_1545'),
    ]

    operations = [
        migrations.CreateModel(
            name='SubmissionAgreementIPData',
            fields=[
                ('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)),
                ('data', JSONField(default={})),
                ('version', models.IntegerField(default=0)),
                ('created', models.DateTimeField(auto_now_add=True)),
                ('information_package', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='ip.InformationPackage')),
                ('submission_agreement', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='profiles.SubmissionAgreement')),
                ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
            ],
            options={
                'ordering': ['version'],
                'unique_together': {('submission_agreement', 'information_package', 'version')},
            },
        ),
    ]
class Migration(migrations.Migration):

    dependencies = [
        ('profiles', '0046_auto_20180128_2014'),
    ]

    operations = [
        migrations.CreateModel(
            name='ProfileIPDataTemplate',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('name', models.CharField(max_length=50)),
                ('data', JSONField(default={})),
                ('created', models.DateTimeField(auto_now_add=True)),
                ('profile',
                 models.ForeignKey(on_delete=django.db.models.deletion.CASCADE,
                                   to='profiles.Profile')),
            ],
            options={
                'ordering': ['created'],
            },
        ),
    ]
예제 #8
0
class ProfileIPDataTemplate(models.Model):
    name = models.CharField(max_length=50, blank=False)
    data = JSONField(default={})
    created = models.DateTimeField(auto_now_add=True)
    profile = models.ForeignKey('Profile', on_delete=models.CASCADE)

    class Meta:
        ordering = ['created']
class Migration(migrations.Migration):

    dependencies = [
        ('ProfileMaker', '0009_auto_20161020_0959'),
    ]

    operations = [
        migrations.AddField(
            model_name='extensionpackage',
            name='nsmap',
            field=JSONField(default={}),
        ),
        migrations.AddField(
            model_name='templatepackage',
            name='nsmap',
            field=JSONField(default={}),
        ),
    ]
예제 #10
0
class Migration(migrations.Migration):

    dependencies = [
        ('profiles', '0035_auto_20170817_1109'),
    ]

    operations = [
        migrations.AlterField(
            model_name='profile',
            name='structure',
            field=JSONField(blank=True, default=[]),
        ),
        migrations.AlterField(
            model_name='profile',
            name='template',
            field=JSONField(blank=True, default=[]),
        ),
        migrations.RunPython(forwards_func, reverse_func),
    ]
예제 #11
0
class Migration(migrations.Migration):

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

    operations = [
        migrations.CreateModel(
            name='finishedTemplate',
            fields=[
                ('name',
                 models.CharField(max_length=255,
                                  primary_key=True,
                                  serialize=False)),
                ('template', JSONField(null=True)),
                ('form', JSONField(null=True)),
                ('data', JSONField(null=True)),
            ],
        ),
    ]
예제 #12
0
class Migration(migrations.Migration):

    dependencies = [
        ('profiles', '0014_auto_20160913_1559'),
    ]

    operations = [
        migrations.AddField(
            model_name='profile',
            name='schemas',
            field=JSONField(null=True),
        ),
    ]
예제 #13
0
class Migration(migrations.Migration):

    dependencies = [
        ('ip', '0058_auto_20171128_0016'),
    ]

    operations = [
        migrations.AddField(
            model_name='workarea',
            name='successfully_validated',
            field=JSONField(default=None, null=True),
        ),
    ]
예제 #14
0
class Migration(migrations.Migration):

    dependencies = [
        ('profiles', '0027_auto_20170315_2129'),
    ]

    operations = [
        migrations.AddField(
            model_name='submissionagreement',
            name='template',
            field=JSONField(default={}),
        ),
    ]
예제 #15
0
class Migration(migrations.Migration):

    dependencies = [
        ('tags', '0027_structure_template'),
    ]

    operations = [
        migrations.AddField(
            model_name='tagversion',
            name='custom_fields',
            field=JSONField(default={}),
        ),
    ]
예제 #16
0
class Migration(migrations.Migration):

    dependencies = [
        ('WorkflowEngine', '0072_auto_20180813_1329'),
    ]

    operations = [
        migrations.AddField(
            model_name='processstep',
            name='context',
            field=JSONField(default={}, null=True),
        ),
    ]
예제 #17
0
class Migration(migrations.Migration):

    dependencies = [
        ('fixity', '0002_auto_20171122_1515'),
    ]

    operations = [
        migrations.AddField(
            model_name='validation',
            name='specification',
            field=JSONField(null=True),
        ),
    ]
class Migration(migrations.Migration):

    dependencies = [
        ('ProfileMaker', '0010_auto_20170808_1114'),
    ]

    operations = [
        migrations.AddField(
            model_name='templatepackage',
            name='structure',
            field=JSONField(default=[]),
        ),
    ]
class Migration(migrations.Migration):

    dependencies = [
        ('WorkflowEngine', '0041_auto_20160825_1753'),
    ]

    operations = [
        migrations.AlterField(
            model_name='processtask',
            name='params',
            field=JSONField(null=True),
        ),
    ]
예제 #20
0
class Migration(migrations.Migration):

    dependencies = [
        ('profiles', '0029_submissionagreement_template'),
    ]

    operations = [
        migrations.AlterField(
            model_name='submissionagreement',
            name='template',
            field=JSONField(default=[]),
        ),
    ]
예제 #21
0
class Migration(migrations.Migration):

    dependencies = [
        ('WorkflowEngine', '0043_auto_20160831_0740'),
    ]

    operations = [
        migrations.AddField(
            model_name='processtask',
            name='result_params',
            field=JSONField(default={}, null=True),
        ),
    ]
예제 #22
0
class Migration(migrations.Migration):

    dependencies = [
        ('tags', '0062_nodenotetype_history'),
    ]

    operations = [
        migrations.AddField(
            model_name='tagversiontype',
            name='custom_fields_template',
            field=JSONField(blank=True, default=[]),
        ),
    ]
예제 #23
0
class Migration(migrations.Migration):

    dependencies = [
        ('tags', '0011_auto_20180625_1511'),
    ]

    operations = [
        migrations.AddField(
            model_name='structure',
            name='specification',
            field=JSONField(default={}),
        ),
    ]
예제 #24
0
class Migration(migrations.Migration):

    dependencies = [
        ('profiles', '0010_auto_20160905_1900'),
    ]

    operations = [
        migrations.RunPython(forwards_func, reverse_func),
        migrations.AlterField(
            model_name='profile',
            name='structure',
            field=JSONField(null=True),
        ),
    ]
class Migration(migrations.Migration):

    dependencies = [
        ('ProfileMaker', '0002_finishedtemplate'),
    ]

    operations = [
        migrations.AddField(
            model_name='templatepackage',
            name='tempates',
            field=JSONField(null=True),
        ),
        migrations.AlterField(
            model_name='templatepackage',
            name='elements',
            field=JSONField(null=True),
        ),
        migrations.AlterField(
            model_name='templatepackage',
            name='structure',
            field=JSONField(null=True),
        ),
    ]
예제 #26
0
class ProfileIPData(models.Model):
    id = models.UUIDField(primary_key=True, default=uuid.uuid4, editable=False)
    relation = models.ForeignKey('ProfileIP',
                                 on_delete=models.CASCADE,
                                 related_name='data_versions')
    data = JSONField(default={})
    version = models.IntegerField(default=0)
    user = models.ForeignKey(settings.AUTH_USER_MODEL,
                             on_delete=models.CASCADE)
    created = models.DateTimeField(auto_now_add=True)

    class Meta:
        ordering = ['version']
        permissions = (('profile_management', 'Can manage profiles'), )
class Migration(migrations.Migration):

    dependencies = [
        ('ProfileMaker', '0007_auto_20160908_1428'),
    ]

    operations = [
        migrations.CreateModel(
            name='extensionPackage',
            fields=[
                ('id', models.AutoField(primary_key=True, serialize=False)),
                ('namespace', models.CharField(max_length=255)),
                ('allElements', JSONField(null=True)),
                ('existingElements', JSONField(null=True)),
                ('allAttributes', JSONField(null=True)),
            ],
        ),
        migrations.AddField(
            model_name='templatepackage',
            name='extensions',
            field=models.ManyToManyField(to='ProfileMaker.extensionPackage'),
        ),
    ]
예제 #28
0
class MaintenanceRule(models.Model):
    id = models.UUIDField(primary_key=True, default=uuid.uuid4, editable=False)
    name = models.CharField(max_length=255)
    description = models.TextField(blank=True)

    # cron syntax, blank for manual only appraisal
    frequency = models.CharField(max_length=255, blank=True, default='')

    # empty for all files in IP or all fields in tree node
    specification = JSONField(null=True, default=None)
    user = models.ForeignKey(User, on_delete=models.SET_NULL, null=True)
    public = models.BooleanField(default=True)

    class Meta:
        abstract = True
예제 #29
0
class Migration(migrations.Migration):

    dependencies = [
        ('ip', '0064_informationpackage_appraisal_date'),
        ('maintenance', '0001_initial'),
    ]

    operations = [
        migrations.CreateModel(
            name='ConversionJob',
            fields=[
                ('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)),
                ('status', models.CharField(choices=[('RECEIVED', 'RECEIVED'), ('RETRY', 'RETRY'), ('REVOKED', 'REVOKED'), ('SUCCESS', 'SUCCESS'), ('STARTED', 'STARTED'), ('FAILURE', 'FAILURE'), ('PENDING', 'PENDING')], default='PENDING', max_length=50)),
                ('start_date', models.DateTimeField(null=True)),
                ('end_date', models.DateTimeField(null=True)),
            ],
        ),
        migrations.CreateModel(
            name='ConversionJobEntry',
            fields=[
                ('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)),
                ('start_date', models.DateTimeField(null=True)),
                ('end_date', models.DateTimeField(null=True)),
                ('old_document', models.CharField(blank=True, max_length=255)),
                ('new_document', models.CharField(blank=True, max_length=255)),
                ('tool', models.CharField(blank=True, max_length=255)),
                ('ip', models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='conversion_job_entries', to='ip.InformationPackage')),
                ('job', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='entries', to='maintenance.ConversionJob')),
            ],
        ),
        migrations.CreateModel(
            name='ConversionRule',
            fields=[
                ('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)),
                ('name', models.CharField(max_length=255)),
                ('frequency', models.CharField(blank=True, default='', max_length=255)),
                ('specification', JSONField(default=None, null=True)),
                ('information_packages', models.ManyToManyField(related_name='conversion_rules', to='ip.InformationPackage')),
            ],
        ),
        migrations.AddField(
            model_name='conversionjob',
            name='rule',
            field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='jobs', to='maintenance.ConversionRule'),
        ),
    ]
예제 #30
0
class Validation(models.Model):
    id = models.UUIDField(primary_key=True, default=uuid.uuid4, editable=False)
    filename = models.CharField(max_length=255)
    validator = models.CharField(max_length=255)
    specification = JSONField(null=True)
    time_started = models.DateTimeField(null=True)
    time_done = models.DateTimeField(null=True)
    passed = models.NullBooleanField(null=True)
    required = models.BooleanField(default=True)
    message = models.TextField(max_length=255, blank=True)
    information_package = models.ForeignKey('ip.InformationPackage', on_delete=models.CASCADE, null=True)
    task = models.ForeignKey(
        'WorkflowEngine.ProcessTask',
        on_delete=models.CASCADE,
        null=True,
        related_name='validations',
    )
    responsible = models.ForeignKey(User, on_delete=models.SET_NULL, null=True)