forked from uncloud/uncloud
94633d6cc8
Signed-off-by: Nico Schottelius <nico@nico-notebook.schottelius.org>
12 lines
306 B
Python
12 lines
306 B
Python
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):
|