uncloud-mravi/uncloud/uncloud_vm/models.py

13 lines
306 B
Python
Raw Normal View History

from django.db import models
class VM(models.Model):
uuid = models.UUIDField(primary_key=True, default=uuid.uuid4, editable=False)
owner = models.ForeignKey(get_user_model(), on_delete=models.CASCADE)
cores = models.IntegerField()
ram = models.FloatField()
class VMDisk(models.Model):