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): Proviso = "p" Tequila = "t" 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()