Fix the Remote Backup Storage Issue

This commit is contained in:
Usman Nasir
2019-06-08 21:41:43 +00:00
parent 8e2ad7f4b2
commit 0399a43830
3284 changed files with 2254 additions and 1140 deletions

7
mailServer/models.py Normal file → Executable file
View 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'