mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2025-11-07 13:56:01 +01:00
Fix the Remote Backup Storage Issue
This commit is contained in:
7
mailServer/models.py
Normal file → Executable file
7
mailServer/models.py
Normal file → Executable file
@@ -7,11 +7,12 @@
|
||||
# Feel free to rename the models, but don't rename db_table values or field names.
|
||||
from __future__ import unicode_literals
|
||||
from django.db import models
|
||||
from websiteFunctions.models import Websites
|
||||
from websiteFunctions.models import Websites, ChildDomains
|
||||
|
||||
|
||||
class Domains(models.Model):
|
||||
domainOwner = models.ForeignKey(Websites,on_delete=models.CASCADE)
|
||||
domainOwner = models.ForeignKey(Websites,on_delete=models.CASCADE, null=True)
|
||||
childOwner = models.ForeignKey(ChildDomains, on_delete=models.CASCADE, null=True)
|
||||
domain = models.CharField(primary_key=True, max_length=50)
|
||||
|
||||
class Meta:
|
||||
@@ -21,7 +22,7 @@ class Domains(models.Model):
|
||||
class EUsers(models.Model):
|
||||
emailOwner = models.ForeignKey(Domains, on_delete=models.CASCADE)
|
||||
email = models.CharField(primary_key=True, max_length=80)
|
||||
password = models.CharField(max_length=20)
|
||||
password = models.CharField(max_length=200)
|
||||
|
||||
class Meta:
|
||||
db_table = 'e_users'
|
||||
|
||||
Reference in New Issue
Block a user