0
0
mirror of https://github.com/PostHog/posthog.git synced 2024-12-01 12:21:02 +01:00
posthog/ee/models/property_definition.py
Tom Owers 5513be7731
chore: upgraded Ruff linter (#18188)
* Upgraded Ruff linter

* Formatted whole codebase with new ruff rules

* Revert import removal

* Fixed mypi issues or added ignores

* Fixed schema formatting

* Fixed hogvm failing tests

* Remove duplicate key in list
2023-10-26 12:38:15 +02:00

31 lines
1.2 KiB
Python

from django.contrib.postgres.fields import ArrayField
from django.db import models
from posthog.models.property_definition import PropertyDefinition
class EnterprisePropertyDefinition(PropertyDefinition):
description: models.TextField = models.TextField(blank=True, null=True, default="")
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, 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="property_verifying_user",
)
# Deprecated in favour of app-wide tagging model. See EnterpriseTaggedItem
deprecated_tags: ArrayField = ArrayField(models.CharField(max_length=32), null=True, blank=True, default=list)
deprecated_tags_v2: ArrayField = ArrayField(
models.CharField(max_length=32),
null=True,
blank=True,
default=None,
db_column="tags",
)