From a534a37286e7510e8c0331c715927ff7ecaa042f Mon Sep 17 00:00:00 2001 From: usmannasir Date: Mon, 18 Dec 2023 12:59:12 +0500 Subject: [PATCH] docker models --- dockerManager/models.py | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/dockerManager/models.py b/dockerManager/models.py index bef790aa5..79a08cce5 100755 --- a/dockerManager/models.py +++ b/dockerManager/models.py @@ -43,4 +43,16 @@ class DockerSites(models.Model): finalURL = models.TextField() blogTitle = models.TextField() adminUser = models.CharField(max_length=100) - adminEmail = models.CharField(max_length=100) \ No newline at end of file + adminEmail = models.CharField(max_length=100) + +class DockerPackages(models.Model): + CPUs = models.IntegerField() + Ram = models.IntegerField() + Bandwidth = models.TextField() + DiskSpace = models.TextField() + config = models.TextField() + + +class PackageAssignment(models.Model): + user = models.ForeignKey(Administrator, on_delete=models.CASCADE) + package = models.ForeignKey(DockerPackages, on_delete=models.CASCADE) \ No newline at end of file