mirror of
				https://github.com/usmannasir/cyberpanel.git
				synced 2025-11-03 03:45:52 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			44 lines
		
	
	
		
			1.4 KiB
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			44 lines
		
	
	
		
			1.4 KiB
		
	
	
	
		
			Python
		
	
	
	
	
	
# This is an auto-generated Django model module.
 | 
						|
# You'll have to do the following manually to clean this up:
 | 
						|
#   * Rearrange models' order
 | 
						|
#   * Make sure each model has one field with primary_key=True
 | 
						|
#   * Make sure each ForeignKey has `on_delete` set to the desired behavior.
 | 
						|
#   * Remove `managed = False` lines if you wish to allow Django to create, modify, and delete the table
 | 
						|
# 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
 | 
						|
 | 
						|
 | 
						|
class Domains(models.Model):
 | 
						|
    domainOwner = models.ForeignKey(Websites,on_delete=models.CASCADE)
 | 
						|
    domain = models.CharField(primary_key=True, max_length=50)
 | 
						|
 | 
						|
    class Meta:
 | 
						|
        db_table = 'e_domains'
 | 
						|
 | 
						|
 | 
						|
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)
 | 
						|
 | 
						|
    class Meta:
 | 
						|
        db_table = 'e_users'
 | 
						|
 | 
						|
 | 
						|
class Forwardings(models.Model):
 | 
						|
    source = models.CharField(max_length=80)
 | 
						|
    destination = models.TextField()
 | 
						|
 | 
						|
    class Meta:
 | 
						|
        db_table = 'e_forwardings'
 | 
						|
 | 
						|
 | 
						|
class Transport(models.Model):
 | 
						|
    domain = models.CharField(unique=True, max_length=128)
 | 
						|
    transport = models.CharField(max_length=128)
 | 
						|
 | 
						|
    class Meta:
 | 
						|
        db_table = 'e_transport'
 |