fix lines
This commit is contained in:
parent
ded2d189bb
commit
aa27510b84
@ -1,15 +1,15 @@
|
|||||||
from django.db import models
|
from django.db import models
|
||||||
|
|
||||||
# Create your models here.
|
|
||||||
|
|
||||||
|
|
||||||
class Location(models.Model):
|
class Location(models.Model):
|
||||||
name = models.CharField(max_length=30, unique=True)
|
name = models.CharField(max_length=30, unique=True)
|
||||||
|
|
||||||
|
|
||||||
class Client(models.Model):
|
class Client(models.Model):
|
||||||
id = models.UUIDField(primary_key=True, editable=False)
|
id = models.UUIDField(primary_key=True, editable=False)
|
||||||
location = models.ForeignKey(Location)
|
location = models.ForeignKey(Location)
|
||||||
|
|
||||||
|
|
||||||
class Table(models.Model):
|
class Table(models.Model):
|
||||||
client = models.ForeignKey(Client)
|
client = models.ForeignKey(Client)
|
||||||
number = models.IntegerField()
|
number = models.IntegerField()
|
||||||
|
Loading…
Reference in New Issue
Block a user