expalert/apps/migrations/0001_initial.py
2023-12-04 16:09:40 +01:00

47 lines
1.5 KiB
Python

# Generated by Django 4.2.5 on 2023-10-02 18:25
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import uuid
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
operations = [
migrations.CreateModel(
name="App",
fields=[
(
"id",
models.UUIDField(
default=uuid.uuid4,
editable=False,
primary_key=True,
serialize=False,
),
),
("name", models.CharField(max_length=100)),
("key1", models.UUIDField(default=uuid.uuid4, editable=False)),
("key2", models.UUIDField(default=uuid.uuid4, editable=False)),
(
"registration_key",
models.UUIDField(default=uuid.uuid4, editable=False),
),
("registered", models.BooleanField(default=False)),
("last_heartbeat", models.DateTimeField(blank=True, null=True)),
(
"owner",
models.ForeignKey(
on_delete=django.db.models.deletion.CASCADE,
to=settings.AUTH_USER_MODEL,
),
),
],
),
]