shimatta-kenkyusho/shimatta_kenkyusho/parts/migrations/0008_auto_20220101_1250.py

35 lines
1.3 KiB
Python
Raw Permalink Normal View History

# Generated by Django 3.2.5 on 2022-01-01 12:50
from django.conf import settings
import django.core.validators
from django.db import migrations, models
import django.db.models.deletion
import uuid
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('parts', '0007_stock_lot'),
]
operations = [
migrations.AlterField(
model_name='stock',
name='lot',
field=models.CharField(blank=True, default='', max_length=255),
preserve_default=False,
),
migrations.CreateModel(
name='QrPrintJob',
fields=[
('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False, unique=True)),
('qrdata', models.CharField(blank=True, max_length=256)),
('text', models.TextField(blank=True, max_length=512)),
('print_count', models.PositiveIntegerField(default=1, validators=[django.core.validators.MinValueValidator(0), django.core.validators.MaxValueValidator(32)])),
('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
],
),
]