2020-02-22 10:49:00 +00:00
|
|
|
import uuid
|
|
|
|
|
2020-02-21 15:33:37 +00:00
|
|
|
from django.db import models
|
|
|
|
from django.contrib.auth import get_user_model
|
|
|
|
|
|
|
|
|
|
|
|
class VM(models.Model):
|
2020-02-22 10:49:00 +00:00
|
|
|
uuid = models.UUIDField(primary_key=True, default=uuid.uuid4, editable=False)
|
2020-02-21 15:33:37 +00:00
|
|
|
vmid = models.IntegerField()
|
|
|
|
owner = models.ForeignKey(get_user_model(), on_delete=models.CASCADE)
|
|
|
|
data = models.CharField(max_length=65536, null=True)
|