37 lines
1.4 KiB
Python
37 lines
1.4 KiB
Python
# Generated by Django 5.2.3 on 2025-06-15 08:00
|
|
|
|
import django.core.validators
|
|
import django.db.models.deletion
|
|
from django.db import migrations, models
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
initial = True
|
|
|
|
dependencies = [
|
|
]
|
|
|
|
operations = [
|
|
migrations.CreateModel(
|
|
name='SIPAccount',
|
|
fields=[
|
|
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
|
('ip', models.GenericIPAddressField()),
|
|
('username', models.CharField(max_length=255)),
|
|
('password', models.CharField(max_length=255)),
|
|
('display_name', models.CharField(max_length=255)),
|
|
('tone_scheme', models.CharField(max_length=10)),
|
|
],
|
|
),
|
|
migrations.CreateModel(
|
|
name='SnomPhone',
|
|
fields=[
|
|
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
|
('mac_address', models.CharField(max_length=12, unique=True, validators=[django.core.validators.RegexValidator('^[0-9A-F]{12}$')])),
|
|
('phone_name', models.CharField(max_length=255)),
|
|
('admin_password', models.CharField(max_length=255)),
|
|
('sip_account', models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, to='settings.sipaccount')),
|
|
],
|
|
),
|
|
]
|