Files
CyberPanel/packages/models.py
2017-10-24 19:16:36 +05:00

17 lines
552 B
Python

# -*- 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)