first commit
This commit is contained in:
commit
a1642c8dc4
16 changed files with 497 additions and 0 deletions
19
run_order/models.py
Normal file
19
run_order/models.py
Normal file
|
@ -0,0 +1,19 @@
|
|||
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()
|
Loading…
Add table
Add a link
Reference in a new issue