disable search
[wolnelektury.git] / src / isbn / migrations / 0001_initial.py
1 # -*- coding: utf-8 -*-
2 from __future__ import unicode_literals
3
4 from django.db import migrations, models
5 import jsonfield.fields
6
7
8 class Migration(migrations.Migration):
9
10     dependencies = [
11     ]
12
13     operations = [
14         migrations.CreateModel(
15             name='ISBNPool',
16             fields=[
17                 ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
18                 ('prefix', models.CharField(max_length=10)),
19                 ('suffix_from', models.IntegerField()),
20                 ('suffix_to', models.IntegerField()),
21                 ('ref_from', models.IntegerField()),
22                 ('next_suffix', models.IntegerField()),
23             ],
24         ),
25         migrations.CreateModel(
26             name='ONIXRecord',
27             fields=[
28                 ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
29                 ('datestamp', models.DateField(auto_now=True)),
30                 ('suffix', models.IntegerField()),
31                 ('product_form', models.CharField(max_length=4)),
32                 ('product_form_detail', models.CharField(max_length=8, blank=True)),
33                 ('title', models.CharField(max_length=256)),
34                 ('part_number', models.CharField(max_length=64, blank=True)),
35                 ('contributors', jsonfield.fields.JSONField()),
36                 ('edition_type', models.CharField(max_length=4)),
37                 ('edition_number', models.IntegerField(default=1)),
38                 ('language', models.CharField(max_length=4)),
39                 ('imprint', models.CharField(max_length=256)),
40                 ('publishing_date', models.DateField()),
41                 ('isbn_pool', models.ForeignKey(to='isbn.ISBNPool')),
42             ],
43         ),
44     ]