devicehub-django/device/migrations/0001_initial.py

40 lines
1.0 KiB
Python
Raw Normal View History

2024-07-18 15:21:22 +00:00
# Generated by Django 5.0.6 on 2024-07-17 14:57
2024-06-12 07:32:49 +00:00
import django.db.models.deletion
from django.conf import settings
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
operations = [
migrations.CreateModel(
name="Device",
fields=[
(
"id",
models.BigAutoField(
auto_created=True,
primary_key=True,
serialize=False,
verbose_name="ID",
),
),
2024-07-18 15:21:22 +00:00
("type", models.CharField(blank=True, max_length=64, null=True)),
2024-06-12 07:32:49 +00:00
(
"owner",
models.ForeignKey(
on_delete=django.db.models.deletion.CASCADE,
to=settings.AUTH_USER_MODEL,
),
),
],
),
]