mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-03 21:43:21 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			15 lines
		
	
	
		
			448 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			15 lines
		
	
	
		
			448 B
		
	
	
	
		
			Python
		
	
	
	
	
	
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)
 | 
						|
    onboarding_step = models.CharField(max_length=30)
 | 
						|
    timestamp = models.DateTimeField(default=timezone_now)
 | 
						|
 | 
						|
    class Meta:
 | 
						|
        unique_together = ("user", "onboarding_step")
 |