41 lines
1.5 KiB
Python
41 lines
1.5 KiB
Python
# Generated by Django 5.0 on 2023-12-13 02:55
|
|
|
|
import django.db.models.deletion
|
|
from django.db import migrations, models
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
initial = True
|
|
|
|
dependencies = [
|
|
]
|
|
|
|
operations = [
|
|
migrations.CreateModel(
|
|
name='AnonymousUser',
|
|
fields=[
|
|
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
|
('uuid', models.UUIDField(unique=True)),
|
|
],
|
|
),
|
|
migrations.CreateModel(
|
|
name='MowerVersion',
|
|
fields=[
|
|
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
|
('version', models.CharField(max_length=40, unique=True)),
|
|
],
|
|
),
|
|
migrations.CreateModel(
|
|
name='RunOrder',
|
|
fields=[
|
|
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
|
('time', models.DateTimeField(auto_now_add=True)),
|
|
('facility_level', models.IntegerField()),
|
|
('skill', models.CharField(choices=[('p', '但书'), ('t', '龙舌兰')], max_length=1)),
|
|
('grandet_mode', models.BooleanField()),
|
|
('uuid', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='run_order.anonymoususer')),
|
|
('version', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='run_order.mowerversion')),
|
|
],
|
|
),
|
|
]
|