2021-06-03 15:22:16 +02:00
|
|
|
from django.contrib.postgres.fields import ArrayField
|
|
|
|
from django.db import models
|
|
|
|
|
|
|
|
from posthog.models.property_definition import PropertyDefinition
|
|
|
|
|
|
|
|
|
|
|
|
class EnterprisePropertyDefinition(PropertyDefinition):
|
2024-08-22 11:42:25 +02:00
|
|
|
description = models.TextField(blank=True, null=True, default="")
|
|
|
|
updated_at = models.DateTimeField(auto_now=True)
|
2021-06-03 15:22:16 +02:00
|
|
|
updated_by = models.ForeignKey("posthog.User", null=True, on_delete=models.SET_NULL, blank=True)
|
2022-02-18 17:47:05 +01:00
|
|
|
|
2024-08-22 11:42:25 +02:00
|
|
|
verified = models.BooleanField(default=False, blank=True)
|
|
|
|
verified_at = models.DateTimeField(null=True, blank=True)
|
2024-11-08 01:45:21 +01:00
|
|
|
|
2023-06-08 12:52:25 +02:00
|
|
|
verified_by = models.ForeignKey(
|
2023-10-26 12:38:15 +02:00
|
|
|
"posthog.User",
|
|
|
|
null=True,
|
|
|
|
on_delete=models.SET_NULL,
|
|
|
|
blank=True,
|
|
|
|
related_name="property_verifying_user",
|
2023-06-08 12:52:25 +02:00
|
|
|
)
|
|
|
|
|
2022-02-18 17:47:05 +01:00
|
|
|
# Deprecated in favour of app-wide tagging model. See EnterpriseTaggedItem
|
2022-06-23 18:53:35 +02:00
|
|
|
deprecated_tags: ArrayField = ArrayField(models.CharField(max_length=32), null=True, blank=True, default=list)
|
|
|
|
deprecated_tags_v2: ArrayField = ArrayField(
|
2023-10-26 12:38:15 +02:00
|
|
|
models.CharField(max_length=32),
|
|
|
|
null=True,
|
|
|
|
blank=True,
|
|
|
|
default=None,
|
|
|
|
db_column="tags",
|
2022-02-18 22:29:16 +01:00
|
|
|
)
|