33 lines
1.4 KiB
Python
33 lines
1.4 KiB
Python
|
# Generated by Django 2.1.3 on 2018-12-20 16:41
|
||
|
|
||
|
from django.db import migrations, models
|
||
|
import django.db.models.deletion
|
||
|
|
||
|
|
||
|
class Migration(migrations.Migration):
|
||
|
|
||
|
dependencies = [
|
||
|
('manager', '0014_device_model'),
|
||
|
]
|
||
|
|
||
|
operations = [
|
||
|
migrations.CreateModel(
|
||
|
name='WiFi',
|
||
|
fields=[
|
||
|
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||
|
('serial', models.CharField(max_length=12, unique=True, verbose_name='Device Serial Number')),
|
||
|
('ssid', models.CharField(max_length=32, verbose_name='WiFi SSID')),
|
||
|
('bssid', models.CharField(blank=True, max_length=64, null=True, verbose_name='WiFi BSSID')),
|
||
|
('key', models.CharField(max_length=32, verbose_name='WiFi key')),
|
||
|
('ip', models.CharField(blank=True, max_length=15, null=True, verbose_name='Configuration IP')),
|
||
|
('user', models.CharField(blank=True, max_length=32, null=True, verbose_name='Configuration User Name')),
|
||
|
('password', models.CharField(blank=True, max_length=32, null=True, verbose_name='Configuration Password')),
|
||
|
],
|
||
|
),
|
||
|
migrations.AddField(
|
||
|
model_name='device',
|
||
|
name='wifi',
|
||
|
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to='manager.WiFi'),
|
||
|
),
|
||
|
]
|