33 lines
1.1 KiB
Python
33 lines
1.1 KiB
Python
|
# Generated by Django 4.2.3 on 2023-07-27 14:35
|
||
|
|
||
|
from django.conf import settings
|
||
|
from django.db import migrations, models
|
||
|
import django.db.models.deletion
|
||
|
|
||
|
|
||
|
class Migration(migrations.Migration):
|
||
|
|
||
|
initial = True
|
||
|
|
||
|
dependencies = [
|
||
|
('auth', '0012_alter_user_first_name_max_length'),
|
||
|
]
|
||
|
|
||
|
operations = [
|
||
|
migrations.CreateModel(
|
||
|
name='GotifyUser',
|
||
|
fields=[
|
||
|
('user', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, primary_key=True, serialize=False, to=settings.AUTH_USER_MODEL)),
|
||
|
('id', models.PositiveIntegerField(verbose_name='Gotify User ID')),
|
||
|
],
|
||
|
),
|
||
|
migrations.CreateModel(
|
||
|
name='GotifyApplication',
|
||
|
fields=[
|
||
|
('user', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, primary_key=True, serialize=False, to='gotify.gotifyuser')),
|
||
|
('id', models.PositiveIntegerField(verbose_name='Gotify Application ID')),
|
||
|
('token', models.CharField(max_length=256, verbose_name='Gotify Application Token')),
|
||
|
],
|
||
|
),
|
||
|
]
|