Skip to content

Commit

Permalink
docker models
Browse files Browse the repository at this point in the history
  • Loading branch information
usmannasir committed Dec 18, 2023
1 parent d660450 commit a534a37
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion dockerManager/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
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)

0 comments on commit a534a37

Please sign in to comment.