Skip to content

Commit

Permalink
changes
Browse files Browse the repository at this point in the history
  • Loading branch information
BitTheByte committed Apr 11, 2024
1 parent a92244f commit cb7f67e
Show file tree
Hide file tree
Showing 2 changed files with 64 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
# Generated by Django 5.0.4 on 2024-04-11 05:16

import uuid

import django.utils.timezone
from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
("report", "0012_webhookreport_file_param_webhookreport_message_param"),
]

operations = [
migrations.AddField(
model_name="telegramreport",
name="created_at",
field=models.DateTimeField(
auto_now_add=True, default=django.utils.timezone.now
),
preserve_default=False,
),
migrations.AddField(
model_name="telegramreport",
name="updated_at",
field=models.DateTimeField(auto_now=True),
),
migrations.AddField(
model_name="webhookreport",
name="created_at",
field=models.DateTimeField(
auto_now_add=True, default=django.utils.timezone.now
),
preserve_default=False,
),
migrations.AddField(
model_name="webhookreport",
name="updated_at",
field=models.DateTimeField(auto_now=True),
),
migrations.AlterField(
model_name="telegramreport",
name="id",
field=models.UUIDField(
default=uuid.uuid4, editable=False, primary_key=True, serialize=False
),
),
migrations.AlterField(
model_name="webhookreport",
name="id",
field=models.UUIDField(
default=uuid.uuid4, editable=False, primary_key=True, serialize=False
),
),
migrations.AlterField(
model_name="webhookreport",
name="message_param",
field=models.CharField(default="content"),
),
]
4 changes: 3 additions & 1 deletion monitorizer/report/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,10 @@
from django.dispatch import receiver
from django_celery_beat.models import IntervalSchedule, PeriodicTask

from monitorizer.server.models import BaseModel

class Report(models.Model):

class Report(BaseModel):
class FilterTypes(models.TextChoices):
STARTS_WITH = "value__startswith", "Starts with"
ENDS_WITH = "value__endswith", "Ends with"
Expand Down

0 comments on commit cb7f67e

Please sign in to comment.