19 lines
631 B
Python
19 lines
631 B
Python
from django.db import models
|
|
|
|
|
|
class MowerVersion(models.Model):
|
|
version = models.CharField(max_length=40, unique=True)
|
|
|
|
|
|
class AnonymousUser(models.Model):
|
|
uuid = models.UUIDField(unique=True)
|
|
|
|
|
|
class RunOrder(models.Model):
|
|
SKILL_CHOICES = {"p": "但书", "t": "龙舌兰"}
|
|
version = models.ForeignKey(MowerVersion, on_delete=models.CASCADE)
|
|
uuid = models.ForeignKey(AnonymousUser, on_delete=models.CASCADE)
|
|
time = models.DateTimeField(auto_now_add=True)
|
|
facility_level = models.IntegerField()
|
|
skill = models.CharField(max_length=1, choices=SKILL_CHOICES)
|
|
grandet_mode = models.BooleanField()
|