d5377e94eb
Django backend that listens to the relay SSE global stream and dispatches APNs push notifications to subscribed iOS devices (TestFlight/sandbox).
30 lines
874 B
Python
30 lines
874 B
Python
# Generated by Django 6.0.5 on 2026-05-19 07:18
|
|
|
|
from django.db import migrations, models
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
initial = True
|
|
|
|
dependencies = []
|
|
|
|
operations = [
|
|
migrations.CreateModel(
|
|
name="Device",
|
|
fields=[
|
|
(
|
|
"id",
|
|
models.BigAutoField(
|
|
auto_created=True, primary_key=True, serialize=False, verbose_name="ID"
|
|
),
|
|
),
|
|
("feed", models.URLField(max_length=500)),
|
|
("device_token", models.CharField(max_length=200, unique=True)),
|
|
("created_at", models.DateTimeField(auto_now_add=True)),
|
|
],
|
|
options={
|
|
"indexes": [models.Index(fields=["feed"], name="subscriptio_feed_404095_idx")],
|
|
},
|
|
),
|
|
]
|