0
0
mirror of https://github.com/PostHog/posthog.git synced 2024-11-29 03:04:16 +01:00
posthog/ee/models/event_definition.py
Alex Gyujin Kim 204ca1bc92
Add verified properties to event definitions (#8081)
Co-authored-by: Paolo D'Amico <paolodamico@users.noreply.github.com>
2022-01-18 08:38:55 -06:00

18 lines
1002 B
Python

from django.contrib.postgres.fields import ArrayField
from django.db import models
from posthog.models.event_definition import EventDefinition
class EnterpriseEventDefinition(EventDefinition):
owner = models.ForeignKey("posthog.User", null=True, on_delete=models.SET_NULL, related_name="event_definitions",)
description: models.CharField = models.CharField(max_length=400, blank=True)
tags: ArrayField = ArrayField(models.CharField(max_length=32), null=True, blank=True, default=list)
updated_at: models.DateTimeField = models.DateTimeField(auto_now=True)
updated_by = models.ForeignKey("posthog.User", null=True, on_delete=models.SET_NULL, blank=True)
verified: models.BooleanField = models.BooleanField(default=False, null=False, blank=True)
verified_at: models.DateTimeField = models.DateTimeField(null=True, blank=True)
verified_by = models.ForeignKey(
"posthog.User", null=True, on_delete=models.SET_NULL, blank=True, related_name="verifying_user"
)