hackens-orga/agent/migrations/0001_initial.py

41 lines
1.1 KiB
Python
Raw Permalink Normal View History

2023-03-06 11:58:53 +01:00
# Generated by Django 4.1.6 on 2023-02-24 15:18
2023-02-08 02:04:34 +01:00
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
operations = [
migrations.CreateModel(
2023-03-06 11:58:53 +01:00
name="Agent",
2023-02-08 02:04:34 +01:00
fields=[
2023-03-06 11:58:53 +01:00
(
"id",
models.BigAutoField(
auto_created=True,
primary_key=True,
serialize=False,
verbose_name="ID",
),
),
("name", models.CharField(max_length=255)),
(
"user",
models.OneToOneField(
null=True,
on_delete=django.db.models.deletion.SET_NULL,
to=settings.AUTH_USER_MODEL,
),
),
2023-02-08 02:04:34 +01:00
],
),
]