forked from uncloud/uncloud
13 lines
306 B
Python
13 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):
|