2023-12-15 20:51:58 +01:00
|
|
|
from django.db import models
|
|
|
|
from django.db.models import CASCADE
|
|
|
|
from django.utils.timezone import now as timezone_now
|
|
|
|
|
|
|
|
from zerver.models.users import UserProfile
|
|
|
|
|
|
|
|
|
|
|
|
class OnboardingStep(models.Model):
|
|
|
|
user = models.ForeignKey(UserProfile, on_delete=CASCADE)
|
2024-04-05 13:32:42 +02:00
|
|
|
onboarding_step = models.CharField(max_length=40)
|
2023-12-15 20:51:58 +01:00
|
|
|
timestamp = models.DateTimeField(default=timezone_now)
|
|
|
|
|
|
|
|
class Meta:
|
|
|
|
unique_together = ("user", "onboarding_step")
|