mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2025-11-10 15:26:13 +01:00
Initial Commit
This commit is contained in:
16
packages/models.py
Normal file
16
packages/models.py
Normal file
@@ -0,0 +1,16 @@
|
||||
# -*- 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)
|
||||
Reference in New Issue
Block a user