2017-01-24 01:48:35 +01:00
|
|
|
# Generated by Django 1.10.5 on 2017-03-28 00:22
|
|
|
|
import django.db.models.deletion
|
|
|
|
import django.utils.timezone
|
2017-11-16 00:44:00 +01:00
|
|
|
from django.conf import settings
|
|
|
|
from django.db import migrations, models
|
2017-01-24 01:48:35 +01:00
|
|
|
|
2020-01-14 21:59:46 +01:00
|
|
|
|
2017-01-24 01:48:35 +01:00
|
|
|
class Migration(migrations.Migration):
|
|
|
|
dependencies = [
|
2021-02-12 08:20:45 +01:00
|
|
|
("zerver", "0069_realmauditlog_extra_data"),
|
2017-01-24 01:48:35 +01:00
|
|
|
]
|
|
|
|
|
|
|
|
operations = [
|
|
|
|
migrations.CreateModel(
|
2021-02-12 08:20:45 +01:00
|
|
|
name="UserHotspot",
|
2017-01-24 01:48:35 +01:00
|
|
|
fields=[
|
2021-02-12 08:19:30 +01:00
|
|
|
(
|
2021-02-12 08:20:45 +01:00
|
|
|
"id",
|
2021-02-12 08:19:30 +01:00
|
|
|
models.AutoField(
|
2021-02-12 08:20:45 +01:00
|
|
|
auto_created=True, primary_key=True, serialize=False, verbose_name="ID"
|
2021-02-12 08:19:30 +01:00
|
|
|
),
|
|
|
|
),
|
2021-02-12 08:20:45 +01:00
|
|
|
("hotspot", models.CharField(max_length=30)),
|
|
|
|
("timestamp", models.DateTimeField(default=django.utils.timezone.now)),
|
2021-02-12 08:19:30 +01:00
|
|
|
(
|
2021-02-12 08:20:45 +01:00
|
|
|
"user",
|
2021-02-12 08:19:30 +01:00
|
|
|
models.ForeignKey(
|
|
|
|
on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL
|
|
|
|
),
|
|
|
|
),
|
2017-01-24 01:48:35 +01:00
|
|
|
],
|
|
|
|
),
|
|
|
|
migrations.AlterUniqueTogether(
|
2021-02-12 08:20:45 +01:00
|
|
|
name="userhotspot",
|
|
|
|
unique_together={("user", "hotspot")},
|
2017-01-24 01:48:35 +01:00
|
|
|
),
|
|
|
|
]
|