mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2025-11-07 05:45:59 +01:00
19 lines
657 B
Python
Executable File
19 lines
657 B
Python
Executable File
# -*- coding: utf-8 -*-
|
|
from __future__ import unicode_literals
|
|
from loginSystem.models import Administrator
|
|
|
|
from django.db import models
|
|
|
|
# Create your models here.
|
|
|
|
class Package(models.Model):
|
|
admin = models.ForeignKey(Administrator,on_delete=models.CASCADE)
|
|
packageName = models.CharField(max_length=50,unique=True)
|
|
diskSpace = models.IntegerField()
|
|
bandwidth = models.IntegerField()
|
|
emailAccounts = models.IntegerField(null=True)
|
|
dataBases = models.IntegerField(default=0)
|
|
ftpAccounts = models.IntegerField(default=0)
|
|
allowedDomains = models.IntegerField(default=0)
|
|
allowFullDomain = models.IntegerField(default=1)
|