forked from uncloud/uncloud
move uncloud a layer up
Signed-off-by: Nico Schottelius <nico@nico-notebook.schottelius.org>
This commit is contained in:
parent
1d1ae6fb3e
commit
94633d6cc8
70 changed files with 99 additions and 50 deletions
12
uncloud/uncloud_vm/models.py
Normal file
12
uncloud/uncloud_vm/models.py
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
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):
|
||||
Loading…
Add table
Add a link
Reference in a new issue