| 
									
										
										
										
											2025-08-01 14:56:30 +05:00
										 |  |  | # -*- coding: utf-8 -*- | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | from django.db import models | 
					
						
							| 
									
										
										
										
											2025-09-15 02:01:11 +02:00
										 |  |  | from django.contrib.auth.models import User | 
					
						
							| 
									
										
										
										
											2025-08-01 14:56:30 +05:00
										 |  |  | 
 | 
					
						
							|  |  |  | # Create your models here. | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | class version(models.Model): | 
					
						
							|  |  |  |     currentVersion = models.CharField(max_length=50) | 
					
						
							|  |  |  |     build = models.IntegerField() | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | class CyberPanelCosmetic(models.Model): | 
					
						
							| 
									
										
										
										
											2025-09-15 02:01:11 +02:00
										 |  |  |     MainDashboardCSS = models.TextField(default='') | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | class UserNotificationPreferences(models.Model): | 
					
						
							|  |  |  |     """Model to store user notification dismissal preferences""" | 
					
						
							|  |  |  |     user = models.OneToOneField(User, on_delete=models.CASCADE, related_name='notification_preferences') | 
					
						
							|  |  |  |     backup_notification_dismissed = models.BooleanField(default=False, help_text="Whether user has dismissed the backup notification") | 
					
						
							|  |  |  |     ai_scanner_notification_dismissed = models.BooleanField(default=False, help_text="Whether user has dismissed the AI scanner notification") | 
					
						
							|  |  |  |     created_at = models.DateTimeField(auto_now_add=True) | 
					
						
							|  |  |  |     updated_at = models.DateTimeField(auto_now=True) | 
					
						
							|  |  |  |      | 
					
						
							|  |  |  |     class Meta: | 
					
						
							|  |  |  |         verbose_name = "User Notification Preferences" | 
					
						
							|  |  |  |         verbose_name_plural = "User Notification Preferences" | 
					
						
							|  |  |  |      | 
					
						
							|  |  |  |     def __str__(self): | 
					
						
							|  |  |  |         return f"Notification Preferences for {self.user.username}" |