Files
CyberPanel/containerization/models.py

17 lines
556 B
Python
Raw Normal View History

2019-01-27 01:24:51 +05:00
# -*- coding: utf-8 -*-
2019-12-10 15:09:10 +05:00
2019-01-27 01:24:51 +05:00
from django.db import models
from websiteFunctions.models import Websites
# Create your models here.
class ContainerLimits(models.Model):
2019-02-03 13:37:14 +05:00
owner = models.ForeignKey(Websites, on_delete=models.CASCADE)
2019-01-27 01:24:51 +05:00
cpuPers = models.CharField(max_length=10)
IO = models.CharField(max_length=10)
IOPS = models.CharField(max_length=10)
memory = models.CharField(max_length=10)
networkSpeed = models.CharField(max_length=10)
networkHexValue = models.CharField(max_length=10)
enforce = models.IntegerField(default=0)