Add deleteduser model
This commit is contained in:
		
					parent
					
						
							
								ba88bbf6bd
							
						
					
				
			
			
				commit
				
					
						c40331fcc1
					
				
			
		
					 2 changed files with 34 additions and 0 deletions
				
			
		|  | @ -265,6 +265,15 @@ class CreditCards(models.Model): | |||
|         pass | ||||
| 
 | ||||
| 
 | ||||
| class DeletedUser(models.Model): | ||||
|     user_id = models.PositiveIntegerField() | ||||
| 
 | ||||
|     # why 254 ? => to be consistent with legacy code | ||||
|     name = models.CharField(max_length=254) | ||||
|     email = models.EmailField(unique=True, max_length=254) | ||||
|     deleted_at = models.DateTimeField(auto_now_add=True) | ||||
| 
 | ||||
| 
 | ||||
| class Calendar(models.Model): | ||||
|     datebooked = models.DateField() | ||||
|     user = models.ForeignKey(CustomUser) | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue