2019-10-03 02:01:36 +02:00
|
|
|
# Generated by Django 1.11.24 on 2019-10-03 00:10
|
|
|
|
|
|
|
|
import django.db.models.deletion
|
2020-01-14 21:59:46 +01:00
|
|
|
from django.db import migrations, models
|
2019-10-03 02:01:36 +02:00
|
|
|
|
|
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
|
|
|
|
dependencies = [
|
2021-02-12 08:20:45 +01:00
|
|
|
("zilencer", "0017_installationcount_indexes"),
|
2019-10-03 02:01:36 +02:00
|
|
|
]
|
|
|
|
|
|
|
|
operations = [
|
|
|
|
migrations.CreateModel(
|
2021-02-12 08:20:45 +01:00
|
|
|
name="RemoteRealmAuditLog",
|
2019-10-03 02:01:36 +02: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
|
|
|
("realm_id", models.IntegerField(db_index=True)),
|
|
|
|
("remote_id", models.IntegerField(db_index=True)),
|
|
|
|
("event_time", models.DateTimeField(db_index=True)),
|
|
|
|
("backfilled", models.BooleanField(default=False)),
|
|
|
|
("extra_data", models.TextField(null=True)),
|
|
|
|
("event_type", models.PositiveSmallIntegerField()),
|
2021-02-12 08:19:30 +01:00
|
|
|
(
|
2021-02-12 08:20:45 +01:00
|
|
|
"server",
|
2021-02-12 08:19:30 +01:00
|
|
|
models.ForeignKey(
|
2021-02-12 08:20:45 +01:00
|
|
|
on_delete=django.db.models.deletion.CASCADE, to="zilencer.RemoteZulipServer"
|
2021-02-12 08:19:30 +01:00
|
|
|
),
|
|
|
|
),
|
2019-10-03 02:01:36 +02:00
|
|
|
],
|
|
|
|
),
|
|
|
|
]
|