1 # -*- coding: utf-8 -*-
2 from __future__ import unicode_literals
4 from django.db import models, migrations
5 import django.core.validators
8 class Migration(migrations.Migration):
11 ('samples', '0001_initial'),
15 migrations.CreateModel(
16 name='AccessionAgency',
18 ('id', models.AutoField(verbose_name='ID', auto_created=True, serialize=False, primary_key=True)),
19 ('name', models.CharField(max_length=255)),
20 ('homepage', models.URLField(blank=True)),
21 ('library_template', models.URLField(blank=True)),
24 'verbose_name_plural': 'Accession Agencies',
26 bases=(models.Model,),
28 migrations.CreateModel(
29 name='LibraryAccession',
31 ('id', models.AutoField(verbose_name='ID', auto_created=True, serialize=False, primary_key=True)),
32 ('accession', models.CharField(db_index=True, validators=[django.core.validators.RegexValidator('^[-A-Za-z0-9:.]*$', message='Please only use letters, digits, and :.-')], max_length=255)),
33 ('url', models.URLField(blank=True, null=True)),
34 ('created', models.DateTimeField()),
35 ('agency', models.ForeignKey(to='samples.AccessionAgency')),
36 ('library', models.ForeignKey(to='samples.Library')),
41 bases=(models.Model,),